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                 while ($style_rec = $ilDB->fetchAssoc($style_set))
 
  102                         $this->styles[$style_rec[
"style_id"]] =
 
  103                                 array(
"id" => $style_rec[
"style_id"],
 
  105                                 "category" => $style_rec[
"category"]);
 
  117                 $q = 
"SELECT count(*) cnt FROM settings_deactivated_s".
 
  118                         " WHERE skin = ".$ilDB->quote($a_skin, 
"text").
 
  119                         " AND style = ".$ilDB->quote($a_style, 
"text").
" ";
 
  121                 $cnt_set = $ilDB->query($q);
 
  122                 $cnt_rec = $ilDB->fetchAssoc($cnt_set);
 
  124                 if ($cnt_rec[
"cnt"] > 0)
 
  142                 $q = 
"INSERT into settings_deactivated_s".
 
  143                         " (skin, style) VALUES ".
 
  144                         " (".$ilDB->quote($a_skin, 
"text").
",".
 
  145                         " ".$ilDB->quote($a_style, 
"text").
")";
 
  147                 $ilDB->manipulate($q);
 
  157                 $q = 
"DELETE FROM settings_deactivated_s".
 
  158                         " WHERE skin = ".$ilDB->quote($a_skin, 
"text").
 
  159                         " AND style = ".$ilDB->quote($a_style, 
"text");
 
  161                 $ilDB->manipulate($q);
 
  184                 if (!parent::delete())
 
  217                 return $roles ? $roles : array();
 
  233         function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
 
  273                 if ($a_node_id==
$_GET[
"ref_id"])
 
  275                         $parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);
 
  276                         $parent_type = $parent_obj->getType();
 
  277                         if($parent_type == $this->
getType())
 
  279                                 $a_node_id = (int) $tree->getParentId($a_node_id);
 
  283                 parent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);