3 declare(strict_types=1);
    27         bool $a_call_by_reference = 
true    36     public function delete(): 
bool    38         $message = get_class($this) . 
"::delete(): Can't delete root folder!";
    46         $q = 
"SELECT * FROM object_translation WHERE obj_id = " .
    47             $ilDB->quote($this->
getId(), 
'integer') . 
" ORDER BY lang_default DESC";
    52         $data[
"Fobject"] = [];
    54             $data[
"Fobject"][$num] = [
    55                 "title" => $row->title,
    56                 "desc" => $row->description,
    57                 "lang" => $row->lang_code
    63         $data[
"default_language"] = 0;
    73         $query = 
"DELETE FROM object_translation WHERE obj_id= " .
    74             $ilDB->quote($this->
getId(), 
'integer') . 
" AND lang_code = " .
    75             $ilDB->quote($a_lang, 
'text');
    76         $res = $ilDB->manipulate($query);
    84         $query = 
"DELETE FROM object_translation WHERE obj_id= " .
    85             $ilDB->quote($this->
getId(), 
'integer');
    86         $res = $ilDB->manipulate($query);
    90     public function addTranslation(
string $a_title, 
string $a_desc, 
string $a_lang, 
string $a_lang_default): void
    94         if ($a_title === 
'') {
    95             $a_title = 
"NO TITLE";
    98         $query = 
"INSERT INTO object_translation " .
    99              "(obj_id,title,description,lang_code,lang_default) " .
   101              "(" . $ilDB->quote($this->
getId(), 
'integer') . 
"," .
   102              $ilDB->quote($a_title, 
'text') . 
"," .
   103              $ilDB->quote($a_desc, 
'text') . 
"," .
   104              $ilDB->quote($a_lang, 
'text') . 
"," .
   105              $ilDB->quote($a_lang_default, 
'integer') . 
")";
   106         $ilDB->manipulate($query);
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
addTranslation(string $a_title, string $a_desc, string $a_lang, string $a_lang_default)
 
addAdditionalSubItemInformation(array &$object)
 
Class ilObjForumAdministration. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
deleteTranslation(string $a_lang)
 
static addAdditionalSubItemInformation(array &$item)
Parse item data for list entries. 
 
__construct(Container $dic, ilPlugin $plugin)
 
__construct(int $a_id, bool $a_call_by_reference=true)