ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class ilChatroomServerConnector. More...
Public Member Functions | |
__construct (ilChatroomServerSettings $settings) | |
isServerAlive () | |
connect (int $scope, int $userId) | |
Creates connect URL using given $scope and $userId and returns it. More... | |
sendCreatePrivateRoom (int $scope, int $subScope, int $user, string $title) | |
sendDeletePrivateRoom (int $scope, int $subScope, int $user) | |
enterPrivateRoom (int $scope, int $subScope, int $user) | |
sendEnterPrivateRoom (int $scope, int $subScope, int $user) | |
sendClearMessages (int $scope, int $subScope, int $user) | |
leavePrivateRoom (int $scope, int $subScope, int $user) | |
sendLeavePrivateRoom (int $scope, int $subScope, int $user) | |
sendKick (int $scope, int $subScope, int $user) | |
kick (int $scope, int $subScope, int $user) | |
Returns kick URL Creates kick URL using given $scope and $query and returns it. More... | |
sendBan (int $scope, int $subScope, int $user) | |
getSettings () | |
sendInviteToPrivateRoom (int $scope, int $subScope, int $user, int $invited_id) | |
sendUserConfigChange (string $message) | |
Static Public Member Functions | |
static | checkServerConnection (bool $use_cache=true) |
Protected Member Functions | |
file_get_contents (string $url, ?array $stream_context_params=null) | |
Static Protected Attributes | |
static bool | $connection_status = null |
Private Attributes | |
ilChatroomServerSettings | $settings |
Class ilChatroomServerConnector.
Definition at line 27 of file class.ilChatroomServerConnector.php.
ilChatroomServerConnector::__construct | ( | ilChatroomServerSettings | $settings | ) |
Definition at line 33 of file class.ilChatroomServerConnector.php.
References $settings, and ILIAS\Repository\settings().
|
static |
Definition at line 38 of file class.ilChatroomServerConnector.php.
References ilChatroomAdmin\getDefaultConfiguration().
Referenced by ilChatroomAdminViewGUI\checkServerConnection().
ilChatroomServerConnector::connect | ( | int | $scope, |
int | $userId | ||
) |
Creates connect URL using given $scope and $userId and returns it.
int | $scope | |
int | $userId |
Definition at line 79 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::enterPrivateRoom | ( | int | $scope, |
int | $subScope, | ||
int | $user | ||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 164 of file class.ilChatroomServerConnector.php.
References sendEnterPrivateRoom().
|
protected |
string | $url | |
array | $stream_context_params |
Definition at line 91 of file class.ilChatroomServerConnector.php.
References Vendor\Package\$e, $message, ilLoggerFactory\getLogger(), and ILIAS\Repository\settings().
Referenced by connect(), isServerAlive(), kick(), sendBan(), sendClearMessages(), sendCreatePrivateRoom(), sendDeletePrivateRoom(), sendEnterPrivateRoom(), sendInviteToPrivateRoom(), sendLeavePrivateRoom(), and sendUserConfigChange().
ilChatroomServerConnector::getSettings | ( | ) |
Definition at line 258 of file class.ilChatroomServerConnector.php.
References $settings.
ilChatroomServerConnector::isServerAlive | ( | ) |
Definition at line 50 of file class.ilChatroomServerConnector.php.
References $response, file_get_contents(), ILIAS\Repository\int(), and ILIAS\Repository\settings().
ilChatroomServerConnector::kick | ( | int | $scope, |
int | $subScope, | ||
int | $user | ||
) |
Returns kick URL Creates kick URL using given $scope and $query and returns it.
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 238 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
Referenced by sendKick().
ilChatroomServerConnector::leavePrivateRoom | ( | int | $scope, |
int | $subScope, | ||
int | $user | ||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 201 of file class.ilChatroomServerConnector.php.
References sendLeavePrivateRoom().
ilChatroomServerConnector::sendBan | ( | int | $scope, |
int | $subScope, | ||
int | $user | ||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 251 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::sendClearMessages | ( | int | $scope, |
int | $subScope, | ||
int | $user | ||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 188 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::sendCreatePrivateRoom | ( | int | $scope, |
int | $subScope, | ||
int | $user, | ||
string | $title | ||
) |
int | $scope | |
int | $subScope | |
int | $user | |
string | $title |
Definition at line 136 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::sendDeletePrivateRoom | ( | int | $scope, |
int | $subScope, | ||
int | $user | ||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 150 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::sendEnterPrivateRoom | ( | int | $scope, |
int | $subScope, | ||
int | $user | ||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 175 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
Referenced by enterPrivateRoom().
ilChatroomServerConnector::sendInviteToPrivateRoom | ( | int | $scope, |
int | $subScope, | ||
int | $user, | ||
int | $invited_id | ||
) |
int | $scope | |
int | $subScope | |
int | $user | |
int | $invited_id |
Definition at line 270 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::sendKick | ( | int | $scope, |
int | $subScope, | ||
int | $user | ||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 225 of file class.ilChatroomServerConnector.php.
References kick().
ilChatroomServerConnector::sendLeavePrivateRoom | ( | int | $scope, |
int | $subScope, | ||
int | $user | ||
) |
int | $scope | |
int | $subScope | |
int | $user |
Definition at line 212 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
Referenced by leavePrivateRoom().
ilChatroomServerConnector::sendUserConfigChange | ( | string | $message | ) |
string | $message |
Definition at line 282 of file class.ilChatroomServerConnector.php.
References $query, file_get_contents(), and ILIAS\Repository\settings().
|
staticprotected |
Definition at line 29 of file class.ilChatroomServerConnector.php.
|
private |
Definition at line 31 of file class.ilChatroomServerConnector.php.
Referenced by __construct(), and getSettings().