41         string $a_parent_type,
    46         $ilDB = $DIC->database();
    66         $this->parent_type = $a_val;
    76         $this->parent_id = $a_val;
    86         $this->master_lang = $a_val;
    96         $this->languages = $a_val;
   106         if ($a_lang != 
"" && !in_array($a_lang, $this->languages)) {
   107             $this->languages[] = $a_lang;
   113         $this->activated = $a_val;
   123         $set = $this->db->query(
   124             "SELECT * FROM copg_multilang " .
   125             " WHERE parent_type = " . $this->db->quote($this->getParentType(), 
"text") .
   126             " AND parent_id = " . $this->db->quote($this->getParentId(), 
"integer")
   128         if ($rec = $this->db->fetchAssoc($set)) {
   136         $set = $this->db->query(
   137             "SELECT * FROM copg_multilang_lang " .
   138             " WHERE parent_type = " . $this->db->quote($this->getParentType(), 
"text") .
   139             " AND parent_id = " . $this->db->quote($this->getParentId(), 
"integer")
   141         while ($rec = $this->db->fetchAssoc($set)) {
   146     public function delete(): 
void   148         $this->db->manipulate(
   149             "DELETE FROM copg_multilang " .
   150             " WHERE parent_type = " . $this->db->quote($this->getParentType(), 
"text") .
   151             " AND parent_id = " . $this->db->quote($this->getParentId(), 
"integer")
   153         $this->db->manipulate(
   154             "DELETE FROM copg_multilang_lang " .
   155             " WHERE parent_type = " . $this->db->quote($this->getParentType(), 
"text") .
   156             " AND parent_id = " . $this->db->quote($this->getParentId(), 
"integer")
   164         $this->db->manipulate(
"INSERT INTO copg_multilang " .
   165             "(parent_type, parent_id, master_lang) VALUES (" .
   166             $this->db->quote($this->getParentType(), 
"text") . 
"," .
   167             $this->db->quote($this->getParentId(), 
"integer") . 
"," .
   168             $this->db->quote($this->getMasterLanguage(), 
"text") .
   172             $this->db->manipulate(
"INSERT INTO copg_multilang_lang " .
   173                 "(parent_type, parent_id, lang) VALUES (" .
   174                 $this->db->quote($this->getParentType(), 
"text") . 
"," .
   175                 $this->db->quote($this->getParentId(), 
"integer") . 
"," .
   176                 $this->db->quote(
$lang, 
"text") .
   190         string $a_target_parent_type,
   191         int $a_target_parent_id
   194             $target_ml = 
new ilPageMultiLang($a_target_parent_type, $a_target_parent_id);
 
setActivated(bool $a_val)
 
setMasterLanguage(string $a_val)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
copy(string $a_target_parent_type, int $a_target_parent_id)
Copy multilinguality settings. 
 
setParentType(string $a_val)
 
__construct(string $a_parent_type, int $a_parent_id)
Constructor. 
 
addLanguage(string $a_lang)
 
getEffectiveLang(string $a_lang)
Get effective language for given language. 
 
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists. 
 
setLanguages(array $a_val)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...