34 require_once
"./classes/class.ilObject.php";
35 require_once
"./Services/Container/classes/class.ilContainer.php";
48 $this->
ilObject($a_id,$a_call_by_reference);
63 $message = get_class($this).
"::delete(): Can't delete root folder!";
64 $this->ilias->raiseError($message,$this->ilias->error_obj->WARNING);
68 if (!parent::delete())
88 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
141 $q =
"SELECT * FROM object_translation WHERE obj_id = ".
142 $ilDB->quote($this->
getId(),
'integer').
" ORDER BY lang_default DESC";
143 $r = $this->ilias->db->query(
$q);
147 $data[
"Fobject"] = array();
150 $data[
"Fobject"][$num]= array(
"title" =>
$row->title,
151 "desc" =>
$row->description,
152 "lang" =>
$row->lang_code
158 $data[
"default_language"] = 0;
168 $query =
"DELETE FROM object_translation WHERE obj_id= ".
169 $ilDB->quote($this->
getId(),
'integer');
180 $a_title =
"NO TITLE";
183 $query =
"INSERT INTO object_translation ".
184 "(obj_id,title,description,lang_code,lang_default) ".
186 "(".$ilDB->quote($this->
getId(),
'integer').
",".
187 $ilDB->quote($a_title,
'text').
",".
188 $ilDB->quote($a_desc,
'text').
",".
189 $ilDB->quote($a_lang,
'text').
",".
190 $ilDB->quote($a_lang_default,
'integer').
")";