ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilObjTalkTemplateAdministrationAccess Class Reference
+ Inheritance diagram for ilObjTalkTemplateAdministrationAccess:
+ Collaboration diagram for ilObjTalkTemplateAdministrationAccess:

Static Public Member Functions

static _getCommands ()
 get commands More...
 
static _checkGoto (string $target)
 check whether goto script will succeed More...
 
- 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  $target)
static

check whether goto script will succeed

Reimplemented from ilObjectAccess.

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

57 : bool
58 {
59 global $DIC;
60
61 $t_arr = explode('_', $target);
62 if ($t_arr[0] !== 'tala' || ((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: shib_login.php:26

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',
43 'lang_var' => 'show',
44 'default' => true,
45 ],
46 [
47 'permission' => 'write',
49 'lang_var' => 'edit',
50 'default' => false,
51 ]
52 ];
53
54 return $commands;
55 }

References ILIAS\Forum\Notification\DEFAULT.

Referenced by ilObjTalkTemplateAdministrationListGUI\init().

+ Here is the caller graph for this function:

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