Class ilExcCriteriaCatalogueGUI.
More...
◆ __construct()
ilExcCriteriaCatalogueGUI::__construct |
( |
ilObjExercise |
$a_exc_obj | ) |
|
Definition at line 41 of file class.ilExcCriteriaCatalogueGUI.php.
References $DIC.
45 $this->ctrl = $DIC->ctrl();
46 $this->tabs = $DIC->tabs();
47 $this->lng = $DIC->language();
48 $this->toolbar = $DIC->toolbar();
49 $this->tpl = $DIC[
"tpl"];
50 $this->exc_obj = $a_exc_obj;
◆ add()
◆ confirmDeletion()
ilExcCriteriaCatalogueGUI::confirmDeletion |
( |
| ) |
|
|
protected |
Definition at line 119 of file class.ilExcCriteriaCatalogueGUI.php.
References $_POST, $ctrl, $ilCtrl, $lng, $tpl, ilExcCriteriaCatalogue\getInstancesByParentId(), and ilUtil\sendInfo().
128 $ilCtrl->redirect($this,
"view");
132 $confirmation_gui->setFormAction(
$ilCtrl->getFormAction($this,
"delete"));
133 $confirmation_gui->setHeaderText(
$lng->txt(
"exc_criteria_catalogue_deletion_confirmation"));
134 $confirmation_gui->setCancel(
$lng->txt(
"cancel"),
"view");
135 $confirmation_gui->setConfirm(
$lng->txt(
"delete"),
"delete");
138 if (in_array($item->getId(), $ids)) {
139 $confirmation_gui->addItem(
"id[]", $item->getId(), $item->getTitle());
143 $tpl->setContent($confirmation_gui->getHTML());
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
static getInstancesByParentId($a_parent_id)
Confirmation screen class.
◆ create()
ilExcCriteriaCatalogueGUI::create |
( |
| ) |
|
|
protected |
◆ delete()
ilExcCriteriaCatalogueGUI::delete |
( |
| ) |
|
|
protected |
◆ edit()
◆ executeCommand()
ilExcCriteriaCatalogueGUI::executeCommand |
( |
| ) |
|
◆ exportForm()
◆ getCurrentCatalogue()
ilExcCriteriaCatalogueGUI::getCurrentCatalogue |
( |
| ) |
|
|
protected |
◆ importForm()
Definition at line 214 of file class.ilExcCriteriaCatalogueGUI.php.
References $ctrl, $ilCtrl, $lng, and initForm().
Referenced by create(), and update().
219 $is_edit = ($a_cat_obj !== null);
221 $form = $this->
initForm($a_cat_obj);
222 if ($form->checkInput()) {
225 $a_cat_obj->
setParent($this->exc_obj->getId());
228 $a_cat_obj->
setTitle($form->getInput(
"title"));
236 ilUtil::sendSuccess(
$lng->txt(
"settings_saved"),
true);
237 $ilCtrl->redirect($this,
"view");
240 $form->setValuesByPost();
241 $this->{$is_edit ?
"edit" :
"add"}($form);
Class ilExcCriteriaCatalogue.
initForm(ilExcCriteriaCatalogue $a_cat_obj=null)
◆ initForm()
Definition at line 171 of file class.ilExcCriteriaCatalogueGUI.php.
References $ctrl, $ilCtrl, and $lng.
Referenced by add(), edit(), and importForm().
178 $is_edit = ($a_cat_obj !== null);
180 $form->setFormAction(
$ilCtrl->getFormAction($this,
"create"));
181 $form->setTitle(
$lng->txt(
"exc_criteria_catalogue_create_form"));
182 $form->addCommandButton(
"create",
$lng->txt(
"create"));
184 $form->setFormAction(
$ilCtrl->getFormAction($this,
"update"));
185 $form->setTitle(
$lng->txt(
"exc_criteria_catalogue_update_form"));
186 $form->addCommandButton(
"update",
$lng->txt(
"save"));
189 $form->addCommandButton(
"view",
$lng->txt(
"cancel"));
192 $title->setRequired(
true);
193 $form->addItem($title);
◆ saveOrder()
ilExcCriteriaCatalogueGUI::saveOrder |
( |
| ) |
|
|
protected |
◆ update()
ilExcCriteriaCatalogueGUI::update |
( |
| ) |
|
|
protected |
◆ view()
ilExcCriteriaCatalogueGUI::view |
( |
| ) |
|
|
protected |
◆ $ctrl
ilExcCriteriaCatalogueGUI::$ctrl |
|
protected |
◆ $exc_obj
ilExcCriteriaCatalogueGUI::$exc_obj |
|
protected |
◆ $lng
ilExcCriteriaCatalogueGUI::$lng |
|
protected |
◆ $tabs
ilExcCriteriaCatalogueGUI::$tabs |
|
protected |
◆ $toolbar
ilExcCriteriaCatalogueGUI::$toolbar |
|
protected |
◆ $tpl
ilExcCriteriaCatalogueGUI::$tpl |
|
protected |
The documentation for this class was generated from the following file: