ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilMMAbstractItemGUI Class Reference

Class ilMMAbstractItemGUI. More...

+ Inheritance diagram for ilMMAbstractItemGUI:
+ Collaboration diagram for ilMMAbstractItemGUI:

Public Member Functions

 __construct (ilMMTabHandling $tab_handling)
 ilMMAbstractItemGUI constructor. More...
 

Data Fields

const IDENTIFIER = 'identifier'
 
 $lng
 
 $tpl
 
 $tree
 

Protected Member Functions

 determineCommand (string $standard, string $delete)
 
 getMMItemFromRequest ()
 

Protected Attributes

 $ui
 
 $http
 
 $repository
 
 $toolbar
 
 $tab_handling
 
 $tabs
 
 $ctrl
 
 $access
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilMMAbstractItemGUI::__construct ( ilMMTabHandling  $tab_handling)

ilMMAbstractItemGUI constructor.

Parameters
ilMMTabHandling$tab_handling
Exceptions
Throwable

Definition at line 67 of file class.ilMMAbstractItemGUI.php.

References $DIC, $tab_handling, ILIAS\FileDelivery\http(), repository(), and ui().

68  {
69  global $DIC;
70 
71  $this->repository = new ilMMItemRepository();
72  $this->tab_handling = $tab_handling;
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();
81  $this->access = new ilObjMainMenuAccess();
82 
83  $this->lng->loadLanguageModule('form');
84  }
Class ilMMItemRepository.
static http()
Fetches the global http state from ILIAS.
repository()
Definition: repository.php:5
ui()
Definition: ui.php:5
$DIC
Definition: xapitoken.php:46
+ Here is the call graph for this function:

Member Function Documentation

◆ determineCommand()

ilMMAbstractItemGUI::determineCommand ( string  $standard,
string  $delete 
)
protected
Parameters
string$standard
string$delete
Returns
string
Exceptions
ilException

Definition at line 94 of file class.ilMMAbstractItemGUI.php.

References ILIAS\FileDelivery\http().

Referenced by ilMMSubItemGUI\executeCommand(), and ilMMTopItemGUI\executeCommand().

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  }
static http()
Fetches the global http state from ILIAS.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getMMItemFromRequest()

ilMMAbstractItemGUI::getMMItemFromRequest ( )
protected
Returns
ilMMItemFacadeInterface
Exceptions
Throwable

Definition at line 119 of file class.ilMMAbstractItemGUI.php.

References ILIAS\FileDelivery\http(), and repository().

Referenced by ilMMSubItemGUI\confirmDelete(), ilMMTopItemGUI\confirmDelete(), ilMMSubItemGUI\confirmMove(), ilMMSubItemGUI\delete(), ilMMTopItemGUI\delete(), ilMMSubItemGUI\edit(), ilMMTopItemGUI\edit(), ilMMSubItemGUI\executeCommand(), ilMMTopItemGUI\executeCommand(), ilMMSubItemGUI\move(), ilMMTopItemGUI\move(), ilMMSubItemGUI\update(), and ilMMTopItemGUI\update().

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  }
static http()
Fetches the global http state from ILIAS.
repository()
Definition: repository.php:5
Interface ilMMItemFacadeInterface.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $access

ilMMAbstractItemGUI::$access
protected

Definition at line 57 of file class.ilMMAbstractItemGUI.php.

◆ $ctrl

ilMMAbstractItemGUI::$ctrl
protected

Definition at line 45 of file class.ilMMAbstractItemGUI.php.

◆ $http

ilMMAbstractItemGUI::$http
protected

Definition at line 21 of file class.ilMMAbstractItemGUI.php.

◆ $lng

◆ $repository

◆ $tab_handling

ilMMAbstractItemGUI::$tab_handling
protected

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

Referenced by __construct().

◆ $tabs

ilMMAbstractItemGUI::$tabs
protected

Definition at line 37 of file class.ilMMAbstractItemGUI.php.

◆ $toolbar

ilMMAbstractItemGUI::$toolbar
protected

Definition at line 29 of file class.ilMMAbstractItemGUI.php.

◆ $tpl

ilMMAbstractItemGUI::$tpl

Definition at line 49 of file class.ilMMAbstractItemGUI.php.

◆ $tree

ilMMAbstractItemGUI::$tree

Definition at line 53 of file class.ilMMAbstractItemGUI.php.

◆ $ui

ilMMAbstractItemGUI::$ui
protected

Definition at line 17 of file class.ilMMAbstractItemGUI.php.

◆ IDENTIFIER

const ilMMAbstractItemGUI::IDENTIFIER = 'identifier'

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