5 require_once
"Services/Object/classes/class.ilObject2.php";
32 function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)
85 $q =
"SELECT * FROM object_translation WHERE obj_id = ".
86 $ilDB->quote($this->
getId(),
'integer').
" ORDER BY lang_default DESC";
87 $r = $this->ilias->db->query($q);
91 $data[
"Fobject"] = array();
94 $data[
"Fobject"][$num]= array(
"title" =>
$row->title,
95 "desc" =>
$row->description,
96 "lang" =>
$row->lang_code
102 $data[
"default_language"] = 0;
112 $query =
"DELETE FROM object_translation WHERE obj_id= ".
113 $ilDB->quote($this->
getId(),
'integer');
124 $a_title =
"NO TITLE";
127 $query =
"INSERT INTO object_translation ".
128 "(obj_id,title,description,lang_code,lang_default) ".
130 "(".$ilDB->quote($this->
getId(),
'integer').
",".
131 $ilDB->quote($a_title,
'text').
",".
132 $ilDB->quote($a_desc,
'text').
",".
133 $ilDB->quote($a_lang,
'text').
",".
134 $ilDB->quote($a_lang_default,
'integer').
")";