Class ilExcCriteriaCatalogueGUI.
More...
◆ __construct()
ilExcCriteriaCatalogueGUI::__construct |
( |
ilObjExercise |
$a_exc_obj | ) |
|
Definition at line 43 of file class.ilExcCriteriaCatalogueGUI.php.
References $DIC.
47 $this->ctrl = $DIC->ctrl();
48 $this->tabs = $DIC->tabs();
49 $this->lng = $DIC->language();
50 $this->toolbar = $DIC->toolbar();
51 $this->tpl = $DIC[
"tpl"];
52 $this->exc_obj = $a_exc_obj;
◆ add()
◆ confirmDeletion()
ilExcCriteriaCatalogueGUI::confirmDeletion |
( |
| ) |
|
|
protected |
Definition at line 123 of file class.ilExcCriteriaCatalogueGUI.php.
References $_POST, $ctrl, $ilCtrl, $lng, $tpl, ilExcCriteriaCatalogue\getInstancesByParentId(), and ilUtil\sendInfo().
132 $ilCtrl->redirect($this,
"view");
135 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
137 $confirmation_gui->setFormAction(
$ilCtrl->getFormAction($this,
"delete"));
138 $confirmation_gui->setHeaderText(
$lng->txt(
"exc_criteria_catalogue_deletion_confirmation"));
139 $confirmation_gui->setCancel(
$lng->txt(
"cancel"),
"view");
140 $confirmation_gui->setConfirm(
$lng->txt(
"delete"),
"delete");
143 if (in_array($item->getId(), $ids)) {
144 $confirmation_gui->addItem(
"id[]", $item->getId(), $item->getTitle());
148 $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 |
( |
| ) |
|
Definition at line 55 of file class.ilExcCriteriaCatalogueGUI.php.
References $ctrl, $ilCtrl, $lng, and $tabs.
61 $next_class =
$ilCtrl->getNextClass($this);
64 switch ($next_class) {
65 case "ilexccriteriagui":
66 $ilTabs->clearTargets();
67 $ilTabs->setBackTarget(
$lng->txt(
"back"),
$ilCtrl->getLinkTarget($this,
""));
68 $ilCtrl->saveParameter($this,
"cat_id");
69 include_once
"Modules/Exercise/classes/class.ilExcCriteriaGUI.php";
71 $ilCtrl->forwardCommand($crit_gui);
◆ exportForm()
◆ getCurrentCatalogue()
ilExcCriteriaCatalogueGUI::getCurrentCatalogue |
( |
| ) |
|
|
protected |
◆ importForm()
◆ initForm()
Definition at line 176 of file class.ilExcCriteriaCatalogueGUI.php.
References $ctrl, $form, $ilCtrl, $lng, and $title.
Referenced by add(), edit(), and importForm().
181 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
184 $is_edit = ($a_cat_obj !== null);
186 $form->setFormAction(
$ilCtrl->getFormAction($this,
"create"));
187 $form->setTitle(
$lng->txt(
"exc_criteria_catalogue_create_form"));
188 $form->addCommandButton(
"create",
$lng->txt(
"create"));
190 $form->setFormAction(
$ilCtrl->getFormAction($this,
"update"));
191 $form->setTitle(
$lng->txt(
"exc_criteria_catalogue_update_form"));
192 $form->addCommandButton(
"update",
$lng->txt(
"save"));
195 $form->addCommandButton(
"view",
$lng->txt(
"cancel"));
198 $title->setRequired(
true);
if(isset($_POST['submit'])) $form
This class represents a text property in a property form.
◆ saveOrder()
ilExcCriteriaCatalogueGUI::saveOrder |
( |
| ) |
|
|
protected |
Definition at line 102 of file class.ilExcCriteriaCatalogueGUI.php.
References $_POST, $ctrl, $id, $ilCtrl, $lng, ilExcCriteriaCatalogue\getInstancesByParentId(), and ilUtil\sendSuccess().
111 foreach (array_keys(
$_POST[
"pos"]) as
$id) {
112 if (array_key_exists($id, $all_cat)) {
114 $all_cat[
$id]->setPosition($pos);
115 $all_cat[
$id]->update();
120 $ilCtrl->redirect($this,
"view");
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
if(!array_key_exists('StateId', $_REQUEST)) $id
static getInstancesByParentId($a_parent_id)
◆ 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: