|
ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilChatroomServerConnector. More...
Inheritance diagram for ilChatroomServerConnector:
Collaboration diagram for ilChatroomServerConnector: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().
Here is the call graph for this function:
|
static |
| bool | true | $use_cache |
Definition at line 36 of file class.ilChatroomServerConnector.php.
References $connection_status.
Referenced by ilChatroomAdminViewGUI\checkServerConnection(), and ilChatroomBlockGUI\getHTML().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
|
protected |
| string | $url | |
| array | $stream_context_params |
Definition at line 91 of file class.ilChatroomServerConnector.php.
References $file, $header, $url, file_get_contents(), ilLoggerFactory\getLogger(), and settings().
Referenced by connect(), file_get_contents(), isServerAlive(), kick(), post(), sendBan(), sendClearMessages(), sendCreatePrivateRoom(), sendDeletePrivateRoom(), sendEnterPrivateRoom(), sendInviteToPrivateRoom(), sendLeavePrivateRoom(), and sendUserConfigChange().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 file_get_contents(), and settings().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| ilChatroomServerConnector::leavePrivateRoom | ( | $scope, | |
| $subScope, | |||
| $user | |||
| ) |
| string | $scope | |
| int | $subScope | |
| int | $user |
Definition at line 206 of file class.ilChatroomServerConnector.php.
References sendLeavePrivateRoom().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:| ilChatroomServerConnector::sendKick | ( | $scope, | |
| $subScope, | |||
| $user | |||
| ) |
| int | $scope | |
| int | $subScope | |
| int | $user |
Definition at line 230 of file class.ilChatroomServerConnector.php.
References kick().
Here is the call graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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, and post().
Here is the call graph for this function:| ilChatroomServerConnector::sendUserConfigChange | ( | $message | ) |
| string | $message |
Definition at line 335 of file class.ilChatroomServerConnector.php.
References $query, file_get_contents(), and settings().
Here is the call graph for this function:
|
staticprotected |
Definition at line 15 of file class.ilChatroomServerConnector.php.
Referenced by checkServerConnection().
|
private |
Definition at line 20 of file class.ilChatroomServerConnector.php.
Referenced by ilChatroomServerConnectorMock\__construct(), __construct(), and getSettings().