ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 ()
 {} More...
 
static _checkGoto ($a_target)
 {} 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. 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...
 

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

{}

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

References $DIC.

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

◆ _getCommands()

static ilObjChatroomAdminAccess::_getCommands ( )
static

{}

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

References array.

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  }
Create styles array
The data for the language used.

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