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);
59 public function delete()
63 $message = get_class($this) .
"::delete(): Can't delete root folder!";
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);
97 "desc" =>
$row->description,
98 "lang" =>
$row->lang_code
104 $data[
"default_language"] = 0;
114 $query =
"DELETE FROM object_translation WHERE obj_id= " .
115 $ilDB->quote($this->
getId(),
'integer') .
" AND lang_code = " .
116 $ilDB->quote($a_lang,
'text');
125 $query =
"DELETE FROM object_translation WHERE obj_id= " .
126 $ilDB->quote($this->
getId(),
'integer');
135 if (empty($a_title)) {
136 $a_title =
"NO TITLE";
139 $query =
"INSERT INTO object_translation " .
140 "(obj_id,title,description,lang_code,lang_default) " .
142 "(" . $ilDB->quote($this->
getId(),
'integer') .
"," .
143 $ilDB->quote($a_title,
'text') .
"," .
144 $ilDB->quote($a_desc,
'text') .
"," .
145 $ilDB->quote($a_lang,
'text') .
"," .
146 $ilDB->quote($a_lang_default,
'integer') .
")";
153 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.
catch(Exception $e) $message
foreach($_POST as $key=> $value) $res
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)