/** * @param ilImportMapping $a_mapping */ public function importLibraryFile($a_mapping) { $import_path = $this->getImportDirectory() . "/Modules/Bibliographic/set_1/expDir_1/" . $this->import_bib_object->getFilename(); $new_id = $this->import_bib_object->getId(); $new_path = ilUtil::getDataDir() . "/bibl/" . $new_id; mkdir($new_path); copy($import_path, $new_path . "/" . $this->import_bib_object->getFilename()); $this->import_bib_object->writeSourcefileEntriesToDb(); }
/** * updateSettings */ public function updateCustom(ilPropertyFormGUI $a_form) { global $ilAccess; if ($ilAccess->checkAccess('write', "", $this->object->getRefId())) { if ($this->object->getOnline() != $a_form->getInput("is_online")) { $this->object->setOnline($a_form->getInput("is_online")); } if (!empty($_FILES['bibliographic_file']['name'])) { $this->addNews($this->bibl_obj->getId(), 'updated'); } } else { ilUtil::sendFailure($this->lng->txt("no_permission"), true); ilObjectGUI::_gotoRepositoryRoot(); } }