protected function initCreationForms($a_new_type) { $forms = parent::initCreationForms($a_new_type); if ($this->id_type == self::WORKSPACE_NODE_ID) { unset($forms[self::CFORM_IMPORT]); unset($forms[self::CFORM_CLONE]); } return $forms; }
/** * @param string $a_new_type * * @return array */ protected function initCreationForms($a_new_type) { $forms = parent::initCreationForms($a_new_type); return $forms; }
protected function initCreationForms($a_new_type) { $forms = parent::initCreationForms($a_new_type); // disabling import unset($forms[self::CFORM_IMPORT]); return $forms; }
/** * @param string $a_new_type * * @return array */ protected function initCreationForms($a_new_type) { global $lng; $forms = parent::initCreationForms($a_new_type); // Add File-Upload $in_file = new ilFileInputGUI($lng->txt("bibliography file"), "bibliographic_file"); $in_file->setSuffixes(array("ris", "bib", "bibtex")); $in_file->setRequired(true); $forms[self::CFORM_NEW]->addItem($in_file); $this->ctrl->saveParameterByClass('ilobjrootfoldergui', 'new_type'); $forms[self::CFORM_NEW]->setFormAction($this->ctrl->getFormActionByClass('ilobjrootfoldergui', "save")); return $forms; }