ILIAS  release_8 Revision v8.24
ilObjTalkTemplateAdministrationAccess Class Reference
+ Inheritance diagram for ilObjTalkTemplateAdministrationAccess:
+ Collaboration diagram for ilObjTalkTemplateAdministrationAccess:

Static Public Member Functions

static _getCommands ()
 get commands More...
 
static _checkGoto (string $a_target)
 
- Static Public Member Functions inherited from ilObjectAccess
static _getCommands ()
 get commands More...
 
static _checkGoto (string $target)
 check whether goto script will succeed More...
 
static _isOffline (int $obj_id)
 Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More...
 
static _preloadData (array $obj_ids, array $ref_ids)
 Preload data. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilObjectAccess
 _checkAccess (string $cmd, string $permission, int $ref_id, int $obj_id, ?int $user_id=null)
 Checks whether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
 canBeDelivered (ilWACPath $ilWACPath)
 

Detailed Description

Member Function Documentation

◆ _checkGoto()

static ilObjTalkTemplateAdministrationAccess::_checkGoto ( string  $a_target)
static
Parameters
string$a_targetcheck whether goto script will succeed
Returns
bool

Reimplemented from ilObjectAccess.

Definition at line 64 of file class.ilObjTalkTemplateAdministrationAccess.php.

64 : bool
65 {
66 global $DIC;
67
68 $t_arr = explode('_', $a_target);
69 if ($t_arr[0] !== 'tala' || ((int) $t_arr[1]) <= 0) {
70 return false;
71 }
72 if ($DIC->access()->checkAccess('read', '', (int) $t_arr[1])) {
73 return true;
74 }
75
76 return false;
77 }
global $DIC
Definition: feed.php:28

References $DIC.

◆ _getCommands()

static ilObjTalkTemplateAdministrationAccess::_getCommands ( )
static

get commands

this method returns an array of all possible commands/permission combinations

example: $commands = array ( array('permission' => 'read', 'cmd' => 'view', 'lang_var' => 'show'), array('permission' => 'write', 'cmd' => 'edit', 'lang_var' => 'edit'), );

Reimplemented from ilObjectAccess.

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

37 : array
38 {
39 $commands = [
40 [
41 'permission' => 'read',
42 'cmd' => ControlFlowCommand::DEFAULT,
43 'lang_var' => 'show',
44 'default' => true,
45 ],
46 [
47 'permission' => 'write',
48 'cmd' => ControlFlowCommand::DEFAULT,
49 'lang_var' => 'edit',
50 'default' => false,
51 ]
52 ];
53
54 return $commands;
55 }

Referenced by ilObjTalkTemplateAdministrationListGUI\init().

+ Here is the caller graph for this function:

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