84 $this->poolOBJ = $poolGUI->object;
94 if (!$this->access->checkAccess(
'write',
'', $this->poolGUI->ref_id))
97 $this->ctrl->redirectByClass(
'ilObjQuestionPoolGUI',
'infoScreen');
102 $this->tabs->activateTab(
'settings');
106 $nextClass = $this->ctrl->getNextClass();
111 $cmd = $this->ctrl->getCmd(self::CMD_SHOW_FORM).
'Cmd';
123 $this->tpl->setContent( $this->ctrl->getHTML($form) );
132 $errors = !$form->checkInput();
133 $form->setValuesByPost();
150 $this->ctrl->redirect($this, self::CMD_SHOW_FORM);
156 $this->poolOBJ->setOnline($online->getChecked());
159 $this->poolOBJ->setShowTaxonomies($showTax->getChecked());
162 $this->poolOBJ->setNavTaxonomyId($navTax->getValue());
164 $this->poolOBJ->saveToDb();
169 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
172 $form->setFormAction($this->ctrl->getFormAction($this));
173 $form->addCommandButton(self::CMD_SAVE_FORM, $this->lng->txt(
'save'));
175 $form->setTitle($this->lng->txt(
'qpl_form_general_settings'));
176 $form->setId(
'properties');
180 $online =
new ilCheckboxInputGUI($this->lng->txt(
'qpl_settings_general_form_property_online'),
'online');
181 $online->
setInfo($this->lng->txt(
'qpl_settings_general_form_property_online_description'));
182 $online->setChecked($this->poolOBJ->getOnline());
183 $form->addItem($online);
187 $showTax =
new ilCheckboxInputGUI($this->lng->txt(
'qpl_settings_general_form_property_show_taxonomies'),
'show_taxonomies');
188 $showTax->
setInfo($this->lng->txt(
'qpl_settings_general_form_prop_show_tax_desc'));
189 $showTax->setChecked($this->poolOBJ->getShowTaxonomies());
190 $form->addItem($showTax);
196 $navTax =
new ilSelectInputGUI($this->lng->txt(
'qpl_settings_general_form_property_nav_taxonomy'),
'nav_taxonomy');
197 $navTax->
setInfo($this->lng->txt(
'qpl_settings_general_form_property_nav_taxonomy_description'));
198 $navTax->setValue($this->poolOBJ->getNavTaxonomyId());
199 $navTax->setOptions($taxSelectOptions);
200 $showTax->addSubItem($navTax);
207 $taxSelectOptions = array(
208 '0' => $this->lng->txt(
'qpl_settings_general_form_property_opt_notax_selected')
211 foreach($this->poolOBJ->getTaxonomyIds() as $taxId)
216 return $taxSelectOptions;