return null;
}
- public function create_file_from_localfile($newfilename, $fid, $userid=null) {
+ public function create_file_from_storedfile($newfilename, $fid, $userid=null) {
return null;
}
return null;
}
- public function create_file_from_localfile($newfilename, $fid, $userid=null) {
+ public function create_file_from_storedfile($newfilename, $fid, $userid=null) {
if (!$this->is_writable() or $this->lf->get_filename() !== '.') {
return null;
}
$fs = get_file_storage();
- if ($file = $fs->create_file_from_localfile($newrecord, $fid)) {
+ if ($file = $fs->create_file_from_storedfile($newrecord, $fid)) {
return $this->browser->get_file_info($this->context, $file->get_filearea(), $file->get_itemid(), $file->get_filepath(), $file->get_filename());
}
return null;
* @param int $fid id of existing local file
* @return object stored_file instance
*/
- public function create_file_from_localfile($file_record, $fid) {
+ public function create_file_from_storedfile($file_record, $fid) {
global $DB;
$file_record = (array)$file_record; // we support arrays too