ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 commandsthis method returns an array of all possible commands/permission combinationsexample: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );} More...
 
static _checkGoto ($a_target)
 {check whether goto script will succeed} More...
 
- Static Public Member Functions inherited from ilObjectAccess
static _getCommands ()
 get commands More...
 
static _checkGoto ($a_target)
 check whether goto script will succeed More...
 
static _isOffline ($a_obj_id)
 Type-specific implementation of general status, has to be overwritten if object type does not support centralized offline handling. More...
 
static _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data. More...
 

Additional Inherited Members

- Public Member Functions inherited from ilObjectAccess
 _checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
 Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More...
 
 _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id)
 check condition More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
Parameters
ilWACPath$ilWACPath
Returns
bool
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 13 of file class.ilObjChatroomAdminAccess.php.

Member Function Documentation

◆ _checkGoto()

static ilObjChatroomAdminAccess::_checkGoto (   $a_target)
static

{check whether goto script will succeed}

Reimplemented from ilObjectAccess.

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

32 {
33 global $DIC;
34
35 $t_arr = explode('_', $a_target);
36
37 if ($t_arr[0] != 'chtr' || ((int) $t_arr[1]) <= 0) {
38 return false;
39 }
40
41 if ($DIC->rbac()->system()->checkAccess('visible', $t_arr[1])) {
42 return true;
43 }
44
45 return false;
46 }
global $DIC
Definition: saml.php:7

References $DIC.

◆ _getCommands()

static ilObjChatroomAdminAccess::_getCommands ( )
static

{get commandsthis method returns an array of all possible commands/permission combinationsexample: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );}

Reimplemented from ilObjectAccess.

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

19 {
20 $commands = array();
21 $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "enter", "default" => true);
22 $commands[] = array("permission" => "write", "cmd" => "edit", "lang_var" => "edit");
23 $commands[] = array("permission" => "write", "cmd" => "versions", "lang_var" => "versions");
24
25 return $commands;
26 }

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