49 $rset = $ilDB->query(
$query );
51 if(
$row = $ilDB->fetchObject( $rset ) )
66 require_once
'Modules/Chatroom/classes/class.ilChatroomServerSettings.php';
90 $res = $ilDB->queryF(
"
92 FROM chatroom_admconfig
93 WHERE instance_id = %s",
96 array($this->config_id)
103 FROM chatroom_admconfig
104 WHERE instance_id = %s",
107 array($this->config_id)
110 $row[
'default_config'] !== null ? $def_conf =
$row[
'default_config'] : $def_conf =
"{}";
111 $row[
'client_settings'] !== null ? $clnt_set =
$row[
'client_settings'] : $clnt_set =
"{}";
114 INSERT INTO chatroom_admconfig
115 (instance_id, server_settings, default_config, client_settings)
116 VALUES (%s, %s, %s, %s)",
118 array(
'integer',
'text',
'integer',
'text'),
119 array($this->config_id, json_encode( $settings ), $def_conf, $clnt_set)
134 $res = $ilDB->queryF(
"
136 FROM chatroom_admconfig
137 WHERE instance_id = %s",
140 array($this->config_id)
147 FROM chatroom_admconfig
148 WHERE instance_id = %s",
151 array($this->config_id)
154 $row[
'default_config'] !== null ? $def_conf =
$row[
'default_config'] : $def_conf =
"{}";
155 $row[
'server_settings'] !== null ? $srv_set =
$row[
'server_settings'] : $srv_set =
"{}";
158 INSERT INTO chatroom_admconfig
159 (instance_id, server_settings, default_config, client_settings)
160 VALUES (%s, %s, %s, %s)",
162 array(
'integer',
'text',
'integer',
'text'),
163 array($this->config_id, $srv_set, $def_conf, json_encode( $settings ))
177 $query =
'SELECT * FROM ' . self::$settingsTable .
' WHERE instance_id = ' .
178 $ilDB->quote( $this->config_id,
'integer' );
180 if( (
$row = $ilDB->fetchAssoc( $ilDB->query(
$query ) )) &&
$row[
'server_settings'] )
182 return json_decode(
$row[
'server_settings'] );
198 $query =
'SELECT * FROM ' . self::$settingsTable .
' WHERE instance_id = ' .
199 $ilDB->quote( $this->config_id,
'integer' );
201 if( (
$row = $ilDB->fetchAssoc( $ilDB->query(
$query ) )) &&
$row[
'client_settings'] )
203 return json_decode(
$row[
'client_settings'] );