ILIAS
Release_4_2_x_branch Revision 61807
|
Class ilChatroomServerConnector. More...
Public Member Functions | |
__construct (ilChatroomServerSettings $settings) | |
Constructor. | |
connect ($scope, $userId) | |
Returns connect URL. | |
post ($scope, $query) | |
Returns post URL. | |
enterPrivateRoom ($scope, $query) | |
leavePrivateRoom ($scope, $query) | |
kick ($scope, $query) | |
Returns kick URL. | |
getSettings () | |
Returns $this->settings. | |
sendMessage ($scope, $message, $options=array()) | |
Returns if given message is sucessfully sent. | |
inviteToPrivateRoom (ilChatRoom $room, $scope, ilObjUser $inviter, $invited_id) | |
createPrivateRoom (ilChatroom $room, $title, ilChatroomUser $owner) | |
isServerAlive () |
Static Public Member Functions | |
static | checkServerConnection () |
Private Member Functions | |
file_get_contents ($url) | |
sendCreatePrivateRoom ($scope, $query) |
Private Attributes | |
$settings |
Class ilChatroomServerConnector.
Definition at line 13 of file class.ilChatroomServerConnector.php.
ilChatroomServerConnector::__construct | ( | ilChatroomServerSettings | $settings | ) |
Constructor.
Sets $this->settings using given $settings
ilChatroomServerSettings | $settings |
Definition at line 33 of file class.ilChatroomServerConnector.php.
References $settings.
|
static |
Definition at line 260 of file class.ilChatroomServerConnector.php.
References $settings, and ilChatroomAdmin\getDefaultConfiguration().
Referenced by ilChatroomViewTask\clientsettings(), ilChatroomBlockGUI\getHTML(), ilChatroomViewTask\getServerStatus(), and ilChatroomViewTask\serversettings().
ilChatroomServerConnector::connect | ( | $scope, | |
$userId | |||
) |
Returns connect URL.
Creates connect URL using given $scope and $userId and returns it.
string | $scope | |
integer | $userId |
Definition at line 47 of file class.ilChatroomServerConnector.php.
References file_get_contents().
ilChatroomServerConnector::createPrivateRoom | ( | ilChatroom | $room, |
$title, | |||
ilChatroomUser | $owner | ||
) |
Definition at line 193 of file class.ilChatroomServerConnector.php.
References $query, $result, $settings, $title, ilChatroom\addPrivateRoom(), enterPrivateRoom(), ilChatroom\getRoomId(), ilChatroomUser\getUserId(), sendCreatePrivateRoom(), sendMessage(), and ilChatroom\subscribeUserToPrivateRoom().
ilChatroomServerConnector::enterPrivateRoom | ( | $scope, | |
$query | |||
) |
string | $scope | |
string | $query |
Definition at line 89 of file class.ilChatroomServerConnector.php.
References $query, and file_get_contents().
Referenced by createPrivateRoom().
|
private |
Definition at line 18 of file class.ilChatroomServerConnector.php.
Referenced by connect(), enterPrivateRoom(), isServerAlive(), kick(), leavePrivateRoom(), post(), and sendCreatePrivateRoom().
ilChatroomServerConnector::getSettings | ( | ) |
Returns $this->settings.
Definition at line 130 of file class.ilChatroomServerConnector.php.
References $settings.
ilChatroomServerConnector::inviteToPrivateRoom | ( | ilChatRoom | $room, |
$scope, | |||
ilObjUser | $inviter, | ||
$invited_id | |||
) |
Definition at line 153 of file class.ilChatroomServerConnector.php.
References $tpl, ilObject\getId(), ilChatroom\lookupPrivateRoomTitle(), and sendMessage().
ilChatroomServerConnector::isServerAlive | ( | ) |
Definition at line 239 of file class.ilChatroomServerConnector.php.
References file_get_contents().
ilChatroomServerConnector::kick | ( | $scope, | |
$query | |||
) |
Returns kick URL.
Creates kick URL using given $scope and $query and returns it.
string | $scope | |
string | $query |
Definition at line 118 of file class.ilChatroomServerConnector.php.
References $query, and file_get_contents().
ilChatroomServerConnector::leavePrivateRoom | ( | $scope, | |
$query | |||
) |
string | $scope | |
string | $query |
Definition at line 102 of file class.ilChatroomServerConnector.php.
References $query, and file_get_contents().
ilChatroomServerConnector::post | ( | $scope, | |
$query | |||
) |
Returns post URL.
Creates post URL using given $scope and $query and returns it.
string | $scope | |
string | $query |
Definition at line 63 of file class.ilChatroomServerConnector.php.
References $query, and file_get_contents().
Referenced by sendMessage().
|
private |
string | $scope | |
string | $query |
Definition at line 76 of file class.ilChatroomServerConnector.php.
References $query, and file_get_contents().
Referenced by createPrivateRoom().
ilChatroomServerConnector::sendMessage | ( | $scope, | |
$message, | |||
$options = array() |
|||
) |
Returns if given message is sucessfully sent.
Calls $this->post using given $scope and $query built by http_build_query with given $message and returns if message was sent sucessfully.
string | $scope | |
string | $message |
Definition at line 146 of file class.ilChatroomServerConnector.php.
References $query, and post().
Referenced by createPrivateRoom(), and inviteToPrivateRoom().
|
private |
Definition at line 16 of file class.ilChatroomServerConnector.php.
Referenced by __construct(), checkServerConnection(), createPrivateRoom(), and getSettings().