ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilObjTypeDefinitionGUI Class Reference

Class ilObjTypeDefinitionGUI. More...

+ Inheritance diagram for ilObjTypeDefinitionGUI:
+ Collaboration diagram for ilObjTypeDefinitionGUI:

Public Member Functions

 __construct ($a_data, $a_id, $a_call_by_reference)
 Constructor. More...
 
 viewObject ()
 list operations of object type public More...
 
 displayList ()
 display object list More...
 
 saveObject ()
 save (de-)activation of operations on object More...
 
 editObject ()
 display edit form More...
 
 executeCommand ()
 
 getTabs ()
 get tabs public More...
 
- Public Member Functions inherited from ilObjectGUI
 executeCommand ()
 execute command More...
 
 withReferences ()
 determines wether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode ($a_mode=true)
 if true, a creation screen is displayed the current $_GET[ref_id] don't belong to the current class! the mode is determined in ilrepositorygui More...
 
 getCreationMode ()
 get creation mode More...
 
 prepareOutput ($a_show_subobjects=true)
 prepare output More...
 
 getAdminTabs ()
 administration tabs show only permissions and trash folder More...
 
 getHTML ()
 
 confirmedDeleteObject ()
 confirmed deletion of object -> objects are moved to trash or deleted immediately, if trash is disabled More...
 
 cancelDeleteObject ()
 cancel deletion of object More...
 
 cancelObject ()
 cancel action and go back to previous page public More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 save object More...
 
 getDidacticTemplateVar ($a_type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $a_obj, $a_parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 edit object More...
 
 addExternalEditFormCustom (ilPropertyFormGUI $a_form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction ($a_cmd, $a_formaction="")
 get form action for command (command is method name without "Object", e.g. More...
 
 isVisible ($a_ref_id, $a_type)
 
 viewObject ()
 list childs of current object More...
 
 deleteObject ($a_error=false)
 Display deletion confirmation screen. More...
 
 cloneAllObject ()
 Clone single (not container object) Method is overwritten in ilContainerGUI. More...
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html. More...
 

Protected Attributes

 $rbacadmin
 
 $rbacsystem
 
 $error
 
- Protected Attributes inherited from ilObjectGUI
 $ilErr
 
 $locator
 
 $user
 
 $access
 
 $settings
 
 $rbacreview
 
 $toolbar
 
 $tmp_import_dir
 
 $tabs_gui = null
 
 $ctrl
 
 $object_service
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot ($a_raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode ($a_ref_id, $a_cmd="frameset")
 Goto repository root. More...
 
- Data Fields inherited from ilObjectGUI
const COPY_WIZARD_NEEDS_PAGE = 1
 
 $objDefinition
 
 $tpl
 
 $tree
 
 $lng
 
 $data
 
 $object
 
 $ref_id
 
 $obj_id
 
 $maxcount
 
 $formaction
 
 $return_location
 
 $target_frame
 
 $tab_target_script
 
 $actions
 
 $sub_objects
 
 $omit_locator = false
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 Get object service. More...
 
 assignObject ()
 
 setTitleAndDescription ()
 called by prepare output More...
 
 initHeaderAction ($a_sub_type=null, $a_sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction ($a_list_gui)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 showMountWebfolderIcon ()
 
 setTabs ()
 set admin tabs public More...
 
 setAdminTabs ()
 set admin tabs public More...
 
 setLocator ()
 set Locator More...
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator ($a_omit=true)
 
 addAdminLocatorItems ($a_do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms ($a_new_type)
 Init creation froms. More...
 
 getCreationFormsHTML (array $a_forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm ($a_new_type)
 Init object creation form. More...
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 Show didactic template types. More...
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 afterSave (ilObject $a_new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 Init object edit form. More...
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 Get values for edit form. More...
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $a_form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $a_form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm ($a_new_type)
 Init object import form. More...
 
 importFileObject ($parent_id=null, $a_catch_errors=true)
 Import. More...
 
 afterImport (ilObject $a_new_object)
 Post (successful) object import hook. More...
 
 setFormAction ($a_cmd, $a_formaction)
 set specific form action for command More...
 
 getReturnLocation ($a_cmd, $a_location="")
 get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation ($a_cmd, $a_location)
 set specific return location for command More...
 
 getTargetFrame ($a_cmd, $a_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame ($a_cmd, $a_target_frame)
 set specific target frame for command More...
 
 showPossibleSubObjects ()
 show possible subobjects (pulldown menu) More...
 
 getTemplateFile ($a_cmd, $a_type="")
 get a template blockfile format: tpl. More...
 
 getTabs ()
 get tabs abstract method. More...
 
 __showButton ($a_cmd, $a_text, $a_target='')
 
 hitsperpageObject ()
 
__initTableGUI ()
 
 __setTableGUIBasicData (&$tbl, &$result_set, $a_from="")
 standard implementation for tables use 'from' variable use different initial setting of table More...
 
 redirectToRefId ($a_ref_id, $a_cmd="")
 redirects to (repository) view per ref id usually to a container and usually used at the end of a save/import method where the object gui type (of the new object) doesn't match with the type of the current $_GET["ref_id"] value More...
 
 fillCloneTemplate ($a_tpl_varname, $a_type)
 Fill object clone template This method can be called from any object GUI class that wants to offer object cloning. More...
 
 getCenterColumnHTML ()
 Get center column. More...
 
 getRightColumnHTML ()
 Display right column. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 May be overwritten in subclasses. More...
 
 checkPermission ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission and redirect on error. More...
 
 checkPermissionBool ($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
 Check permission. More...
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 handleAutoRating (ilObject $a_new_obj)
 Activate rating automatically if parent container setting. More...
 

Detailed Description

Class ilObjTypeDefinitionGUI.

handles operation assignment to objects (ONLY FOR TESTING PURPOSES!)

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om $Id
Id
class.ilObjTypeDefinitionGUI.php,v 1.14 2005/11/21 17:12:08 shofmann Exp

Definition at line 18 of file class.ilObjTypeDefinitionGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjTypeDefinitionGUI::__construct (   $a_data,
  $a_id,
  $a_call_by_reference 
)

Constructor.

public

Definition at line 40 of file class.ilObjTypeDefinitionGUI.php.

References $DIC.

41  {
42  global $DIC;
43 
44  $this->rbacadmin = $DIC->rbac()->admin();
45  $this->rbacreview = $DIC->rbac()->review();
46  $this->rbacsystem = $DIC->rbac()->system();
47  $this->error = $DIC["ilErr"];
48  $this->type = "typ";
49  parent::__construct($a_data, $a_id, $a_call_by_reference);
50  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ displayList()

ilObjTypeDefinitionGUI::displayList ( )

display object list

public

Definition at line 111 of file class.ilObjTypeDefinitionGUI.php.

References $_GET, ilObjectGUI\$ctrl, ilObjectGUI\$data, $i, $key, $tbl, data, ilUtil\getImageTagByType(), and ilUtil\switchColor().

Referenced by viewObject().

112  {
113  include_once "./Services/Table/classes/class.ilTableGUI.php";
114 
115  // load template for table
116  $this->tpl->addBlockfile("ADM_CONTENT", "adm_content", "tpl.table.html");
117  // load template for table content data
118  $this->tpl->addBlockfile("TBL_CONTENT", "tbl_content", "tpl.obj_tbl_rows.html");
119 
120  $num = 0;
121 
122  $obj_str = ($this->call_by_reference) ? "" : "&obj_id=" . $this->obj_id;
123  $this->tpl->setVariable("FORMACTION", "adm_object.php?ref_id=" . $this->ref_id . "$obj_str&cmd=gateway");
124 
125  // create table
126  $tbl = new ilTableGUI();
127 
128  // title & header columns
129  $tbl->setTitle($this->lng->txt("obj_" . $this->object->getType()) . " '" . $this->object->getTitle() . "'");
130 
131  foreach ($this->data["cols"] as $val) {
132  $header_names[] = $this->lng->txt($val);
133  }
134 
135  $tbl->setHeaderNames($header_names);
136 
137  $header_params = array("ref_id" => $this->ref_id,"obj_id" => $this->id);
138  $tbl->setHeaderVars($this->data["cols"], $header_params);
139 
140  // control
141  $tbl->setOrderColumn($_GET["sort_by"]);
142  $tbl->setOrderDirection($_GET["sort_order"]);
143  $tbl->setLimit(0);
144  $tbl->setOffset(0);
145  $tbl->setMaxCount($this->maxcount);
146 
147  // footer
148  $tbl->setFooter("tblfooter", $this->lng->txt("previous"), $this->lng->txt("next"));
149  //$tbl->disable("footer");
150 
151  // render table
152  $tbl->render();
153 
154  if (is_array($this->data["data"][0])) {
155  //table cell
156  for ($i = 0; $i < count($this->data["data"]); $i++) {
157  $data = $this->data["data"][$i];
158  $ctrl = $this->data["ctrl"][$i];
159 
160  // color changing
161  $css_row = ilUtil::switchColor($i + 1, "tblrow1", "tblrow2");
162 
163  $this->tpl->setCurrentBlock("table_cell");
164  $this->tpl->setVariable("CELLSTYLE", "tblrow1");
165  $this->tpl->parseCurrentBlock();
166 
167  foreach ($data as $key => $val) {
168  // color for status
169  if ($key == "status") {
170  if ($val == "enabled") {
171  $color = "green";
172  } else {
173  $color = "red";
174  }
175 
176  $val = "<font color=\"" . $color . "\">" . $this->lng->txt($val) . "</font>";
177  }
178 
179  $this->tpl->setCurrentBlock("text");
180 
181  if ($key == "type") {
182  $val = ilUtil::getImageTagByType($val, $this->tpl->tplPath);
183  }
184 
185  $this->tpl->setVariable("TEXT_CONTENT", $val);
186  $this->tpl->parseCurrentBlock();
187 
188  $this->tpl->setCurrentBlock("table_cell");
189  $this->tpl->parseCurrentBlock();
190  } //foreach
191 
192  $this->tpl->setCurrentBlock("tbl_content");
193  $this->tpl->setVariable("CSS_ROW", $css_row);
194  $this->tpl->parseCurrentBlock();
195  } //for
196  } //if is_array
197  }
$_GET["client_id"]
$tbl
Definition: example_048.php:81
static getImageTagByType($a_type, $a_path, $a_big=false)
Builds an html image tag TODO: function still in use, but in future use getImagePath and move HTML-Co...
Class ilTableGUI.
$this data['403_header']
static switchColor($a_num, $a_css1, $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows) ...
$i
Definition: disco.tpl.php:19
$key
Definition: croninfo.php:18
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ editObject()

ilObjTypeDefinitionGUI::editObject ( )

display edit form

public

Definition at line 245 of file class.ilObjTypeDefinitionGUI.php.

References $_GET, ilObjectGUI\$ctrl, ilObjectGUI\$data, $error, $i, ilObjectGUI\$ilErr, $key, PHPMailer\PHPMailer\$options, ilObjectGUI\$rbacreview, $rbacsystem, $tbl, ilRbacReview\_getOperationList(), data, ilUtil\formSelect(), ilUtil\getImagePath(), ilUtil\getImageTagByType(), ilUtil\sortArray(), and ilUtil\switchColor().

246  {
250 
251  if (!$rbacsystem->checkAccess("edit_permission", $_GET["ref_id"])) {
252  $ilErr->raiseError($this->lng->txt("permission_denied"), $ilErr->MESSAGE);
253  }
254 
255  //prepare objectlist
256  $this->data = array();
257  $this->data["data"] = array();
258  $this->data["ctrl"] = array();
259  $this->data["cols"] = array("type", "operation", "description", "status");
260 
261  $ops_valid = $rbacreview->getOperationsOnType($this->obj_id);
262 
263  if ($ops_arr = ilRbacReview::_getOperationList('', $a_order, $a_direction)) {
264  $options = array("e" => "enabled","d" => "disabled");
265 
266  foreach ($ops_arr as $key => $ops) {
267  // BEGIN ROW
268  if (in_array($ops["ops_id"], $ops_valid)) {
269  $ops_status = 'e';
270  } else {
271  $ops_status = 'd';
272  }
273 
274  $obj = $ops["ops_id"];
275  $ops_options = ilUtil::formSelect($ops_status, "id[$obj]", $options);
276 
277  //visible data part
278  $this->data["data"][] = array(
279  "type" => "perm",
280  "operation" => $ops["operation"],
281  "description" => $ops["desc"],
282  "status" => $ops_status,
283  "status_html" => $ops_options,
284  "obj_id" => $val["ops_id"]
285  );
286  }
287  } //if typedata
288 
289  $this->maxcount = count($this->data["data"]);
290 
291  // sorting array
292  $this->data["data"] = ilUtil::sortArray($this->data["data"], $_GET["sort_by"], $_GET["sort_order"]);
293 
294  // now compute control information
295  foreach ($this->data["data"] as $key => $val) {
296  $this->data["ctrl"][$key] = array(
297  "obj_id" => $val["obj_id"],
298  "type" => $val["type"]
299  );
300 
301  unset($this->data["data"][$key]["obj_id"]);
302  $this->data["data"][$key]["status"] = $this->data["data"][$key]["status_html"];
303  unset($this->data["data"][$key]["status_html"]);
304  }
305 
306  // build table
307  include_once "./Services/Table/classes/class.ilTableGUI.php";
308 
309  // load template for table
310  $this->tpl->addBlockfile("ADM_CONTENT", "adm_content", "tpl.table.html");
311  // load template for table content data
312  $this->tpl->addBlockfile("TBL_CONTENT", "tbl_content", "tpl.obj_tbl_rows.html");
313 
314  $num = 0;
315 
316  $obj_str = ($this->call_by_reference) ? "" : "&obj_id=" . $this->obj_id;
317  $this->tpl->setVariable("FORMACTION", "adm_object.php?ref_id=" . $this->ref_id . "$obj_str&cmd=save");
318 
319  // create table
320  $tbl = new ilTableGUI();
321 
322  // title & header columns
323  $tbl->setTitle($this->lng->txt("edit_operations") . " " . strtolower($this->lng->txt("of")) . " '" . $this->object->getTitle() . "'");
324 
325  foreach ($this->data["cols"] as $val) {
326  $header_names[] = $this->lng->txt($val);
327  }
328 
329  $tbl->setHeaderNames($header_names);
330 
331  $header_params = array("ref_id" => $this->ref_id,"obj_id" => $this->id,"cmd" => "edit");
332  $tbl->setHeaderVars($this->data["cols"], $header_params);
333 
334  // control
335  $tbl->setOrderColumn($_GET["sort_by"]);
336  $tbl->setOrderDirection($_GET["sort_order"]);
337  $tbl->setLimit(0);
338  $tbl->setOffset(0);
339  $tbl->setMaxCount($this->maxcount);
340 
341  // SHOW VALID ACTIONS
342  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.svg"));
343  $this->tpl->setVariable("COLUMN_COUNTS", count($this->data["cols"]));
344 
345  // footer
346  $tbl->setFooter("tblfooter", $this->lng->txt("previous"), $this->lng->txt("next"));
347  //$tbl->disable("footer");
348 
349  // render table
350  $tbl->render();
351 
352  if (is_array($this->data["data"][0])) {
353  //table cell
354  for ($i = 0; $i < count($this->data["data"]); $i++) {
355  $data = $this->data["data"][$i];
356  $ctrl = $this->data["ctrl"][$i];
357 
358  // color changing
359  $css_row = ilUtil::switchColor($i + 1, "tblrow1", "tblrow2");
360 
361  $this->tpl->setCurrentBlock("table_cell");
362  $this->tpl->setVariable("CELLSTYLE", "tblrow1");
363  $this->tpl->parseCurrentBlock();
364 
365  foreach ($data as $key => $val) {
366  $this->tpl->setCurrentBlock("text");
367 
368  if ($key == "type") {
369  $val = ilUtil::getImageTagByType($val, $this->tpl->tplPath);
370  }
371 
372  $this->tpl->setVariable("TEXT_CONTENT", $val);
373  $this->tpl->parseCurrentBlock();
374 
375  $this->tpl->setCurrentBlock("table_cell");
376  $this->tpl->parseCurrentBlock();
377  } //foreach
378 
379  $this->tpl->setVariable("BTN_VALUE", $this->lng->txt("save"));
380 
381  $this->tpl->setCurrentBlock("tbl_content");
382  $this->tpl->setVariable("CSS_ROW", $css_row);
383  $this->tpl->parseCurrentBlock();
384  } //for
385  } //if is_array
386  }
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
$_GET["client_id"]
$tbl
Definition: example_048.php:81
static getImageTagByType($a_type, $a_path, $a_big=false)
Builds an html image tag TODO: function still in use, but in future use getImagePath and move HTML-Co...
static _getOperationList($a_type=null)
get operation list by object type public static
Class ilTableGUI.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static formSelect( $selected, $varname, $options, $multiple=false, $direct_text=false, $size="0", $style_class="", $attribs="", $disabled=false)
Builds a select form field with options and shows the selected option first.
$this data['403_header']
static switchColor($a_num, $a_css1, $a_css2)
switches style sheets for each even $a_num (used for changing colors of different result rows) ...
$i
Definition: disco.tpl.php:19
$key
Definition: croninfo.php:18
+ Here is the call graph for this function:

◆ executeCommand()

ilObjTypeDefinitionGUI::executeCommand ( )

Definition at line 388 of file class.ilObjTypeDefinitionGUI.php.

389  {
390  $next_class = $this->ctrl->getNextClass($this);
391  $cmd = $this->ctrl->getCmd();
392 
393  switch ($next_class) {
394  default:
395  if (!$cmd) {
396  $cmd = "view";
397  }
398  $cmd .= "Object";
399  $this->$cmd();
400 
401  break;
402  }
403  return true;
404  }

◆ getTabs()

ilObjTypeDefinitionGUI::getTabs ( )

get tabs public

Parameters
objecttabs gui object

Definition at line 411 of file class.ilObjTypeDefinitionGUI.php.

References $rbacsystem.

412  {
414 
415  if ($rbacsystem->checkAccess('edit_permission', $this->object->getRefId())) {
416  $this->tabs_gui->addTarget(
417  "settings",
418  $this->ctrl->getLinkTarget($this, "view"),
419  array("view",""),
420  "",
421  ""
422  );
423 
424  $this->tabs_gui->addTarget(
425  "edit_operations",
426  $this->ctrl->getLinkTarget($this, "edit"),
427  "edit",
428  "",
429  ""
430  );
431  }
432  }

◆ saveObject()

ilObjTypeDefinitionGUI::saveObject ( )

save (de-)activation of operations on object

public

Definition at line 204 of file class.ilObjTypeDefinitionGUI.php.

References $_GET, $_POST, $error, ilObjectGUI\$ilErr, $rbacadmin, ilObjectGUI\$rbacreview, $rbacsystem, exit, and League\Flysystem\Adapter\Polyfill\update().

205  {
210 
211  if (!$rbacsystem->checkAccess('edit_permission', $_GET["ref_id"])) {
212  $ilErr->raiseError($this->lng->txt("permission_denied"), $ilErr->WARNING);
213  }
214 
215  $ops_valid = $rbacreview->getOperationsOnType($_GET["obj_id"]);
216 
217  foreach ($_POST["id"] as $ops_id => $status) {
218  if ($status == 'enabled') {
219  if (!in_array($ops_id, $ops_valid)) {
220  $rbacadmin->assignOperationToObject($_GET["obj_id"], $ops_id);
221  }
222  }
223 
224  if ($status == 'disabled') {
225  if (in_array($ops_id, $ops_valid)) {
226  $rbacadmin->deassignOperationFromObject($_GET["obj_id"], $ops_id);
227  }
228  }
229  }
230 
231  $this->update = $this->object->update();
232 
233  ilUtil::sendSuccess($this->lng->txt("saved_successfully"), true);
234 
235  header("Location: adm_object.php?ref_id=" . $_GET["ref_id"] . "&obj_id=" . $_GET["obj_id"]);
236  exit();
237  }
$_GET["client_id"]
update($pash, $contents, Config $config)
exit
Definition: backend.php:16
$_POST["username"]
+ Here is the call graph for this function:

◆ viewObject()

ilObjTypeDefinitionGUI::viewObject ( )

list operations of object type public

Definition at line 56 of file class.ilObjTypeDefinitionGUI.php.

References $_GET, $key, $list, $rbacadmin, ilObjectGUI\$rbacreview, ilRbacReview\_getOperationList(), data, displayList(), and ilUtil\sortArray().

57  {
60 
61  //prepare objectlist
62  $this->data = array();
63  $this->data["data"] = array();
64  $this->data["ctrl"] = array();
65  $this->data["cols"] = array("type", "operation", "description", "status");
66 
67  $ops_valid = $rbacreview->getOperationsOnType($_GET["obj_id"]);
68 
69  if ($list = ilRbacReview::_getOperationList("", $_GET["order"], $_GET["direction"])) {
70  foreach ($list as $key => $val) {
71  if (in_array($val["ops_id"], $ops_valid)) {
72  $ops_status = 'enabled';
73  } else {
74  $ops_status = 'disabled';
75  }
76 
77  //visible data part
78  $this->data["data"][] = array(
79  "type" => "perm",
80  "operation" => $val["operation"],
81  "description" => $val["desc"],
82  "status" => $ops_status,
83  "obj_id" => $val["ops_id"]
84  );
85  }
86  } //if typedata
87 
88  $this->maxcount = count($this->data["data"]);
89 
90  // sorting array
91  $this->data["data"] = ilUtil::sortArray($this->data["data"], $_GET["sort_by"], $_GET["sort_order"]);
92 
93  // now compute control information
94  foreach ($this->data["data"] as $key => $val) {
95  $this->data["ctrl"][$key] = array(
96  "obj_id" => $val["obj_id"],
97  "type" => $val["type"]
98  );
99 
100  unset($this->data["data"][$key]["obj_id"]);
101  }
102 
103  $this->displayList();
104  }
static sortArray( $array, $a_array_sortby, $a_array_sortorder=0, $a_numeric=false, $a_keep_keys=false)
sortArray
if(isset($_REQUEST['delete'])) $list
Definition: registry.php:41
$_GET["client_id"]
static _getOperationList($a_type=null)
get operation list by object type public static
$this data['403_header']
$key
Definition: croninfo.php:18
+ Here is the call graph for this function:

Field Documentation

◆ $error

ilObjTypeDefinitionGUI::$error
protected

Definition at line 33 of file class.ilObjTypeDefinitionGUI.php.

Referenced by editObject(), and saveObject().

◆ $rbacadmin

ilObjTypeDefinitionGUI::$rbacadmin
protected

Definition at line 23 of file class.ilObjTypeDefinitionGUI.php.

Referenced by saveObject(), and viewObject().

◆ $rbacsystem

ilObjTypeDefinitionGUI::$rbacsystem
protected

Definition at line 28 of file class.ilObjTypeDefinitionGUI.php.

Referenced by editObject(), getTabs(), and saveObject().


The documentation for this class was generated from the following file: