ILIAS  release_8 Revision v8.23
ilObjChatroomAdminAccess Class Reference

Class ilObjChatroomAdminAccess Access class for chatroom objects. More...

+ Inheritance diagram for ilObjChatroomAdminAccess:
+ Collaboration diagram for ilObjChatroomAdminAccess:

Static Public Member Functions

static _getCommands ()
 
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

Class ilObjChatroomAdminAccess Access class for chatroom objects.

Author
Jan Posselt jposs.nosp@m.elt@.nosp@m.datab.nosp@m.ay.d.nosp@m.e
Version
$Id$

Definition at line 28 of file class.ilObjChatroomAdminAccess.php.

Member Function Documentation

◆ _checkGoto()

static ilObjChatroomAdminAccess::_checkGoto ( string  $target)
static

Definition at line 40 of file class.ilObjChatroomAdminAccess.php.

References $DIC.

40  : bool
41  {
42  global $DIC;
43 
44  $t_arr = explode('_', $target);
45 
46  if ($t_arr[0] !== 'chtr' || !isset($t_arr[1]) || ((int) $t_arr[1]) <= 0) {
47  return false;
48  }
49 
50  if ($DIC->rbac()->system()->checkAccess('visible', (int) $t_arr[1])) {
51  return true;
52  }
53 
54  return false;
55  }
global $DIC
Definition: feed.php:28

◆ _getCommands()

static ilObjChatroomAdminAccess::_getCommands ( )
static

Definition at line 30 of file class.ilObjChatroomAdminAccess.php.

30  : array
31  {
32  $commands = [];
33  $commands[] = ['permission' => 'read', 'cmd' => 'view', 'lang_var' => 'enter', 'default' => true];
34  $commands[] = ['permission' => 'write', 'cmd' => 'edit', 'lang_var' => 'edit'];
35  $commands[] = ['permission' => 'write', 'cmd' => 'versions', 'lang_var' => 'versions'];
36 
37  return $commands;
38  }

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