Пример #1
0
 /**
  * Constructor optionally accepting some default values for the migrated files
  *
  * @param moodle1_converter $converter the converter instance we serve to
  * @param int $contextid initial context id of the files being migrated
  * @param string $component initial component name of the files being migrated
  * @param string $filearea initial file area of the files being migrated
  * @param int $itemid initial item id of the files being migrated
  * @param int $userid initial user id of the files being migrated
  */
 public function __construct(moodle1_converter $converter, $contextid = null, $component = null, $filearea = null, $itemid = 0, $userid = null) {
     // set the initial destination of the migrated files
     $this->converter = $converter;
     $this->contextid = $contextid;
     $this->component = $component;
     $this->filearea  = $filearea;
     $this->itemid    = $itemid;
     $this->userid    = $userid;
     // set other useful bits
     $this->basepath  = $converter->get_tempdir_path();
 }