ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjTalkTemplateAccess Class Reference
+ Inheritance diagram for ilObjTalkTemplateAccess:
+ Collaboration diagram for ilObjTalkTemplateAccess:

Static Public Member Functions

static _getCommands ()
 get commands More...
 
static _checkGoto (string $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)
 

Detailed Description

Definition at line 23 of file class.ilObjTalkTemplateAccess.php.

Member Function Documentation

◆ _checkGoto()

static ilObjTalkTemplateAccess::_checkGoto ( string  $target)
static
Parameters
string$targetcheck whether goto script will succeed
Returns
bool

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

References $DIC.

57  : bool
58  {
59  global $DIC;
60 
61  $t_arr = explode('_', $target);
62  if ($t_arr[0] !== 'talt' || ((int) $t_arr[1]) <= 0) {
63  return false;
64  }
65  if ($DIC->access()->checkAccess('read', '', (int) $t_arr[1])) {
66  return true;
67  }
68 
69  return false;
70  }
global $DIC
Definition: feed.php:28

◆ _getCommands()

static ilObjTalkTemplateAccess::_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'), );

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

Referenced by ilObjTalkTemplateListGUI\init().

37  : array
38  {
39  $commands = [
40  [
41  'permission' => 'read',
42  'cmd' => ControlFlowCommand::DEFAULT,
43  'lang_var' => 'show',
44  'default' => true,
45  ]
46  ];
47 
48  return $commands;
49  }
+ Here is the caller graph for this function:

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