33 require_once
"./classes/class.ilObject.php";
48 $this->
ilObject($a_id,$a_call_by_reference);
50 $this->styles = array();
60 $this->styles[$a_style_id] =
61 array(
"id" => $a_style_id,
85 if (!parent::update())
91 $q =
"DELETE FROM style_folder_styles WHERE folder_id = ".
92 $ilDB->quote($this->
getId());
94 foreach($this->styles as $style)
96 $q =
"INSERT INTO style_folder_styles (folder_id, style_id) VALUES".
97 "(".$ilDB->quote($this->
getId()).
", ".
98 $ilDB->quote($style[
"id"]).
")";
115 $q =
"SELECT * FROM style_folder_styles, object_data as obj WHERE folder_id = ".
116 $ilDB->quote($this->
getId()).
117 " AND style_id = obj.obj_id";
119 $style_set = $ilDB->query($q);
122 $this->styles[$style_rec[
"style_id"]] =
123 array(
"id" => $style_rec[
"style_id"],
124 "title" => $style_rec[
"title"]);
150 if (!parent::delete())
183 return $roles ? $roles : array();
199 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
239 if ($a_node_id==
$_GET[
"ref_id"])
241 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
242 $parent_type = $parent_obj->getType();
243 if($parent_type == $this->
getType())
245 $a_node_id = (int) $tree->getParentId($a_node_id);
249 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);