ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
|
Class ilChatroomServerConnector. More...
Public Member Functions | |
__construct (private readonly ilChatroomServerSettings $settings) | |
isServerAlive () | |
connect (int $scope, int $userId) | |
Creates connect URL using given $scope and $userId and returns it. More... | |
sendCreatePrivateRoom (int $scope, int $user, string $title) | |
enterPrivateRoom (int $scope, int $user) | |
sendEnterPrivateRoom (int $scope, int $user) | |
sendClearMessages (int $scope, int $user) | |
leavePrivateRoom (int $scope, int $user) | |
sendLeavePrivateRoom (int $scope, int $user) | |
sendKick (int $scope, int $user) | |
kick (int $scope, int $user) | |
Returns kick URL Creates kick URL using given $scope and $query and returns it. More... | |
sendBan (int $scope, int $user) | |
getSettings () | |
sendInviteToPrivateRoom (int $scope, 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 |
Class ilChatroomServerConnector.
Definition at line 27 of file class.ilChatroomServerConnector.php.
ilChatroomServerConnector::__construct | ( | private readonly ilChatroomServerSettings | $settings | ) |
Definition at line 31 of file class.ilChatroomServerConnector.php.
|
static |
Definition at line 35 of file class.ilChatroomServerConnector.php.
References ilChatroomAdmin\getDefaultConfiguration(), and null.
Referenced by ilChatroomAdminViewGUI\checkServerConnection().
ilChatroomServerConnector::connect | ( | int | $scope, |
int | $userId | ||
) |
Creates connect URL using given $scope and $userId and returns it.
Definition at line 74 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::enterPrivateRoom | ( | int | $scope, |
int | $user | ||
) |
Definition at line 138 of file class.ilChatroomServerConnector.php.
References sendEnterPrivateRoom().
|
protected |
array | null | $stream_context_params |
Definition at line 85 of file class.ilChatroomServerConnector.php.
References Vendor\Package\$e, $message, ilLoggerFactory\getLogger(), and ILIAS\Repository\settings().
Referenced by connect(), isServerAlive(), kick(), sendBan(), sendClearMessages(), sendCreatePrivateRoom(), sendEnterPrivateRoom(), sendInviteToPrivateRoom(), sendLeavePrivateRoom(), and sendUserConfigChange().
ilChatroomServerConnector::getSettings | ( | ) |
Definition at line 211 of file class.ilChatroomServerConnector.php.
ilChatroomServerConnector::isServerAlive | ( | ) |
Definition at line 47 of file class.ilChatroomServerConnector.php.
References $response, file_get_contents(), ILIAS\Repository\int(), and ILIAS\Repository\settings().
ilChatroomServerConnector::kick | ( | int | $scope, |
int | $user | ||
) |
Returns kick URL Creates kick URL using given $scope and $query and returns it.
Definition at line 194 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
Referenced by sendKick().
ilChatroomServerConnector::leavePrivateRoom | ( | int | $scope, |
int | $user | ||
) |
Definition at line 166 of file class.ilChatroomServerConnector.php.
References sendLeavePrivateRoom().
ilChatroomServerConnector::sendBan | ( | int | $scope, |
int | $user | ||
) |
Definition at line 204 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::sendClearMessages | ( | int | $scope, |
int | $user | ||
) |
Definition at line 156 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::sendCreatePrivateRoom | ( | int | $scope, |
int | $user, | ||
string | $title | ||
) |
Definition at line 126 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::sendEnterPrivateRoom | ( | int | $scope, |
int | $user | ||
) |
Definition at line 146 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
Referenced by enterPrivateRoom().
ilChatroomServerConnector::sendInviteToPrivateRoom | ( | int | $scope, |
int | $user, | ||
int | $invited_id | ||
) |
Definition at line 219 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
ilChatroomServerConnector::sendKick | ( | int | $scope, |
int | $user | ||
) |
Definition at line 184 of file class.ilChatroomServerConnector.php.
References kick().
ilChatroomServerConnector::sendLeavePrivateRoom | ( | int | $scope, |
int | $user | ||
) |
Definition at line 174 of file class.ilChatroomServerConnector.php.
References file_get_contents(), and ILIAS\Repository\settings().
Referenced by leavePrivateRoom().
ilChatroomServerConnector::sendUserConfigChange | ( | string | $message | ) |
Definition at line 230 of file class.ilChatroomServerConnector.php.
References file_get_contents(), null, and ILIAS\Repository\settings().
|
staticprotected |
Definition at line 29 of file class.ilChatroomServerConnector.php.