ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Access class for chatroom objects. More...
Public Member Functions | |
_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) | |
_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) | |
Static Public Member Functions | |
static | _getCommands () |
get commands More... | |
static | _checkGoto (string $target) |
check whether goto script will succeed More... | |
static | lookupOnline (int $a_obj_id) |
![]() | |
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... | |
Static Private Member Functions | |
static | checkRoomAccess (string $a_permission, int $a_ref_id, int $a_obj_id, int $a_user_id) |
Static Private Attributes | |
static bool | $chat_enabled = null |
Access class for chatroom objects.
Definition at line 27 of file class.ilObjChatroomAccess.php.
ilObjChatroomAccess::_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)
Please do not check any preconditions handled by ilConditionHandler here. Also don't do any RBAC checks.
Reimplemented from ilObjectAccess.
Definition at line 56 of file class.ilObjChatroomAccess.php.
References $GLOBALS, $ref_id, $user_id, and checkRoomAccess().
|
static |
check whether goto script will succeed
Reimplemented from ilObjectAccess.
Definition at line 40 of file class.ilObjChatroomAccess.php.
References ilChatroom\checkUserPermissions().
|
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"), );
Reimplemented from ilObjectAccess.
Definition at line 31 of file class.ilObjChatroomAccess.php.
Referenced by ilObjChatroomListGUI\init().
ilObjChatroomAccess::canBeDelivered | ( | ilWACPath | $ilWACPath | ) |
Reimplemented from ilObjectAccess.
Definition at line 101 of file class.ilObjChatroomAccess.php.
|
staticprivate |
Definition at line 65 of file class.ilObjChatroomAccess.php.
References $chat_enabled, $DIC, ilAccessInfo\IL_NO_OBJECT_ACCESS, and lookupOnline().
Referenced by _checkAccess().
|
static |
Definition at line 96 of file class.ilObjChatroomAccess.php.
References ilObject\lookupOfflineStatus().
Referenced by checkRoomAccess().
|
staticprivate |
Definition at line 29 of file class.ilObjChatroomAccess.php.
Referenced by checkRoomAccess().