2 require_once(
'./Services/Form/classes/class.ilPropertyFormGUI.php');
45 $this->lng->loadLanguageModule(
'meta');
46 $this->lng->loadLanguageModule(
'prg');
74 $this->
setFormAction($this->ctrl->getFormAction($this->parent_gui));
75 $title = $this->type->getId() ? $this->lng->txt(
'prg_type_edit') : $this->lng->txt(
'prg_type_add');
77 $item =
new ilSelectInputGUI($this->lng->txt(
'default_language'),
'default_lang');
78 $item->
setValue($this->type->getDefaultLang());
79 $languages = $this->lng->getInstalledLanguages();
81 foreach ($languages as $lang_code) {
82 $options[$lang_code] = $this->lng->txt(
"meta_l_{$lang_code}");
85 $item->setRequired(
true);
88 foreach ($languages as $lang_code) {
92 if ($this->type->getId()) {
113 $this->type->setDefaultLang($this->
getInput(
'default_lang'));
114 foreach ($this->lng->getInstalledLanguages() as $lang_code) {
115 $title = $this->
getInput(
"title_{$lang_code}");
117 $this->type->setTitle($title, $lang_code);
134 $section->setTitle($this->lng->txt(
"meta_l_{$a_lang_code}"));
136 $item =
new ilTextInputGUI($this->lng->txt(
'title'),
"title_{$a_lang_code}");
137 $item->
setValue($this->type->getTitle($a_lang_code));
139 $item =
new ilTextAreaInputGUI($this->lng->txt(
'description'),
"description_{$a_lang_code}");
140 $item->
setValue($this->type->getDescription($a_lang_code));
Base class for ILIAS Exception handling.
setValue($a_value)
Set Value.
if(!is_array($argv)) $options
This class represents a text property in a property form.
Exception is thrown when errors occurs relating the plugin type-hook.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Class ilStudyProgrammeType.
This class represents a text area property in a property form.
setValue($a_value)
Set Value.