34 require_once
"./Services/Object/classes/class.ilObject.php";
35 require_once
"./Services/Container/classes/class.ilContainer.php";
45 public function __construct($a_id,$a_call_by_reference =
true)
48 parent::__construct($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 $q =
"SELECT * FROM object_translation WHERE obj_id = ".
89 $ilDB->quote($this->
getId(),
'integer').
" ORDER BY lang_default DESC";
90 $r = $this->
ilias->db->query($q);
98 "desc" =>
$row->description,
99 "lang" =>
$row->lang_code
105 $data[
"default_language"] = 0;
115 $query =
"DELETE FROM object_translation WHERE obj_id= ".
116 $ilDB->quote($this->
getId(),
'integer').
" AND lang_code = ".
117 $ilDB->quote($a_lang,
'text');
126 $query =
"DELETE FROM object_translation WHERE obj_id= ".
127 $ilDB->quote($this->
getId(),
'integer');
138 $a_title =
"NO TITLE";
141 $query =
"INSERT INTO object_translation ".
142 "(obj_id,title,description,lang_code,lang_default) ".
144 "(".$ilDB->quote($this->
getId(),
'integer').
",".
145 $ilDB->quote($a_title,
'text').
",".
146 $ilDB->quote($a_desc,
'text').
",".
147 $ilDB->quote($a_lang,
'text').
",".
148 $ilDB->quote($a_lang_default,
'integer').
")";
155 include_once
'./Services/Object/classes/class.ilObjectActivation.php';
addTranslation($a_title, $a_desc, $a_lang, $a_lang_default)
deleteTranslation($a_lang)
__construct($a_id, $a_call_by_reference=true)
Constructor public.
static addAdditionalSubItemInformation(array &$a_item)
Parse item data for list entries.
getId()
get object id public
redirection script todo: (a better solution should control the processing via a xml file) ...
getTranslations()
get all translations from this category
Create styles array
The data for the language used.
addAdditionalSubItemInformation(&$a_item_data)