ILIAS  release_8 Revision v8.24
ilContainerBlockPropertiesStorageGUI Class Reference

Save container block property Mainly used for item group expand/collapse. More...

+ Inheritance diagram for ilContainerBlockPropertiesStorageGUI:
+ Collaboration diagram for ilContainerBlockPropertiesStorageGUI:

Public Member Functions

 executeCommand ()
 
 store ()
 

Protected Attributes

ilCtrl $ctrl
 
ilObjUser $user
 
StandardGUIRequest $request
 
BlockSessionRepository $block_repo
 

Detailed Description

Save container block property Mainly used for item group expand/collapse.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de @ilCtrl_Calls ilContainerBlockPropertiesStorageGUI: ilContainerBlockPropertiesStorageGUI

Definition at line 31 of file class.ilContainerBlockPropertiesStorageGUI.php.

Member Function Documentation

◆ executeCommand()

ilContainerBlockPropertiesStorageGUI::executeCommand ( )

Definition at line 52 of file class.ilContainerBlockPropertiesStorageGUI.php.

52 : void
53 {
54 $ilCtrl = $this->ctrl;
55
56 $cmd = $ilCtrl->getCmd();
57 if (in_array($cmd, ["store"], true)) {
58 $this->$cmd();
59 }
60 }
getCmd(string $fallback_command=null)
@inheritDoc

References $ctrl, and ilCtrl\getCmd().

+ Here is the call graph for this function:

◆ store()

ilContainerBlockPropertiesStorageGUI::store ( )

Definition at line 62 of file class.ilContainerBlockPropertiesStorageGUI.php.

62 : void
63 {
65
66 switch ($this->request->getBlockAction()) {
67
68 case "expand":
69 $this->block_repo->setProperty(
70 $this->request->getBlockId(),
71 $ilUser->getId(),
72 "opened",
73 "1"
74 );
75 break;
76
77 case "collapse":
78 $this->block_repo->setProperty(
79 $this->request->getBlockId(),
80 $ilUser->getId(),
81 "opened",
82 "0"
83 );
84 break;
85 }
86 }
$ilUser
Definition: imgupload.php:34

References $ilUser, and $user.

Field Documentation

◆ $block_repo

BlockSessionRepository ilContainerBlockPropertiesStorageGUI::$block_repo
protected

◆ $ctrl

ilCtrl ilContainerBlockPropertiesStorageGUI::$ctrl
protected

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

Referenced by executeCommand().

◆ $request

StandardGUIRequest ilContainerBlockPropertiesStorageGUI::$request
protected

◆ $user

ilObjUser ilContainerBlockPropertiesStorageGUI::$user
protected

Definition at line 34 of file class.ilContainerBlockPropertiesStorageGUI.php.

Referenced by store().


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