Class ilExcCriteriaCatalogueGUI.
More...
◆ __construct()
ilExcCriteriaCatalogueGUI::__construct |
( |
ilObjExercise |
$a_exc_obj | ) |
|
◆ add()
◆ confirmDeletion()
ilExcCriteriaCatalogueGUI::confirmDeletion |
( |
| ) |
|
|
protected |
Definition at line 123 of file class.ilExcCriteriaCatalogueGUI.php.
124 {
128
130 if (!sizeof($ids)) {
132 $ilCtrl->redirect($this,
"view");
133 }
134
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");
141
143 if (in_array($item->getId(), $ids)) {
144 $confirmation_gui->addItem("id[]", $item->getId(), $item->getTitle());
145 }
146 }
147
148 $tpl->setContent($confirmation_gui->getHTML());
149 }
Confirmation screen class.
static getInstancesByParentId($a_parent_id)
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
References $_POST, $ctrl, $ilCtrl, $lng, $tpl, ilExcCriteriaCatalogue\getInstancesByParentId(), and ilUtil\sendInfo().
◆ create()
ilExcCriteriaCatalogueGUI::create |
( |
| ) |
|
|
protected |
◆ delete()
ilExcCriteriaCatalogueGUI::delete |
( |
| ) |
|
|
protected |
◆ edit()
◆ executeCommand()
ilExcCriteriaCatalogueGUI::executeCommand |
( |
| ) |
|
Definition at line 55 of file class.ilExcCriteriaCatalogueGUI.php.
56 {
60
61 $next_class =
$ilCtrl->getNextClass($this);
63
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);
72 break;
73
74 default:
75 $this->$cmd();
76 break;
77 }
78 }
References $ctrl, $ilCtrl, $lng, and $tabs.
◆ exportForm()
◆ getCurrentCatalogue()
ilExcCriteriaCatalogueGUI::getCurrentCatalogue |
( |
| ) |
|
|
protected |
Definition at line 255 of file class.ilExcCriteriaCatalogueGUI.php.
256 {
258
259 $id = (int) $_REQUEST[
"cat_id"];
262 if ($cat_obj->getParent() == $this->exc_obj->getId()) {
264 return $cat_obj;
265 }
266 }
267
268 $ilCtrl->redirect($this,
"view");
269 }
Class ilExcCriteriaCatalogue.
if(!array_key_exists('StateId', $_REQUEST)) $id
References $ctrl, $id, and $ilCtrl.
Referenced by edit(), and update().
◆ importForm()
Definition at line 220 of file class.ilExcCriteriaCatalogueGUI.php.
221 {
224
225 $is_edit = ($a_cat_obj !== null);
226
228 if (
$form->checkInput()) {
229 if (!$is_edit) {
231 $a_cat_obj->
setParent($this->exc_obj->getId());
232 }
233
235
236 if (!$is_edit) {
238 } else {
240 }
241
242 ilUtil::sendSuccess(
$lng->txt(
"settings_saved"),
true);
243 $ilCtrl->redirect($this,
"view");
244 }
245
246 $form->setValuesByPost();
247 $this->{$is_edit ?
"edit" :
"add"}(
$form);
248 }
if(isset($_POST['submit'])) $form
References $ctrl, $form, $ilCtrl, $lng, and initForm().
Referenced by create(), and update().
◆ initForm()
Definition at line 176 of file class.ilExcCriteriaCatalogueGUI.php.
177 {
180
181 include_once "Services/Form/classes/class.ilPropertyFormGUI.php";
183
184 $is_edit = ($a_cat_obj !== null);
185 if (!$is_edit) {
186 $form->setFormAction(
$ilCtrl->getFormAction($this,
"create"));
187 $form->setTitle(
$lng->txt(
"exc_criteria_catalogue_create_form"));
188 $form->addCommandButton(
"create",
$lng->txt(
"create"));
189 } else {
190 $form->setFormAction(
$ilCtrl->getFormAction($this,
"update"));
191 $form->setTitle(
$lng->txt(
"exc_criteria_catalogue_update_form"));
192 $form->addCommandButton(
"update",
$lng->txt(
"save"));
193 }
194
195 $form->addCommandButton(
"view",
$lng->txt(
"cancel"));
196
198 $title->setRequired(
true);
200
202 }
This class represents a text property in a property form.
References $ctrl, $form, $ilCtrl, $lng, and $title.
Referenced by add(), edit(), and importForm().
◆ 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: