ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilObjChatroomAccess Class Reference

Access class for chatroom objects. More...

+ Inheritance diagram for ilObjChatroomAccess:
+ Collaboration diagram for ilObjChatroomAccess:

Public Member Functions

 canBeDelivered (ilWACPath $ilWACPath)
 
Parameters
ilWACPath$ilWACPath
Returns
bool
More...
 
- 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)
 

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 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...
 

Static Private Attributes

static $chat_enabled = null
 

Detailed Description

Access class for chatroom objects.

Author
Jan Posselt <jposselt at databay.de>
Version
$Id$

Definition at line 13 of file class.ilObjChatroomAccess.php.

Member Function Documentation

◆ _getCommands()

static ilObjChatroomAccess::_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 23 of file class.ilObjChatroomAccess.php.

24 {
25 $commands = array();
26 $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "enter", "default" => true);
27 $commands[] = array("permission" => "write", "cmd" => "settings-general", "lang_var" => "settings");
28
29 // alex 3 Oct 2012: this leads to a blank screen, i guess it is a copy/paste bug from files
30 //$commands[] = array("permission" => "write", "cmd" => "versions", "lang_var" => "versions");
31
32 return $commands;
33 }

Referenced by ilObjChatroomListGUI\init().

+ Here is the caller graph for this function:

◆ canBeDelivered()

ilObjChatroomAccess::canBeDelivered ( ilWACPath  $ilWACPath)

Parameters
ilWACPath$ilWACPath
Returns
bool

Implements ilWACCheckingClass.

Definition at line 96 of file class.ilObjChatroomAccess.php.

97 {
98 if(preg_match("/chatroom\\/smilies\\//ui", $ilWACPath->getPath()))
99 {
100 return true;
101 }
102
103 return false;
104 }

References ilWACPath\getPath().

+ Here is the call graph for this function:

Field Documentation

◆ $chat_enabled

ilObjChatroomAccess::$chat_enabled = null
staticprivate

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


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