ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 
 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

Reimplemented from ilObjectAccess.

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

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: shib_login.php:26

References $DIC.

◆ _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'), );

Reimplemented from ilObjectAccess.

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

37 : array
38 {
39 $commands = [
40 [
41 'permission' => 'read',
43 'lang_var' => 'show',
44 'default' => true,
45 ]
46 ];
47
48 return $commands;
49 }

References ILIAS\Forum\Notification\DEFAULT.

Referenced by ilObjTalkTemplateListGUI\init().

+ Here is the caller graph for this function:

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