84 $this->poolOBJ = $poolGUI->object;
94 if (!$this->access->checkAccess(
'write',
'', $this->poolGUI->ref_id)) {
96 $this->ctrl->redirectByClass(
'ilObjQuestionPoolGUI',
'infoScreen');
101 $this->tabs->activateTab(
'settings');
105 $nextClass = $this->ctrl->getNextClass();
107 switch ($nextClass) {
109 $cmd = $this->ctrl->getCmd(self::CMD_SHOW_FORM) .
'Cmd';
116 if (
$form === null) {
120 $this->tpl->setContent($this->ctrl->getHTML(
$form));
130 $form->setValuesByPost();
145 ilUtil::sendSuccess($this->lng->txt(
"msg_obj_modified"),
true);
146 $this->ctrl->redirect($this, self::CMD_SHOW_FORM);
151 include_once
'Services/MetaData/classes/class.ilMD.php';
152 $md_obj =
new ilMD($this->poolOBJ->getId(), 0,
"qpl");
160 $md_desc_ids = $md_section->getDescriptionIds();
162 $md_desc = $md_section->getDescription(array_pop($md_desc_ids));
163 $md_desc->setDescription($form->
getItemByPostVar(
'description')->getValue());
166 $md_desc = $md_section->addDescription();
167 $md_desc->setDescription($form->
getItemByPostVar(
'description')->getValue());
172 $this->poolOBJ->setDescription($form->
getItemByPostVar(
'description')->getValue());
173 $this->poolOBJ->update();
176 $this->poolOBJ->setOnline($online->getChecked());
179 $this->poolOBJ->setShowTaxonomies($showTax->getChecked());
182 $this->poolOBJ->setNavTaxonomyId($navTax->getValue());
186 $this->poolOBJ->setSkillServiceEnabled($skillService->getChecked());
189 $this->poolOBJ->saveToDb();
194 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
197 $form->setFormAction($this->ctrl->getFormAction($this));
198 $form->addCommandButton(self::CMD_SAVE_FORM, $this->lng->txt(
'save'));
200 $form->setTitle($this->lng->txt(
'qpl_form_general_settings'));
201 $form->setId(
'properties');
203 include_once
'Services/MetaData/classes/class.ilMD.php';
204 $md_obj =
new ilMD($this->poolOBJ->getId(), 0,
"qpl");
208 $title->setRequired(
true);
209 $title->setValue($md_section->getTitle());
212 $ids = $md_section->getDescriptionIds();
214 $desc_obj = $md_section->getDescription(array_pop($ids));
219 $desc->setValue($desc_obj->getDescription());
220 $form->addItem($desc);
225 $online =
new ilCheckboxInputGUI($this->lng->txt(
'qpl_settings_general_form_property_online'),
'online');
226 $online->
setInfo($this->lng->txt(
'qpl_settings_general_form_property_online_description'));
227 $online->setChecked($this->poolOBJ->getOnline());
228 $form->addItem($online);
232 $showTax =
new ilCheckboxInputGUI($this->lng->txt(
'qpl_settings_general_form_property_show_taxonomies'),
'show_taxonomies');
233 $showTax->
setInfo($this->lng->txt(
'qpl_settings_general_form_prop_show_tax_desc'));
234 $showTax->setChecked($this->poolOBJ->getShowTaxonomies());
235 $form->addItem($showTax);
241 $navTax =
new ilSelectInputGUI($this->lng->txt(
'qpl_settings_general_form_property_nav_taxonomy'),
'nav_taxonomy');
242 $navTax->
setInfo($this->lng->txt(
'qpl_settings_general_form_property_nav_taxonomy_description'));
243 $navTax->setValue($this->poolOBJ->getNavTaxonomyId());
244 $navTax->setOptions($taxSelectOptions);
245 $showTax->addSubItem($navTax);
250 $skillService =
new ilCheckboxInputGUI($this->lng->txt(
'tst_activate_skill_service'),
'skill_service');
251 $skillService->
setChecked($this->poolOBJ->isSkillServiceEnabled());
252 $form->addItem($skillService);
260 $taxSelectOptions = array(
261 '0' => $this->lng->txt(
'qpl_settings_general_form_property_opt_notax_selected')
264 foreach ($this->poolOBJ->getTaxonomyIds() as $taxId) {
268 return $taxSelectOptions;
This class provides processing control methods.
getTaxonomySelectInputOptions()
static _lookupTitle($a_id)
lookup object title
Interface ilAccessHandler.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
if(isset($_POST['submit'])) $form
special template class to simplify handling of ITX/PEAR
This class represents a text property in a property form.
setCols($a_cols)
Set Cols.
__construct(ilCtrl $ctrl, ilAccessHandler $access, ilLanguage $lng, ilTemplate $tpl, ilTabsGUI $tabs, ilObjQuestionPoolGUI $poolGUI)
Constructor.
Class ilObjQuestionPoolGUI.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
formPropertyExists(ilPropertyFormGUI $form, $propertyId)
static isSkillManagementGloballyActivated()
executeCommand()
Command Execution.
This class represents a text area property in a property form.
showFormCmd(ilPropertyFormGUI $form=null)
const CMD_SHOW_FORM
command constants
performSaveForm(ilPropertyFormGUI $form)