5 require_once
"Services/Object/classes/class.ilObject2.php";
32 $q =
"SELECT * FROM object_translation WHERE obj_id = ".
33 $ilDB->quote($this->
getId(),
'integer').
" ORDER BY lang_default DESC";
34 $r = $ilDB->query($q);
42 "desc" =>
$row->description,
43 "lang" =>
$row->lang_code
49 $data[
"default_language"] = 0;
59 $query =
"DELETE FROM object_translation WHERE obj_id= ".
60 $ilDB->quote($this->
getId(),
'integer');
71 $a_title =
"NO TITLE";
74 $query =
"INSERT INTO object_translation ".
75 "(obj_id,title,description,lang_code,lang_default) ".
77 "(".$ilDB->quote($this->
getId(),
'integer').
",".
78 $ilDB->quote($a_title,
'text').
",".
79 $ilDB->quote($a_desc,
'text').
",".
80 $ilDB->quote($a_lang,
'text').
",".
81 $ilDB->quote($a_lang_default,
'integer').
")";
addTranslation($a_title, $a_desc, $a_lang, $a_lang_default)
Class ilObjWorkspaceRootFolder.
Create styles array
The data for the language used.
getTranslations()
get all translations from this category
Class ilObject2 This is an intermediate progress of ilObject class.