Class ilMMAbstractItemGUI.
More...
◆ __construct()
ilMMAbstractItemGUI constructor.
- Parameters
-
- Exceptions
-
Definition at line 67 of file class.ilMMAbstractItemGUI.php.
68 {
70
73 $this->tabs =
$DIC[
'ilTabs'];
74 $this->lng =
$DIC->language();
75 $this->ctrl =
$DIC[
'ilCtrl'];
76 $this->tpl =
$DIC[
'tpl'];
77 $this->tree =
$DIC[
'tree'];
78 $this->toolbar =
$DIC[
'ilToolbar'];
79 $this->
http = $DIC->http();
80 $this->
ui = $DIC->ui();
82
83 $this->lng->loadLanguageModule('form');
84 }
Class ilMMItemRepository.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
References $DIC, $tab_handling, ILIAS\FileDelivery\http(), repository(), and ui().
◆ determineCommand()
ilMMAbstractItemGUI::determineCommand |
( |
string |
$standard, |
|
|
string |
$delete |
|
) |
| |
|
protected |
- Parameters
-
string | $standard | |
string | $delete | |
- Returns
- string
- Exceptions
-
Definition at line 94 of file class.ilMMAbstractItemGUI.php.
94 : string
95 {
96 $this->access->checkAccessAndThrowException('visible,read');
97 $cmd = $this->ctrl->getCmd();
98 if ($cmd !== '') {
99 return $cmd;
100 }
101
102 $r = $this->
http->request();
103 $post = $r->getParsedBody();
104
105 if ($cmd == "" && isset($post['interruptive_items'])) {
106 $cmd = $delete;
107 } else {
108 $cmd = $standard;
109 }
110
111 return $cmd;
112 }
References ILIAS\FileDelivery\http().
Referenced by ilMMSubItemGUI\executeCommand(), and ilMMTopItemGUI\executeCommand().
◆ getMMItemFromRequest()
ilMMAbstractItemGUI::getMMItemFromRequest |
( |
| ) |
|
|
protected |
- Returns
- ilMMItemFacadeInterface
- Exceptions
-
Definition at line 119 of file class.ilMMAbstractItemGUI.php.
120 {
121 $r = $this->
http->request();
122 $get = $r->getQueryParams();
123 $post = $r->getParsedBody();
124
125 if (isset($post['interruptive_items'])) {
126 $string = $post['interruptive_items'][0];
127 $identification = $this->unhash($string);
128 } else {
129 $identification = $this->unhash($get[self::IDENTIFIER]);
130 }
131
132 return $this->
repository->getItemFacadeForIdentificationString($identification);
133 }
Interface ilMMItemFacadeInterface.
References ILIAS\FileDelivery\http(), and repository().
Referenced by ilMMSubItemGUI\confirmDelete(), ilMMTopItemGUI\confirmDelete(), ilMMSubItemGUI\confirmMove(), ilMMSubItemGUI\delete(), ilMMTopItemGUI\delete(), ilMMSubItemGUI\executeCommand(), ilMMTopItemGUI\executeCommand(), ilMMSubItemGUI\move(), ilMMTopItemGUI\move(), and ilMMTopItemGUI\update().
◆ $access
ilMMAbstractItemGUI::$access |
|
protected |
◆ $ctrl
ilMMAbstractItemGUI::$ctrl |
|
protected |
◆ $http
ilMMAbstractItemGUI::$http |
|
protected |
◆ $lng
ilMMAbstractItemGUI::$lng |
◆ $repository
ilMMAbstractItemGUI::$repository |
|
protected |
◆ $tab_handling
ilMMAbstractItemGUI::$tab_handling |
|
protected |
◆ $tabs
ilMMAbstractItemGUI::$tabs |
|
protected |
◆ $toolbar
ilMMAbstractItemGUI::$toolbar |
|
protected |
◆ $tpl
ilMMAbstractItemGUI::$tpl |
◆ $tree
ilMMAbstractItemGUI::$tree |
◆ $ui
◆ IDENTIFIER
const ilMMAbstractItemGUI::IDENTIFIER = 'identifier' |
The documentation for this class was generated from the following file: