30 $query =
'SELECT * FROM chatroom_admconfig';
31 $rset = $DIC->database()->query(
$query);
32 $row = $DIC->database()->fetchAssoc($rset);
34 $client_settings = json_decode(
$row[
'client_settings']);
35 $server_settings = json_decode(
$row[
'server_settings']);
38 $settings->setPort($server_settings->port);
39 $settings->setProtocol($server_settings->protocol);
40 $settings->setInstance($client_settings->name);
41 $settings->setDomain($server_settings->address);
42 $settings->setSmiliesEnabled($client_settings->enable_smilies);
43 $settings->setAuthKey($client_settings->auth->key);
44 $settings->setAuthSecret($client_settings->auth->secret);
45 $settings->setClientUrlEnabled($server_settings->client_proxy);
46 $settings->setIliasUrlEnabled($server_settings->ilias_proxy);
47 $settings->setClientUrl($server_settings->client_url);
48 $settings->setIliasUrl($server_settings->ilias_url);
49 $settings->setSubDirectory($server_settings->sub_directory);
65 if ($scope !== null) {
80 if (strpos(
$url,
'://') ===
false) {
120 if (strpos(
$protocol,
'://') ===
false) {
214 if (strpos(
$url,
'://') ===
false) {
268 $this->smilies_enabled = $a_bool;
setInstance($instance)
Sets $this->instance using given $instance.
setSubDirectory($subDirectory)
setDomain($domain)
Sets $this->domain using given $domain.
setClientUrlEnabled($clientUrlEnabled)
setAuthSecret($authSecret)
getDomain()
Returns $this->domain.
getURL($action, $scope=null)
Creates URL by calling $this->getBaseURL and using given $action and $scope and returns it...
setIliasUrlEnabled($iliasUrlEnabled)
getInstance()
Returns $this->instance.
getBaseURL()
Returns base URL Creates base URL by calling $this->getProtocol(), $this->getDomain() and $this->getP...
instance(Loop $newLoop=null)
Retrieves or sets the global Loop object.
Class ilChatroomServerSettings.
setPort($port)
Sets $this->port using given $port.
setProtocol($protocol)
Sets $this->protocol using given $protocol.
getProtocol()
Returns $this->protocol.
setSmiliesEnabled($a_bool)
getPort()
Returns $this->port.