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

Static Public Member Functions

static getInstance ()
 
static _getCommands ()
 get commands More...
 
static _isOffline ($obj_id)
 
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...
 

Static Private Attributes

static self $instance = null
 

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.ilObjEmployeeTalkSeriesAccess.php.

Member Function Documentation

◆ _checkGoto()

static ilObjEmployeeTalkSeriesAccess::_checkGoto ( string  $target)
static

check whether goto script will succeed

Reimplemented from ilObjectAccess.

Definition at line 67 of file class.ilObjEmployeeTalkSeriesAccess.php.

67 : bool
68 {
69 global $DIC;
70
71 $t_arr = explode('_', $target);
72 if ($t_arr[0] !== ilObjEmployeeTalkSeries::TYPE || ((int) $t_arr[1]) <= 0) {
73 return false;
74 }
75 if ($DIC->access()->checkAccess('read', '', (int) $t_arr[1])) {
76 return true;
77 }
78
79 return false;
80 }
global $DIC
Definition: shib_login.php:26

References $DIC, and ilObjEmployeeTalkSeries\TYPE.

◆ _getCommands()

static ilObjEmployeeTalkSeriesAccess::_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 48 of file class.ilObjEmployeeTalkSeriesAccess.php.

48 : array
49 {
50 $commands = [
51 [
52 'permission' => 'read',
54 'lang_var' => 'show',
55 'default' => true,
56 ]
57 ];
58
59 return $commands;
60 }

References ILIAS\Forum\Notification\DEFAULT.

Referenced by ilObjEmployeeTalkSeriesListGUI\init().

+ Here is the caller graph for this function:

◆ _isOffline()

static ilObjEmployeeTalkSeriesAccess::_isOffline (   $obj_id)
static

Definition at line 62 of file class.ilObjEmployeeTalkSeriesAccess.php.

62 : bool
63 {
64 return false;
65 }

◆ getInstance()

static ilObjEmployeeTalkSeriesAccess::getInstance ( )
static

Definition at line 27 of file class.ilObjEmployeeTalkSeriesAccess.php.

27 : self
28 {
29 if (is_null(self::$instance)) {
30 self::$instance = new ilObjEmployeeTalkSeriesAccess();
31 }
32
33 return self::$instance;
34 }

References $instance.

Field Documentation

◆ $instance

self ilObjEmployeeTalkSeriesAccess::$instance = null
staticprivate

Definition at line 25 of file class.ilObjEmployeeTalkSeriesAccess.php.

Referenced by getInstance().


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