Esempio n. 1
0
 /**
  * Extract file to given file path (real OS filesystem), existing files are overwritten.
  *
  * @param file_packer $packer file packer instance
  * @param int $contextid context ID
  * @param string $component component
  * @param string $filearea file area
  * @param int $itemid item ID
  * @param string $pathbase path base
  * @param int $userid user ID
  * @return array|bool list of processed files; false if error
  */
 public function extract_to_storage(file_packer $packer, $contextid, $component, $filearea, $itemid, $pathbase, $userid = NULL)
 {
     $archivefile = $this->get_content_file_location();
     return $packer->extract_to_storage($archivefile, $contextid, $component, $filearea, $itemid, $pathbase);
 }