ILIAS
Release_4_1_x_branch Revision 61804
|
Class ilChatUser. More...
Public Member Functions | |
__construct ($a_id) | |
Constructor public. | |
getBlockedUsers () | |
gets blocked users | |
isBlocked ($a_usr_id) | |
checks if user is blocked | |
block ($a_usr_id) | |
blocks given user | |
unblock ($a_usr_id) | |
unblocks given user |
Static Public Member Functions | |
static | _isBlocked ($a_chat_id, $a_usr_id) |
checks if a given user is blocked for a given chat | |
static | _deleteUser ($a_usr_id) |
deletes all blocking information for a given user | |
static | _deleteChat ($a_chat_id) |
deletes all blocking information for a given chat |
Data Fields | |
$id | |
$db | |
$blocked = array() |
Private Member Functions | |
read () | |
initialize blocking information array |
Class ilChatUser.
Definition at line 32 of file class.ilChatBlockedUsers.php.
ilChatBlockedUsers::__construct | ( | $a_id | ) |
Constructor public.
integer | reference_id or object_id |
boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 45 of file class.ilChatBlockedUsers.php.
|
static |
deletes all blocking information for a given chat
integer | chatid |
Definition at line 170 of file class.ilChatBlockedUsers.php.
References $ilDB.
|
static |
deletes all blocking information for a given user
integer | user id |
Definition at line 153 of file class.ilChatBlockedUsers.php.
References $ilDB.
|
static |
checks if a given user is blocked for a given chat
integer | chatid |
integer | userid |
Definition at line 132 of file class.ilChatBlockedUsers.php.
Referenced by ilObjChatGUI\fetchOnlineUsers(), ilObjChatGUI\fetchRooms(), ilChatBlock\getReadableAreas(), ilObjChatGUI\getUpdateAsyncObject(), ilMailAddressbookGUI\inviteToChat(), ilObjChatGUI\showUserFrameObject(), ilMailAddressbookGUI\submitInvitation(), and ilObjChatGUI\viewObject().
ilChatBlockedUsers::block | ( | $a_usr_id | ) |
blocks given user
integer | userid |
Definition at line 80 of file class.ilChatBlockedUsers.php.
ilChatBlockedUsers::getBlockedUsers | ( | ) |
gets blocked users
Definition at line 59 of file class.ilChatBlockedUsers.php.
Referenced by ilObjChatGUI\blockedUsersObject().
ilChatBlockedUsers::isBlocked | ( | $a_usr_id | ) |
checks if user is blocked
integer | userid |
Definition at line 69 of file class.ilChatBlockedUsers.php.
|
private |
initialize blocking information array
Definition at line 186 of file class.ilChatBlockedUsers.php.
References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct(), block(), and unblock().
ilChatBlockedUsers::unblock | ( | $a_usr_id | ) |
unblocks given user
integer | userid |
Definition at line 105 of file class.ilChatBlockedUsers.php.
ilChatBlockedUsers::$blocked = array() |
Definition at line 37 of file class.ilChatBlockedUsers.php.
ilChatBlockedUsers::$db |
Definition at line 35 of file class.ilChatBlockedUsers.php.
ilChatBlockedUsers::$id |
Definition at line 34 of file class.ilChatBlockedUsers.php.