ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilChatroomServerConnector. More...
Public Member Functions | |
__construct (ilChatroomServerSettings $settings) | |
Constructor Sets $this->settings using given $settings. More... | |
isServerAlive () | |
connect ($scope, $userId) | |
Returns connect URL Creates connect URL using given $scope and $userId and returns it. More... | |
sendCreatePrivateRoom ($scope, $subScope, $user, $title) | |
sendDeletePrivateRoom ($scope, $subScope, $user) | |
enterPrivateRoom ($scope, $subScope, $user) | |
sendEnterPrivateRoom ($scope, $subScope, $user) | |
sendClearMessages ($scope, $subScope, $user) | |
leavePrivateRoom ($scope, $subScope, $user) | |
sendLeavePrivateRoom ($scope, $subScope, $user) | |
sendKick ($scope, $subScope, $user) | |
kick ($scope, $subScope, $user) | |
Returns kick URL Creates kick URL using given $scope and $query and returns it. More... | |
sendBan ($scope, $subScope, $user) | |
getSettings () | |
Returns $this->settings. More... | |
sendMessage ($scope, $message, $options=array()) | |
Returns if given message is sucessfully sent. More... | |
post ($scope, $query) | |
Returns post URL Creates post URL using given $scope and $query and returns it. More... | |
sendInviteToPrivateRoom ($scope, $subScope, $user, $invited_id) | |
createUniqueScopeId ($roomId, $pRoomId=null) | |
sendUserConfigChange ($message) | |
Static Public Member Functions | |
static | checkServerConnection ($use_cache=true) |
Protected Member Functions | |
file_get_contents ($url, array $stream_context_params=null) | |
Static Protected Attributes | |
static | $connection_status = null |
Private Attributes | |
$settings | |
Class ilChatroomServerConnector.
Definition at line 10 of file class.ilChatroomServerConnector.php.
ilChatroomServerConnector::__construct | ( | ilChatroomServerSettings | $settings | ) |
Constructor Sets $this->settings using given $settings.
ilChatroomServerSettings | $settings |
Definition at line 27 of file class.ilChatroomServerConnector.php.
References $settings, and settings().
|
static |
bool | true | $use_cache |
Definition at line 36 of file class.ilChatroomServerConnector.php.
Referenced by ilChatroomAdminViewGUI\checkServerConnection(), and ilChatroomBlockGUI\getHTML().
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 79 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and settings().
ilChatroomServerConnector::createUniqueScopeId | ( | $roomId, | |
$pRoomId = null |
|||
) |
string | $roomId | |
string | null | $pRoomId |
Definition at line 321 of file class.ilChatroomServerConnector.php.
ilChatroomServerConnector::enterPrivateRoom | ( | $scope, | |
$subScope, | |||
$user | |||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 168 of file class.ilChatroomServerConnector.php.
References sendEnterPrivateRoom().
|
protected |
string | $url | |
array | $stream_context_params |
Definition at line 91 of file class.ilChatroomServerConnector.php.
References $file, $header, $url, array, ilLoggerFactory\getLogger(), and settings().
Referenced by connect(), isServerAlive(), kick(), post(), sendBan(), sendClearMessages(), sendCreatePrivateRoom(), sendDeletePrivateRoom(), sendEnterPrivateRoom(), sendInviteToPrivateRoom(), sendLeavePrivateRoom(), and sendUserConfigChange().
ilChatroomServerConnector::getSettings | ( | ) |
Returns $this->settings.
Definition at line 267 of file class.ilChatroomServerConnector.php.
References $settings.
ilChatroomServerConnector::isServerAlive | ( | ) |
Definition at line 53 of file class.ilChatroomServerConnector.php.
References array, file_get_contents(), and settings().
ilChatroomServerConnector::kick | ( | $scope, | |
$subScope, | |||
$user | |||
) |
Returns kick URL Creates kick URL using given $scope and $query and returns it.
string | $scope | |
string | $subScope | |
int | $user |
Definition at line 243 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and settings().
Referenced by sendKick().
ilChatroomServerConnector::leavePrivateRoom | ( | $scope, | |
$subScope, | |||
$user | |||
) |
string | $scope | |
int | $subScope | |
int | $user |
Definition at line 206 of file class.ilChatroomServerConnector.php.
References sendLeavePrivateRoom().
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 295 of file class.ilChatroomServerConnector.php.
References $query, file_get_contents(), and settings().
Referenced by sendMessage().
ilChatroomServerConnector::sendBan | ( | $scope, | |
$subScope, | |||
$user | |||
) |
string | $scope | |
string | $subScope | |
int | $user |
Definition at line 256 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and settings().
ilChatroomServerConnector::sendClearMessages | ( | $scope, | |
$subScope, | |||
$user | |||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 192 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and settings().
ilChatroomServerConnector::sendCreatePrivateRoom | ( | $scope, | |
$subScope, | |||
$user, | |||
$title | |||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 141 of file class.ilChatroomServerConnector.php.
References $title, file_get_contents(), and settings().
ilChatroomServerConnector::sendDeletePrivateRoom | ( | $scope, | |
$subScope, | |||
$user | |||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 154 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and settings().
ilChatroomServerConnector::sendEnterPrivateRoom | ( | $scope, | |
$subScope, | |||
$user | |||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 179 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and settings().
Referenced by enterPrivateRoom().
ilChatroomServerConnector::sendInviteToPrivateRoom | ( | $scope, | |
$subScope, | |||
$user, | |||
$invited_id | |||
) |
int | $scope | |
int | $subScope | |
int | $user | |
int | $invited_id |
Definition at line 309 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and settings().
ilChatroomServerConnector::sendKick | ( | $scope, | |
$subScope, | |||
$user | |||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 230 of file class.ilChatroomServerConnector.php.
References kick().
ilChatroomServerConnector::sendLeavePrivateRoom | ( | $scope, | |
$subScope, | |||
$user | |||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 217 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and settings().
Referenced by leavePrivateRoom().
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 281 of file class.ilChatroomServerConnector.php.
References $options, $query, array, and post().
ilChatroomServerConnector::sendUserConfigChange | ( | $message | ) |
string | $message |
Definition at line 335 of file class.ilChatroomServerConnector.php.
References $query, array, file_get_contents(), and settings().
|
staticprotected |
Definition at line 15 of file class.ilChatroomServerConnector.php.
|
private |
Definition at line 20 of file class.ilChatroomServerConnector.php.
Referenced by ilChatroomServerConnectorMock\__construct(), __construct(), and getSettings().