13 require_once
"./classes/class.ilObject.php";
28 $this->
ilObject($a_id,$a_call_by_reference);
30 $this->styles = array();
40 $this->styles[$a_style_id] =
41 array(
"id" => $a_style_id,
65 if (!parent::update())
71 $q =
"DELETE FROM style_folder_styles WHERE folder_id = ".
72 $ilDB->quote($this->
getId(),
"integer");
73 $ilDB->manipulate($q);
74 foreach($this->styles as $style)
76 $q =
"INSERT INTO style_folder_styles (folder_id, style_id) VALUES".
77 "(".$ilDB->quote((
int) $this->
getId(),
"integer").
", ".
78 $ilDB->quote((
int) $style[
"id"],
"integer").
")";
79 $ilDB->manipulate($q);
95 $q =
"SELECT * FROM style_folder_styles, style_data WHERE folder_id = ".
96 $ilDB->quote($this->
getId(),
"integer").
97 " AND style_id = style_data.id";
99 $style_set = $ilDB->query($q);
100 $this->styles = array();
101 while ($style_rec = $ilDB->fetchAssoc($style_set))
103 $this->styles[$style_rec[
"style_id"]] =
104 array(
"id" => $style_rec[
"style_id"],
106 "category" => $style_rec[
"category"]);
119 $q =
"SELECT count(*) cnt FROM settings_deactivated_s".
120 " WHERE skin = ".$ilDB->quote($a_skin,
"text").
121 " AND style = ".$ilDB->quote($a_style,
"text").
" ";
123 $cnt_set = $ilDB->query($q);
124 $cnt_rec = $ilDB->fetchAssoc($cnt_set);
126 if ($cnt_rec[
"cnt"] > 0)
144 $q =
"INSERT into settings_deactivated_s".
145 " (skin, style) VALUES ".
146 " (".$ilDB->quote($a_skin,
"text").
",".
147 " ".$ilDB->quote($a_style,
"text").
")";
149 $ilDB->manipulate($q);
159 $q =
"DELETE FROM settings_deactivated_s".
160 " WHERE skin = ".$ilDB->quote($a_skin,
"text").
161 " AND style = ".$ilDB->quote($a_style,
"text");
163 $ilDB->manipulate($q);
186 if (!parent::delete())
219 return $roles ? $roles : array();
235 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
275 if ($a_node_id==
$_GET[
"ref_id"])
277 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
278 $parent_type = $parent_obj->getType();
279 if($parent_type == $this->
getType())
281 $a_node_id = (int) $tree->getParentId($a_node_id);
285 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);