ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjTypeDefinitionGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 __construct ($data, int $id, bool $call_by_reference)
 
 viewObject ()
 list operations of object type More...
 
 displayList ()
 display object list More...
 
 saveObject ()
 save (de-)activation of operations on object More...
 
 editObject ()
 display edit form More...
 
 executeCommand ()
 
- Public Member Functions inherited from ilObjectGUI
 __construct ($data, int $id=0, bool $call_by_reference=true, bool $prepare_output=true)
 
 getRefId ()
 
 setAdminMode (string $mode)
 
 getAdminMode ()
 
 getObject ()
 
 executeCommand ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 setCreationMode (bool $mode=true)
 if true, a creation screen is displayed the current [ref_id] don't belong to the current class! The mode is determined in ilRepositoryGUI More...
 
 getCreationMode ()
 
 prepareOutput (bool $show_sub_objects=true)
 
 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 More...
 
 createObject ()
 create new object form More...
 
 cancelCreation ()
 cancel create action and go back to repository parent More...
 
 saveObject ()
 
 getDidacticTemplateVar (string $type)
 Get didactic template setting from creation screen. More...
 
 putObjectInTree (ilObject $obj, int $parent_node_id=null)
 Add object to tree at given position. More...
 
 editObject ()
 
 addExternalEditFormCustom (ilPropertyFormGUI $form)
 
 updateObject ()
 updates object entry in object_data More...
 
 getFormAction (string $cmd, string $default_form_action="")
 Get form action for command (command is method name without "Object", e.g. More...
 
 isVisible (int $ref_id, string $type)
 
 viewObject ()
 viewObject container presentation for "administration -> repository, trash, permissions" More...
 
 deleteObject (bool $error=false)
 Display deletion confirmation screen. More...
 
 setColumnSettings (ilColumnGUI $column_gui)
 
 redirectAfterCreation ()
 Redirect after creation, see https://docu.ilias.de/goto_docu_wiki_wpage_5035_1357.html Should be overwritten and redirect to settings screen. More...
 
 addToDeskObject ()
 
 removeFromDeskObject ()
 
- Public Member Functions inherited from ILIAS\Object\ImplementsCreationCallback
 callCreationCallback (\ilObject $object, \ilObjectDefinition $obj_definition, int $requested_crtcb)
 

Protected Member Functions

 getTabs ()
 
- Protected Member Functions inherited from ilObjectGUI
 getObjectService ()
 
 assignObject ()
 
 setTitleAndDescription ()
 
 initHeaderAction (?string $sub_type=null, ?int $sub_id=null)
 Add header action menu. More...
 
 insertHeaderAction (?ilObjectListGUI $list_gui=null)
 Insert header action into main template. More...
 
 addHeaderAction ()
 Add header action menu. More...
 
 redrawHeaderActionObject ()
 Ajax call: redraw action header only. More...
 
 setTabs ()
 set admin tabs More...
 
 setAdminTabs ()
 set admin tabs More...
 
 setLocator ()
 
 addLocatorItems ()
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 omitLocator (bool $omit=true)
 
 addAdminLocatorItems (bool $do_not_add_object=false)
 should be overwritten to add object specific items (repository items are preloaded) More...
 
 initCreationForms (string $new_type)
 Init creation forms. More...
 
 getCreationFormsHTML (array $forms)
 Get HTML for creation forms (accordion) More...
 
 initCreateForm (string $new_type)
 
 initDidacticTemplate (ilPropertyFormGUI $form)
 
 addDidacticTemplateOptions (array &$a_options)
 Add custom templates. More...
 
 afterSave (ilObject $new_object)
 Post (successful) object creation hook. More...
 
 initEditForm ()
 
 initEditCustomForm (ilPropertyFormGUI $a_form)
 Add custom fields to update form. More...
 
 getEditFormValues ()
 
 getEditFormCustomValues (array &$a_values)
 Add values to custom edit fields. More...
 
 validateCustom (ilPropertyFormGUI $form)
 Validate custom values (if not possible with checkInput()) More...
 
 updateCustom (ilPropertyFormGUI $form)
 Insert custom update form values into object. More...
 
 afterUpdate ()
 Post (successful) object update hook. More...
 
 initImportForm (string $new_type)
 
 importFileObject (int $parent_id=null)
 
 afterImport (ilObject $new_object)
 Post (successful) object import hook. More...
 
 setFormAction (string $cmd, string $form_action)
 
 getReturnLocation (string $cmd, string $default_location="")
 Get return location for command (command is method name without "Object", e.g. More...
 
 setReturnLocation (string $cmd, string $location)
 set specific return location for command More...
 
 getTargetFrame (string $cmd, string $default_target_frame="")
 get target frame for command (command is method name without "Object", e.g. More...
 
 setTargetFrame (string $cmd, string $target_frame)
 Set specific target frame for command. More...
 
 showPossibleSubObjects ()
 show possible sub objects (pull down menu) More...
 
 getTabs ()
 overwrite in derived GUI class of your object type More...
 
 redirectToRefId (int $ref_id, string $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 ["ref_id"] value of the request More...
 
 fillCloneTemplate (?string $tpl_name, string $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...
 
 checkPermission (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 checkPermissionBool (string $perm, string $cmd="", string $type="", ?int $ref_id=null)
 
 enableDragDropFileUpload ()
 Enables the file upload into this object by dropping files. More...
 
 showCustomIconsEditing ( $input_colspan=1, ilPropertyFormGUI $form=null, $as_section=true)
 show edit section of custom icons for container More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectGUI
static _gotoRepositoryRoot (bool $raise_error=false)
 Goto repository root. More...
 
static _gotoRepositoryNode (int $ref_id, string $cmd="")
 
static _gotoSharedWorkspaceNode (int $wsp_id)
 
- Data Fields inherited from ilObjectGUI
const ALLOWED_TAGS_IN_TITLE_AND_DESCRIPTION
 
const ADMIN_MODE_NONE = ""
 
const ADMIN_MODE_SETTINGS = "settings"
 
const ADMIN_MODE_REPOSITORY = "repository"
 
const UPLOAD_TYPE_LOCAL = 1
 
const UPLOAD_TYPE_UPLOAD_DIRECTORY = 2
 
const CFORM_NEW = 1
 
const CFORM_IMPORT = 2
 
const CFORM_CLONE = 3
 
- Protected Attributes inherited from ilObjectGUI
ILIAS Notes Service $notes_service
 
ServerRequestInterface $request
 
ilLocatorGUI $locator
 
ilObjUser $user
 
ilAccessHandler $access
 
ilSetting $settings
 
ilToolbarGUI $toolbar
 
ilRbacAdmin $rbac_admin
 
ilRbacSystem $rbac_system
 
ilRbacReview $rbac_review
 
ilObjectService $object_service
 
ilObjectDefinition $obj_definition
 
ilGlobalTemplateInterface $tpl
 
ilTree $tree
 
ilCtrl $ctrl
 
ilErrorHandling $error
 
ilLanguage $lng
 
ilTabsGUI $tabs_gui
 
ILIAS $ilias
 
ArrayBasedRequestWrapper $post_wrapper
 
RequestWrapper $request_wrapper
 
Factory $refinery
 
ilFavouritesManager $favourites
 
ilObjectCustomIconFactory $custom_icon_factory
 
ilObject $object = null
 
bool $creation_mode = false
 
 $data
 
int $id
 
bool $call_by_reference = false
 
bool $prepare_output
 
int $ref_id
 
int $obj_id
 
int $maxcount
 
array $form_action = []
 
array $return_location = []
 
array $target_frame = []
 
string $tmp_import_dir
 
string $sub_objects = ""
 
bool $omit_locator = false
 
string $type = ""
 
string $admin_mode = self::ADMIN_MODE_NONE
 
int $requested_ref_id = 0
 
int $requested_crtptrefid = 0
 
int $requested_crtcb = 0
 
string $requested_new_type = ""
 
string $link_params
 
string $html = ""
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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

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

Constructor & Destructor Documentation

◆ __construct()

ilObjTypeDefinitionGUI::__construct (   $data,
int  $id,
bool  $call_by_reference 
)

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

References ilObjectGUI\$data, and ILIAS\GlobalScreen\Provider\__construct().

31  {
32  $this->type = "typ";
34  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ displayList()

ilObjTypeDefinitionGUI::displayList ( )

display object list

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

References ilObjectGUI\$call_by_reference, ilObjectGUI\$data, $i, ilObjectGUI\$id, ILIAS\LTI\ToolProvider\$key, ilObjectGUI\$ref_id, ilUtil\getImageTagByType(), ILIAS\Repository\lng(), and ILIAS\Repository\object().

Referenced by viewObject().

93  : void
94  {
95  // load template for table
96  $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.table.html");
97  // load template for table content data
98  $this->tpl->addBlockFile("TBL_CONTENT", "tbl_content", "tpl.obj_tbl_rows.html");
99 
100  $obj_str = ($this->call_by_reference) ? "" : "&obj_id=" . $this->obj_id;
101  $this->tpl->setVariable("FORMACTION", "adm_object.php?ref_id=" . $this->ref_id . "$obj_str&cmd=gateway");
102 
103  $tbl = new ilTableGUI();
104 
105  $tbl->setTitle($this->lng->txt("obj_" . $this->object->getType()) . " '" . $this->object->getTitle() . "'");
106 
107  $header_names = [];
108  foreach ($this->data["cols"] as $val) {
109  $header_names[] = $this->lng->txt($val);
110  }
111 
112  $tbl->setHeaderNames($header_names);
113 
114  $header_params = ["ref_id" => $this->ref_id,"obj_id" => $this->id];
115  $tbl->setHeaderVars($this->data["cols"], $header_params);
116  $tbl->setOrderColumn(
117  $this->request_wrapper->retrieve("sort_by", $this->refinery->kindlyTo()->string())
118  );
119  $tbl->setOrderDirection(
120  $this->request_wrapper->retrieve("sort_order", $this->refinery->kindlyTo()->string())
121  );
122  $tbl->setLimit();
123  $tbl->setOffset(0);
124  $tbl->setMaxCount($this->maxcount);
125  $tbl->setFooter("tblfooter", $this->lng->txt("previous"), $this->lng->txt("next"));
126  $tbl->render();
127 
128  if (is_array($this->data["data"][0])) {
129  for ($i = 0; $i < count($this->data["data"]); $i++) {
130  $data = $this->data["data"][$i];
131 
132  $this->tpl->setCurrentBlock("table_cell");
133  $this->tpl->setVariable("CELLSTYLE", "tblrow1");
134  $this->tpl->parseCurrentBlock();
135 
136  foreach ($data as $key => $val) {
137  if ($key == "status") {
138  if ($val == "enabled") {
139  $color = "green";
140  } else {
141  $color = "red";
142  }
143 
144  $val = "<font color=\"" . $color . "\">" . $this->lng->txt($val) . "</font>";
145  }
146 
147  $this->tpl->setCurrentBlock("text");
148 
149  if ($key == "type") {
150  $val = ilUtil::getImageTagByType($val, $this->tpl->tplPath);
151  }
152 
153  $this->tpl->setVariable("TEXT_CONTENT", $val);
154  $this->tpl->parseCurrentBlock();
155 
156  $this->tpl->setCurrentBlock("table_cell");
157  $this->tpl->parseCurrentBlock();
158  }
159 
160  $this->tpl->setCurrentBlock("tbl_content");
161  $this->tpl->setVariable("CSS_ROW", " ");
162  $this->tpl->parseCurrentBlock();
163  }
164  }
165  }
static getImageTagByType(string $a_type, string $a_path, bool $a_big=false)
Builds an html image tag.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
string $key
Consumer key/client ID value.
Definition: System.php:193
$i
Definition: metadata.php:41
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ editObject()

ilObjTypeDefinitionGUI::editObject ( )

display edit form

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

References ilObjectGUI\$call_by_reference, ilObjectGUI\$data, $i, ilObjectGUI\$id, ILIAS\LTI\ToolProvider\$key, ilObjectGUI\$ref_id, ilRbacReview\_getOperationList(), ilLegacyFormElementsUtil\formSelect(), ilUtil\getImagePath(), ilUtil\getImageTagByType(), ILIAS\Repository\lng(), ILIAS\Repository\object(), ILIAS\Repository\refinery(), and ilArrayUtil\sortArray().

210  : void
211  {
212  $ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
213  if (!$this->rbac_system->checkAccess("edit_permission", $ref_id)) {
214  $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->MESSAGE);
215  }
216 
217  //prepare objectlist
218  $this->data = [];
219  $this->data["data"] = [];
220  $this->data["ctrl"] = [];
221  $this->data["cols"] = ["type", "operation", "description", "status"];
222 
223  $ops_valid = $this->rbac_review->getOperationsOnType($this->obj_id);
224 
225  if ($ops_arr = ilRbacReview::_getOperationList()) {
226  $options = ["e" => "enabled","d" => "disabled"];
227 
228  foreach ($ops_arr as $ops) {
229  if (in_array($ops["ops_id"], $ops_valid)) {
230  $ops_status = 'e';
231  } else {
232  $ops_status = 'd';
233  }
234 
235  $obj = $ops["ops_id"];
236  $ops_options = ilLegacyFormElementsUtil::formSelect($ops_status, "id[$obj]", $options);
237 
238  $this->data["data"][] = [
239  "type" => "perm",
240  "operation" => $ops["operation"],
241  "description" => $ops["desc"],
242  "status" => $ops_status,
243  "status_html" => $ops_options
244  ];
245  }
246  }
247 
248  $this->maxcount = count($this->data["data"]);
249 
250  $sort_by = $this->request_wrapper->retrieve("sort_by", $this->refinery->kindlyTo()->string());
251  $sort_order = $this->request_wrapper->retrieve("sort_order", $this->refinery->kindlyTo()->string());
252  $this->data["data"] = ilArrayUtil::sortArray($this->data["data"], $sort_by, $sort_order);
253 
254  // now compute control information
255  foreach ($this->data["data"] as $key => $val) {
256  $this->data["ctrl"][$key] = [
257  "obj_id" => $val["obj_id"],
258  "type" => $val["type"]
259  ];
260 
261  unset($this->data["data"][$key]["obj_id"]);
262  $this->data["data"][$key]["status"] = $this->data["data"][$key]["status_html"];
263  unset($this->data["data"][$key]["status_html"]);
264  }
265 
266  $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.table.html");
267  $this->tpl->addBlockFile("TBL_CONTENT", "tbl_content", "tpl.obj_tbl_rows.html");
268 
269  $obj_str = ($this->call_by_reference) ? "" : "&obj_id=" . $this->obj_id;
270  $this->tpl->setVariable("FORMACTION", "adm_object.php?ref_id=" . $this->ref_id . "$obj_str&cmd=save");
271 
272  $tbl = new ilTableGUI();
273  $tbl->setTitle(
274  $this->lng->txt("edit_operations") . " " . strtolower($this->lng->txt("of")) . " '" . $this->object->getTitle() . "'"
275  );
276 
277  $header_names = [];
278  foreach ($this->data["cols"] as $val) {
279  $header_names[] = $this->lng->txt($val);
280  }
281 
282  $tbl->setHeaderNames($header_names);
283 
284  $header_params = ["ref_id" => $this->ref_id,"obj_id" => $this->id,"cmd" => "edit"];
285  $tbl->setHeaderVars($this->data["cols"], $header_params);
286  $tbl->setOrderColumn($sort_by);
287  $tbl->setOrderDirection($sort_order);
288  $tbl->setLimit();
289  $tbl->setOffset(0);
290  $tbl->setMaxCount($this->maxcount);
291 
292  $this->tpl->setVariable("IMG_ARROW", ilUtil::getImagePath("arrow_downright.svg"));
293  $this->tpl->setVariable("COLUMN_COUNTS", count($this->data["cols"]));
294 
295  $tbl->setFooter("tblfooter", $this->lng->txt("previous"), $this->lng->txt("next"));
296 
297  $tbl->render();
298 
299  if (is_array($this->data["data"][0])) {
300  //table cell
301  for ($i = 0; $i < count($this->data["data"]); $i++) {
302  $data = $this->data["data"][$i];
303 
304  $this->tpl->setCurrentBlock("table_cell");
305  $this->tpl->setVariable("CELLSTYLE", "tblrow1");
306  $this->tpl->parseCurrentBlock();
307 
308  foreach ($data as $key => $val) {
309  $this->tpl->setCurrentBlock("text");
310 
311  if ($key == "type") {
312  $val = ilUtil::getImageTagByType($val, $this->tpl->tplPath);
313  }
314 
315  $this->tpl->setVariable("TEXT_CONTENT", $val);
316  $this->tpl->parseCurrentBlock();
317 
318  $this->tpl->setCurrentBlock("table_cell");
319  $this->tpl->parseCurrentBlock();
320  } //foreach
321 
322  $this->tpl->setVariable("BTN_VALUE", $this->lng->txt("save"));
323 
324  $this->tpl->setCurrentBlock("tbl_content");
325  $this->tpl->parseCurrentBlock();
326  }
327  }
328  }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
static getImageTagByType(string $a_type, string $a_path, bool $a_big=false)
Builds an html image tag.
static formSelect( $selected, string $varname, array $options, bool $multiple=false, bool $direct_text=false, int $size=0, string $style_class="", array $attribs=[], bool $disabled=false)
Builds a select form field with options and shows the selected option first.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static _getOperationList(string $a_type='')
get operation list by object type
string $key
Consumer key/client ID value.
Definition: System.php:193
$i
Definition: metadata.php:41
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
+ Here is the call graph for this function:

◆ executeCommand()

ilObjTypeDefinitionGUI::executeCommand ( )

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

References ILIAS\Repository\ctrl().

330  : void
331  {
332  $this->ctrl->getNextClass($this);
333  $cmd = $this->ctrl->getCmd();
334 
335  if (!$cmd) {
336  $cmd = "view";
337  }
338  $cmd .= "Object";
339  $this->$cmd();
340  }
+ Here is the call graph for this function:

◆ getTabs()

ilObjTypeDefinitionGUI::getTabs ( )
protected

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

References ILIAS\Repository\ctrl().

342  : void
343  {
344  if ($this->rbac_system->checkAccess('edit_permission', $this->object->getRefId())) {
345  $this->tabs_gui->addTarget(
346  "settings",
347  $this->ctrl->getLinkTarget($this, "view"),
348  ["view",""]
349  );
350 
351  $this->tabs_gui->addTarget(
352  "edit_operations",
353  $this->ctrl->getLinkTarget($this, "edit"),
354  "edit",
355  );
356  }
357  }
+ Here is the call graph for this function:

◆ saveObject()

ilObjTypeDefinitionGUI::saveObject ( )

save (de-)activation of operations on object

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

References ilObjectGUI\$obj_id, ilObjectGUI\$ref_id, exit, ILIAS\Repository\lng(), and ILIAS\Repository\refinery().

170  : void
171  {
172  $ref_id = $this->request_wrapper->retrieve("ref_id", $this->refinery->kindlyTo()->int());
173  $obj_id = $this->request_wrapper->retrieve("obj_id", $this->refinery->kindlyTo()->int());
174 
175  if (!$this->rbac_system->checkAccess('edit_permission', $ref_id)) {
176  $this->error->raiseError($this->lng->txt("permission_denied"), $this->error->WARNING);
177  }
178 
179  $ops_valid = $this->rbac_review->getOperationsOnType($obj_id);
180 
181  $ids = $this->post_wrapper->retrieve(
182  "id",
183  $this->refinery->kindlyTo()->dictOf($this->refinery->kindlyTo()->string())
184  );
185  foreach ($ids as $ops_id => $status) {
186  if ($status == 'enabled') {
187  if (!in_array($ops_id, $ops_valid)) {
188  $this->rbac_admin->assignOperationToObject($obj_id, $ops_id);
189  }
190  }
191 
192  if ($status == 'disabled') {
193  if (in_array($ops_id, $ops_valid)) {
194  $this->rbac_admin->deassignOperationFromObject($obj_id, $ops_id);
195  }
196  }
197  }
198 
199  $this->object->update();
200 
201  $this->tpl->setOnScreenMessage('success', $this->lng->txt("saved_successfully"), true);
202 
203  header("Location: adm_object.php?ref_id=" . $ref_id . "&obj_id=" . $obj_id);
204  exit();
205  }
exit
Definition: login.php:28
+ Here is the call graph for this function:

◆ viewObject()

ilObjTypeDefinitionGUI::viewObject ( )

list operations of object type

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

References ILIAS\LTI\ToolProvider\$key, ilRbacReview\_getOperationList(), displayList(), and ilArrayUtil\sortArray().

39  : void
40  {
41  //prepare object list
42  $this->data = [];
43  $this->data["data"] = [];
44  $this->data["ctrl"] = [];
45  $this->data["cols"] = ["type", "operation", "description", "status"];
46 
47  $ops_valid = $this->rbac_review->getOperationsOnType(
48  $this->request_wrapper->retrieve("obj_id", $this->refinery->kindlyTo()->int())
49  );
50 
51  if ($list = ilRbacReview::_getOperationList()) {
52  foreach ($list as $val) {
53  if (in_array($val["ops_id"], $ops_valid)) {
54  $ops_status = 'enabled';
55  } else {
56  $ops_status = 'disabled';
57  }
58 
59  //visible data part
60  $this->data["data"][] = [
61  "type" => "perm",
62  "operation" => $val["operation"],
63  "description" => $val["desc"],
64  "status" => $ops_status,
65  "obj_id" => $val["ops_id"]
66  ];
67  }
68  }
69 
70  $this->maxcount = count($this->data["data"]);
71  $this->data["data"] = ilArrayUtil::sortArray(
72  $this->data["data"],
73  $this->request_wrapper->retrieve("sort_by", $this->refinery->kindlyTo()->string()),
74  $this->request_wrapper->retrieve("sort_order", $this->refinery->kindlyTo()->string()),
75  );
76 
77  // now compute control information
78  foreach ($this->data["data"] as $key => $val) {
79  $this->data["ctrl"][$key] = [
80  "obj_id" => $val["obj_id"],
81  "type" => $val["type"]
82  ];
83 
84  unset($this->data["data"][$key]["obj_id"]);
85  }
86 
87  $this->displayList();
88  }
static _getOperationList(string $a_type='')
get operation list by object type
string $key
Consumer key/client ID value.
Definition: System.php:193
static sortArray(array $array, string $a_array_sortby_key, string $a_array_sortorder="asc", bool $a_numeric=false, bool $a_keep_keys=false)
+ Here is the call graph for this function:

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