ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilObjChatroomAdminAccess Class Reference

Class ilObjChatroomAdminAccess. More...

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

Public Member Functions

 _getCommands ()
 This method returns an array of all possible commands/permission combinations. More...
 
 _checkGoto ($a_target)
 Check whether goto script will succeed. 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...
 
 _getCommands ()
 get commands More...
 
 _checkGoto ($a_target)
 check whether goto script will succeed More...
 
 _preloadData ($a_obj_ids, $a_ref_ids)
 Preload data. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilObjectAccess
static _isOffline ($a_obj_id)
 Type-specific implementation of general status, has to be overwritten. 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 17 of file class.ilObjChatroomAdminAccess.php.

Member Function Documentation

◆ _checkGoto()

ilObjChatroomAdminAccess::_checkGoto (   $a_target)

Check whether goto script will succeed.

@global ilAccessHandler $ilAccess

Parameters
string$a_target
Returns
bool
Todo:
: $a_target muss eig. immer ein string sein, da sonst das explode nicht funktioniert, also typehinten (string $a_target) oder?

Reimplemented from ilObjectAccess.

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

52 {
53 global $ilAccess;
54
55 $t_arr = explode("_", $a_target);
56
57 if ($t_arr[0] != "chtr" || ((int) $t_arr[1]) <= 0)
58 {
59 return false;
60 }
61
62 if ($ilAccess->checkAccess("visible", "", $t_arr[1]))
63 {
64 return true;
65 }
66
67 return false;
68 }

◆ _getCommands()

ilObjChatroomAdminAccess::_getCommands ( )

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
string

Reimplemented from ilObjectAccess.

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

33 {
34 $commands = array();
35 $commands[] = array("permission" => "read", "cmd" => "view", "lang_var" => "enter", "default" => true);
36 $commands[] = array("permission" => "write", "cmd" => "edit", "lang_var" => "edit");
37 $commands[] = array("permission" => "write", "cmd" => "versions", "lang_var" => "versions");
38
39 return $commands;
40 }

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