69 $this->title = $a_val;
109 $this->description = $a_val;
132 $settings = $this->
getConfig()->getSettings();
135 if (is_array($a_value))
136 $a_value = serialize($a_value);
138 $a_value = unserialize($a_value);
142 $this->setting[$a_setting] = array(
155 unset($this->setting[$a_setting]);
163 $this->setting = array();
182 $this->hidden_tab[$a_tab_id] = $a_tab_id;
190 $this->hidden_tab = array();
232 $set = $ilDB->query(
"SELECT * FROM adm_settings_template WHERE ".
233 " id = ".$ilDB->quote($this->getId(),
"integer")
235 $rec = $ilDB->fetchAssoc($set);
241 $set = $ilDB->query(
"SELECT * FROM adm_set_templ_value WHERE ".
242 " template_id = ".$ilDB->quote($this->getId(),
"integer")
244 while ($rec = $ilDB->fetchAssoc($set))
247 $rec[
"value"], $rec[
"hide"]);
251 $set = $ilDB->query(
"SELECT * FROM adm_set_templ_hide_tab WHERE ".
252 " template_id = ".$ilDB->quote($this->getId(),
"integer")
254 while ($rec = $ilDB->fetchAssoc($set))
267 $this->
setId($ilDB->nextId(
"adm_settings_template"));
270 $ilDB->insert(
"adm_settings_template", array(
271 "id" => array(
"integer", $this->
getId()),
272 "title" => array(
"text", $this->
getTitle()),
273 "type" => array(
"text", $this->
getType()),
292 $ilDB->update(
"adm_settings_template", array(
293 "title" => array(
"text", $this->
getTitle()),
294 "type" => array(
"text", $this->
getType()),
297 "id" => array(
"integer", $this->
getId()),
301 $ilDB->manipulate(
"DELETE FROM adm_set_templ_value WHERE "
302 .
" template_id = ".$ilDB->quote($this->getId(),
"integer")
304 $ilDB->manipulate(
"DELETE FROM adm_set_templ_hide_tab WHERE "
305 .
" template_id = ".$ilDB->quote($this->getId(),
"integer")
323 $ilDB->manipulate(
"INSERT INTO adm_set_templ_value ".
324 "(template_id, setting, value, hide) VALUES (".
325 $ilDB->quote($this->getId(),
"integer").
",".
326 $ilDB->quote($s,
"text").
",".
327 $ilDB->quote($set[
"value"],
"text").
",".
328 $ilDB->quote($set[
"hide"],
"integer").
342 $ilDB->manipulate(
"INSERT INTO adm_set_templ_hide_tab ".
343 "(template_id, tab_id) VALUES (".
344 $ilDB->quote($this->getId(),
"integer").
",".
345 $ilDB->quote($tab_id,
"text").
357 $ilDB->manipulate(
"DELETE FROM adm_settings_template WHERE "
358 .
" id = ".$ilDB->quote($this->getId(),
"integer")
360 $ilDB->manipulate(
"DELETE FROM adm_set_templ_value WHERE "
361 .
" template_id = ".$ilDB->quote($this->getId(),
"integer")
363 $ilDB->manipulate(
"DELETE FROM adm_set_templ_hide_tab WHERE "
364 .
" template_id = ".$ilDB->quote($this->getId(),
"integer")
377 $set = $ilDB->query(
"SELECT * FROM adm_settings_template ".
378 " WHERE type = ".$ilDB->quote($a_type,
"text").
381 $settings_template = array();
382 while ($rec = $ilDB->fetchAssoc($set))
384 $settings_template[] = $rec;
387 return $settings_template;
400 $set = $ilDB->query(
"SELECT $a_prop FROM adm_settings_template WHERE ".
401 " id = ".$ilDB->quote($a_id,
"integer")
403 $rec = $ilDB->fetchAssoc($set);
404 return $rec[$a_prop];