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

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

check whether goto script will succeed

Reimplemented from ilObjectAccess.

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

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

References $DIC.

◆ _getCommands()

static ilObjChatroomAdminAccess::_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"), );

Returns
array{permission?:string, cmd?:string, lang_var?:string, default?:bool}[]

Reimplemented from ilObjectAccess.

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: