ILIAS
Release_4_0_x_branch Revision 61816
|
Class ilChatUser. More...
Public Member Functions | |
__construct ($a_id) | |
Constructor public. | |
getErrorMessage () | |
setRoomId ($a_id) | |
getRoomId () | |
getObjId () | |
setOwnerId ($a_id) | |
getOwnerId () | |
getName () | |
setTitle ($a_title) | |
getTitle () | |
getGuests () | |
setUserId ($a_id) | |
getUserId () | |
invite ($a_id) | |
drop ($a_id) | |
visited ($a_id) | |
checkAccess () | |
isInvited ($a_id) | |
isOwner () | |
appendMessageToDb ($message) | |
getAllMessages ($min_timestamp=0) | |
getNewMessages ($last_known_id, &$new_last_known_id=-1, $max_age=0) | |
deleteAllMessages () | |
updateLastVisit () | |
setKicked ($a_usr_id) | |
setUnkicked ($a_usr_id) | |
isKicked ($a_usr_id) | |
getCountActiveUser ($chat_id, $room_id) | |
getActiveUsers () | |
getOnlineUsers () | |
validate () | |
deleteRooms ($a_ids) | |
delete ($a_id, $a_owner=0) | |
rename () | |
lookupRoomId () | |
add () | |
getInternalName () | |
getRooms () | |
getRoomsOfObject ($chat_id=0, $owner_id=0) | |
getAllRoomsOfObject ($chat_id=0) | |
getAllRooms () | |
checkWriteAccess () |
Static Public Member Functions | |
static | _getOwnerId ($room_id) |
static | _checkAccess ($obj_id, $room_id, $ref_id, $user_id, $owner_id) |
static | _isInvited ($obj_id, $room_id, $owner_id, $a_id) |
static | _isKicked ($a_usr_id, $chat_id) |
static | _getCountActiveUsers ($chat_id, $room_id=0) |
static | _isActive ($usr_id) |
static | _checkWriteAccess ($ref_id, $room_id, $user_id) |
static | _unkick ($a_usr_id) |
Data Fields | |
$ilias | |
$lng | |
$error_msg | |
$ref_id | |
$owner_id | |
$room_id | |
$guests | |
$title | |
$user_id |
Private Member Functions | |
getCountLines () | |
deleteFirstLine () | |
addLine ($message) | |
read () |
Class ilChatUser.
Definition at line 32 of file class.ilChatRoom.php.
ilChatRoom::__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 53 of file class.ilChatRoom.php.
|
static |
|
static |
Definition at line 846 of file class.ilChatRoom.php.
References $ref_id, $room_id, and $user_id.
Referenced by ilMailAddressbookGUI\inviteToChat().
|
static |
Definition at line 473 of file class.ilChatRoom.php.
References $ilDB, $res, and $room_id.
Referenced by ilObjChatListGUI\getProperties(), and ilObjChatGUI\viewObject().
|
static |
Definition at line 99 of file class.ilChatRoom.php.
References $ilDB, $res, $room_id, $row, and DB_FETCHMODE_OBJECT.
|
static |
Definition at line 509 of file class.ilChatRoom.php.
References $ilDB, $res, $row, $usr_id, and DB_FETCHMODE_OBJECT.
Referenced by ilUsersOnlineBlockGUI\__showActiveChatsOfUser().
|
static |
Definition at line 277 of file class.ilChatRoom.php.
|
static |
Definition at line 441 of file class.ilChatRoom.php.
|
static |
Definition at line 993 of file class.ilChatRoom.php.
References $ilDB.
Referenced by ilStartUpGUI\showLogin().
ilChatRoom::add | ( | ) |
Definition at line 668 of file class.ilChatRoom.php.
References $ilDB, $res, getObjId(), getOwnerId(), and getTitle().
|
private |
Definition at line 925 of file class.ilChatRoom.php.
References $ilDB, $res, getObjId(), and getRoomId().
Referenced by appendMessageToDb().
ilChatRoom::appendMessageToDb | ( | $message | ) |
Definition at line 300 of file class.ilChatRoom.php.
References addLine().
ilChatRoom::checkAccess | ( | ) |
Definition at line 224 of file class.ilChatRoom.php.
References $_GET, getObjId(), getRoomId(), getUserId(), isInvited(), isOwner(), setRoomId(), and visited().
ilChatRoom::checkWriteAccess | ( | ) |
Definition at line 818 of file class.ilChatRoom.php.
References $_GET, getOwnerId(), getRoomId(), getUserId(), isInvited(), and isKicked().
ilChatRoom::delete | ( | $a_id, | |
$a_owner = 0 |
|||
) |
Definition at line 562 of file class.ilChatRoom.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_ASSOC, and ilDB\isDbError().
ilChatRoom::deleteAllMessages | ( | ) |
Definition at line 356 of file class.ilChatRoom.php.
References $ilDB, $res, getObjId(), and getRoomId().
|
private |
Definition at line 892 of file class.ilChatRoom.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, getObjId(), and getRoomId().
ilChatRoom::deleteRooms | ( | $a_ids | ) |
Definition at line 549 of file class.ilChatRoom.php.
ilChatRoom::drop | ( | $a_id | ) |
Definition at line 195 of file class.ilChatRoom.php.
References $ilDB, $res, getObjId(), and getRoomId().
ilChatRoom::getActiveUsers | ( | ) |
Definition at line 490 of file class.ilChatRoom.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, and getObjId().
ilChatRoom::getAllMessages | ( | $min_timestamp = 0 | ) |
Definition at line 310 of file class.ilChatRoom.php.
References $data, $ilDB, $res, $row, DB_FETCHMODE_OBJECT, getObjId(), and getRoomId().
ilChatRoom::getAllRooms | ( | ) |
Definition at line 778 of file class.ilChatRoom.php.
References ilUtil\_getObjectsByOperations(), and ilObjChat\_getPublicChatRefId().
Referenced by ilChatBlock\getReadableAreas(), and ilMailAddressbookGUI\inviteToChat().
ilChatRoom::getAllRoomsOfObject | ( | $chat_id = 0 | ) |
Definition at line 756 of file class.ilChatRoom.php.
References $data, $ilDB, $res, $row, DB_FETCHMODE_OBJECT, and getObjId().
ilChatRoom::getCountActiveUser | ( | $chat_id, | |
$room_id | |||
) |
Definition at line 457 of file class.ilChatRoom.php.
|
private |
Definition at line 874 of file class.ilChatRoom.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, getObjId(), and getRoomId().
ilChatRoom::getErrorMessage | ( | ) |
Definition at line 68 of file class.ilChatRoom.php.
References $error_msg.
ilChatRoom::getGuests | ( | ) |
Definition at line 139 of file class.ilChatRoom.php.
ilChatRoom::getInternalName | ( | ) |
Definition at line 687 of file class.ilChatRoom.php.
References getObjId(), and getRoomId().
ilChatRoom::getName | ( | ) |
Definition at line 117 of file class.ilChatRoom.php.
References getObjId(), and getRoomId().
ilChatRoom::getNewMessages | ( | $last_known_id, | |
& | $new_last_known_id = -1 , |
||
$max_age = 0 |
|||
) |
Definition at line 330 of file class.ilChatRoom.php.
References $data, $ilDB, $res, $row, DB_FETCHMODE_OBJECT, getObjId(), and getRoomId().
ilChatRoom::getObjId | ( | ) |
Definition at line 84 of file class.ilChatRoom.php.
Referenced by add(), addLine(), checkAccess(), deleteAllMessages(), deleteFirstLine(), drop(), getActiveUsers(), getAllMessages(), getAllRoomsOfObject(), getCountLines(), getInternalName(), getName(), getNewMessages(), getRoomsOfObject(), invite(), isInvited(), isKicked(), lookupRoomId(), read(), setKicked(), setUnkicked(), updateLastVisit(), and visited().
ilChatRoom::getOnlineUsers | ( | ) |
Definition at line 528 of file class.ilChatRoom.php.
References ilUtil\getUsersOnline().
ilChatRoom::getOwnerId | ( | ) |
Definition at line 94 of file class.ilChatRoom.php.
References $owner_id.
Referenced by add(), checkWriteAccess(), isInvited(), isOwner(), lookupRoomId(), and validate().
ilChatRoom::getRoomId | ( | ) |
Definition at line 79 of file class.ilChatRoom.php.
References $room_id.
Referenced by addLine(), checkAccess(), checkWriteAccess(), deleteAllMessages(), deleteFirstLine(), drop(), getAllMessages(), getCountLines(), getInternalName(), getName(), getNewMessages(), invite(), isInvited(), read(), rename(), updateLastVisit(), and visited().
ilChatRoom::getRooms | ( | ) |
Definition at line 699 of file class.ilChatRoom.php.
References $_GET, $data, $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, and getUserId().
ilChatRoom::getRoomsOfObject | ( | $chat_id = 0 , |
|
$owner_id = 0 |
|||
) |
Definition at line 730 of file class.ilChatRoom.php.
References $data, $ilDB, $owner_id, $res, $row, DB_FETCHMODE_OBJECT, getObjId(), and getUserId().
Referenced by ilMailAddressbookGUI\inviteToChat().
ilChatRoom::getTitle | ( | ) |
Definition at line 134 of file class.ilChatRoom.php.
References $title.
Referenced by add(), lookupRoomId(), rename(), and validate().
ilChatRoom::getUserId | ( | ) |
Definition at line 149 of file class.ilChatRoom.php.
References $user_id.
Referenced by checkAccess(), checkWriteAccess(), getRooms(), getRoomsOfObject(), isOwner(), and updateLastVisit().
ilChatRoom::invite | ( | $a_id | ) |
Definition at line 154 of file class.ilChatRoom.php.
References $ilDB, $res, getObjId(), and getRoomId().
ilChatRoom::isInvited | ( | $a_id | ) |
Definition at line 259 of file class.ilChatRoom.php.
References $ilDB, $res, getObjId(), getOwnerId(), and getRoomId().
Referenced by checkAccess(), and checkWriteAccess().
ilChatRoom::isKicked | ( | $a_usr_id | ) |
Definition at line 425 of file class.ilChatRoom.php.
References $ilDB, $res, and getObjId().
Referenced by checkWriteAccess(), and updateLastVisit().
ilChatRoom::isOwner | ( | ) |
Definition at line 294 of file class.ilChatRoom.php.
References getOwnerId(), and getUserId().
Referenced by checkAccess().
ilChatRoom::lookupRoomId | ( | ) |
Definition at line 649 of file class.ilChatRoom.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, getObjId(), getOwnerId(), and getTitle().
|
private |
Definition at line 962 of file class.ilChatRoom.php.
References $ilDB, $res, $row, DB_FETCHMODE_OBJECT, getObjId(), getRoomId(), setOwnerId(), and setTitle().
Referenced by setRoomId().
ilChatRoom::rename | ( | ) |
Definition at line 635 of file class.ilChatRoom.php.
References $ilDB, $res, getRoomId(), and getTitle().
ilChatRoom::setKicked | ( | $a_usr_id | ) |
Definition at line 394 of file class.ilChatRoom.php.
References $ilDB, $res, and getObjId().
ilChatRoom::setOwnerId | ( | $a_id | ) |
Definition at line 89 of file class.ilChatRoom.php.
Referenced by read().
ilChatRoom::setRoomId | ( | $a_id | ) |
Definition at line 73 of file class.ilChatRoom.php.
References read().
Referenced by ilObjChatGUI\adminRoomsObject(), checkAccess(), ilObjChatGUI\deleteRoomObject(), ilObjChatGUI\renameObject(), and ilObjChatGUI\renameRoomObject().
ilChatRoom::setTitle | ( | $a_title | ) |
Definition at line 129 of file class.ilChatRoom.php.
Referenced by ilObjChatGUI\addPrivateRoomAsyncObject(), ilObjChatGUI\addRoomObject(), and read().
ilChatRoom::setUnkicked | ( | $a_usr_id | ) |
Definition at line 410 of file class.ilChatRoom.php.
References $ilDB, $res, and getObjId().
ilChatRoom::setUserId | ( | $a_id | ) |
Definition at line 144 of file class.ilChatRoom.php.
ilChatRoom::updateLastVisit | ( | ) |
Definition at line 370 of file class.ilChatRoom.php.
References $ilDB, $res, getObjId(), getRoomId(), getUserId(), and isKicked().
ilChatRoom::validate | ( | ) |
Definition at line 534 of file class.ilChatRoom.php.
References getOwnerId(), and getTitle().
ilChatRoom::visited | ( | $a_id | ) |
Definition at line 209 of file class.ilChatRoom.php.
References $ilDB, $res, getObjId(), and getRoomId().
Referenced by checkAccess().
ilChatRoom::$error_msg |
Definition at line 37 of file class.ilChatRoom.php.
Referenced by getErrorMessage().
ilChatRoom::$guests |
Definition at line 42 of file class.ilChatRoom.php.
ilChatRoom::$ilias |
Definition at line 34 of file class.ilChatRoom.php.
Referenced by __construct().
ilChatRoom::$lng |
Definition at line 35 of file class.ilChatRoom.php.
Referenced by __construct().
ilChatRoom::$owner_id |
Definition at line 40 of file class.ilChatRoom.php.
Referenced by _checkAccess(), _isInvited(), getOwnerId(), and getRoomsOfObject().
ilChatRoom::$ref_id |
Definition at line 39 of file class.ilChatRoom.php.
Referenced by _checkAccess(), and _checkWriteAccess().
ilChatRoom::$room_id |
Definition at line 41 of file class.ilChatRoom.php.
Referenced by _checkAccess(), _checkWriteAccess(), _getCountActiveUsers(), _getOwnerId(), _isInvited(), getCountActiveUser(), and getRoomId().
ilChatRoom::$title |
Definition at line 43 of file class.ilChatRoom.php.
Referenced by getTitle().
ilChatRoom::$user_id |
Definition at line 45 of file class.ilChatRoom.php.
Referenced by _checkAccess(), _checkWriteAccess(), and getUserId().