ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilOrgUnitDefaultPermissionGUI Class Reference

Class ilOrgUnitDefaultPermissionGUI. More...

+ Inheritance diagram for ilOrgUnitDefaultPermissionGUI:
+ Collaboration diagram for ilOrgUnitDefaultPermissionGUI:

Protected Member Functions

 index ()
 
 update ()
 
 getCurrentPositionId ()
 
 cancel ()
 
- Protected Member Functions inherited from ILIAS\Modules\OrgUnit\ARHelper\BaseCommands
 index ()
 
 getPossibleNextClasses ()
 
 getActiveTabId ()
 
 cancel ()
 
 setContent ($html)
 
 pushSubTab ($subtab_id, $url)
 
 activeSubTab ($subtab_id)
 
 getParentRefId ()
 

Additional Inherited Members

- Public Member Functions inherited from ILIAS\Modules\OrgUnit\ARHelper\BaseCommands
 getParentGui ()
 
 setParentGui ($parent_gui)
 
 executeCommand ()
 
 addSubTabs ()
 
- Data Fields inherited from ILIAS\Modules\OrgUnit\ARHelper\BaseCommands
const CMD_INDEX = "index"
 
const CMD_ADD = "add"
 
const CMD_CREATE = "create"
 
const CMD_EDIT = "edit"
 
const CMD_UPDATE = "update"
 
const CMD_CONFIRM = "confirm"
 
const CMD_DELETE = "delete"
 
const CMD_CANCEL = "cancel"
 
const AR_ID = "arid"
 
- Protected Attributes inherited from ILIAS\Modules\OrgUnit\ARHelper\BaseCommands
 $parent_gui = null
 

Detailed Description

Member Function Documentation

◆ cancel()

ilOrgUnitDefaultPermissionGUI::cancel ( )
protected

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

Referenced by update().

54  {
55  $this->ctrl()->redirectByClass(ilOrgUnitPositionGUI::class);
56  }
+ Here is the caller graph for this function:

◆ getCurrentPositionId()

ilOrgUnitDefaultPermissionGUI::getCurrentPositionId ( )
protected
Returns
int

Definition at line 43 of file class.ilOrgUnitDefaultPermissionGUI.php.

References $id.

Referenced by index(), and update().

44  {
45  static $id;
46  if (!$id) {
47  $id = $this->dic()->http()->request()->getQueryParams()['arid'];
48  }
49 
50  return (int) $id;
51  }
if(!array_key_exists('StateId', $_REQUEST)) $id
+ Here is the caller graph for this function:

◆ index()

ilOrgUnitDefaultPermissionGUI::index ( )
protected

Definition at line 14 of file class.ilOrgUnitDefaultPermissionGUI.php.

References ilOrgUnitPermissionQueries\getAllTemplateSetsForAllActivedContexts(), getCurrentPositionId(), ILIAS\Modules\OrgUnit\ARHelper\BaseCommands\getParentGui(), ILIAS\Modules\OrgUnit\ARHelper\BaseCommands\setContent(), and ilOrgUnitPositionGUI\SUBTAB_PERMISSIONS.

15  {
16  $this->getParentGui()->addSubTabs();
19  $ilOrgUnitDefaultPermissionFormGUI = new ilOrgUnitDefaultPermissionFormGUI($this, $ilOrgUnitPermissions);
20  $ilOrgUnitDefaultPermissionFormGUI->fillForm();
21 
22  $this->setContent($ilOrgUnitDefaultPermissionFormGUI->getHTML());
23  }
Class ilOrgUnitDefaultPermissionFormGUI.
static getAllTemplateSetsForAllActivedContexts($position_id, $editable=false)
+ Here is the call graph for this function:

◆ update()

ilOrgUnitDefaultPermissionGUI::update ( )
protected

Definition at line 26 of file class.ilOrgUnitDefaultPermissionGUI.php.

References cancel(), ilOrgUnitPermissionQueries\getAllTemplateSetsForAllActivedContexts(), getCurrentPositionId(), ILIAS\Modules\OrgUnit\ARHelper\BaseCommands\getParentGui(), and ILIAS\Modules\OrgUnit\ARHelper\BaseCommands\setContent().

27  {
28  $this->getParentGui()->addSubTabs();
30  $ilOrgUnitDefaultPermissionFormGUI = new ilOrgUnitDefaultPermissionFormGUI($this, $ilOrgUnitPermissions);
31  if ($ilOrgUnitDefaultPermissionFormGUI->saveObject()) {
32  ilUtil::sendSuccess($this->txt('msg_success_permission_saved'), true);
33  $this->cancel();
34  }
35 
36  $this->setContent($ilOrgUnitDefaultPermissionFormGUI->getHTML());
37  }
Class ilOrgUnitDefaultPermissionFormGUI.
static getAllTemplateSetsForAllActivedContexts($position_id, $editable=false)
+ Here is the call graph for this function:

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