34 require_once
"./Services/Object/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;
160 return $data ? $data : array();
168 $query =
"DELETE FROM object_translation WHERE obj_id= ".
169 $ilDB->quote($this->
getId(),
'integer').
" AND lang_code = ".
170 $ilDB->quote($a_lang,
'text');
179 $query =
"DELETE FROM object_translation WHERE obj_id= ".
180 $ilDB->quote($this->
getId(),
'integer');
191 $a_title =
"NO TITLE";
194 $query =
"INSERT INTO object_translation ".
195 "(obj_id,title,description,lang_code,lang_default) ".
197 "(".$ilDB->quote($this->
getId(),
'integer').
",".
198 $ilDB->quote($a_title,
'text').
",".
199 $ilDB->quote($a_desc,
'text').
",".
200 $ilDB->quote($a_lang,
'text').
",".
201 $ilDB->quote($a_lang_default,
'integer').
")";
208 include_once
'./Services/Object/classes/class.ilObjectActivation.php';