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((
int) $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 WHERE folder_id = ".
96 $ilDB->quote($this->
getId(),
"integer");
98 $style_set = $ilDB->query($q);
101 $this->styles[$style_rec[
"style_id"]] =
102 array(
"id" => $style_rec[
"style_id"],
129 if (!parent::delete())
162 return $roles ? $roles : array();
178 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
218 if ($a_node_id==
$_GET[
"ref_id"])
220 $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
221 $parent_type = $parent_obj->getType();
222 if($parent_type == $this->
getType())
224 $a_node_id = (int) $tree->getParentId($a_node_id);
228 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);