34require_once 
"./Services/Object/classes/class.ilObject.php";
 
   35require_once 
"./Services/Container/classes/class.ilContainer.php";
 
   45    public function __construct($a_id, $a_call_by_reference = 
true)
 
   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);
 
   94        $data[
"Fobject"] = array();
 
   96            $data[
"Fobject"][$num] = array(
"title" => $row->title,
 
   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= " .
 
  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';
 
An exception for terminatinating execution or to throw for unit testing.
__construct($a_id, $a_call_by_reference=true)
Constructor @access public.
getTranslations()
get all translations from this category
removeTranslations()
Remove all translations of container.
addTranslation($a_title, $a_desc, $a_lang, $a_lang_default)
Add translation.
deleteTranslation($a_lang)
Delete translation.
addAdditionalSubItemInformation(&$a_item_data)
Add additional information to sub item, e.g.
static addAdditionalSubItemInformation(array &$a_item)
Parse item data for list entries.
getId()
get object id @access public
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
redirection script todo: (a better solution should control the processing via a xml file)
foreach($_POST as $key=> $value) $res