ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 {
64 $ilUser = $this->user;
65
66 switch ($this->request->getBlockAction()) {
67 case "expand":
68 $this->block_repo->setProperty(
69 $this->request->getBlockId(),
70 $ilUser->getId(),
71 "opened",
72 "1"
73 );
74 break;
75
76 case "collapse":
77 $this->block_repo->setProperty(
78 $this->request->getBlockId(),
79 $ilUser->getId(),
80 "opened",
81 "0"
82 );
83 break;
84 }
85 }

References $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: