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

Static Public Member Functions

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

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)
 

Detailed Description

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

Member Function Documentation

◆ _checkGoto()

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

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

References $DIC, and ilObjEmployeeTalkSeries\TYPE.

72  : bool
73  {
74  global $DIC;
75 
76  $t_arr = explode('_', $a_target);
77  if ($t_arr[0] !== ilObjEmployeeTalkSeries::TYPE || ((int) $t_arr[1]) <= 0) {
78  return false;
79  }
80  if ($DIC->access()->checkAccess('read', '', (int) $t_arr[1])) {
81  return true;
82  }
83 
84  return false;
85  }
global $DIC
Definition: feed.php:28

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

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

Referenced by ilObjEmployeeTalkSeriesListGUI\init().

48  : array
49  {
50  $commands = [
51  [
52  'permission' => 'read',
53  'cmd' => ControlFlowCommand::DEFAULT,
54  'lang_var' => 'show',
55  'default' => true,
56  ]
57  ];
58 
59  return $commands;
60  }
+ Here is the caller graph for this function:

◆ _isOffline()

static ilObjEmployeeTalkSeriesAccess::_isOffline (   $a_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  }

Field Documentation

◆ $instance

self ilObjEmployeeTalkSeriesAccess::$instance = null
staticprivate

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


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