| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Collaboration diagram for ilMultilingualism:Public Member Functions | |
| setObjId (int $a_val) | |
| getObjId () | |
| setLanguages (array $a_val) | |
| getLanguages () | |
| getType () | |
| setType (string $type) | |
| getDefaultLanguage () | |
| addLanguage (string $a_lang, string $a_title, string $a_description, bool $a_default, bool $a_force=false) | |
| Add language.  More... | |
| getDefaultTitle () | |
| Get default title.  More... | |
| setDefaultTitle (string $a_title) | |
| Set title for default language.  More... | |
| getDefaultDescription () | |
| setDefaultDescription (string $a_description) | |
| Set default description.  More... | |
| removeLanguage (string $a_lang) | |
| read () | |
| delete () | |
| save () | |
| copy (int $a_obj_id) | |
| Copy multilinguality settings.  More... | |
| toXml (ilXmlWriter $writer) | |
| Export to xml.  More... | |
| fromXML (SimpleXMLElement $root) | |
| xml import  More... | |
Static Public Member Functions | |
| static | getInstance (int $a_obj_id, string $a_type) | 
Protected Attributes | |
| ilLanguage | $lng | 
| ilDBInterface | $db | 
| int | $obj_id | 
| array | $languages = [] | 
| string | $type = "" | 
Static Protected Attributes | |
| static array | $instances = [] | 
Private Member Functions | |
| __construct (int $a_obj_id, string $a_type) | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class handles translation mode for an object.
Definition at line 24 of file class.ilMultilingualism.php.
      
  | 
  private | 
| ilObjectException | 
Definition at line 38 of file class.ilMultilingualism.php.
References $DIC, $ilDB, getObjId(), ILIAS\Repository\lng(), read(), setObjId(), and setType().
 Here is the call graph for this function:| ilMultilingualism::addLanguage | ( | string | $a_lang, | 
| string | $a_title, | ||
| string | $a_description, | ||
| bool | $a_default, | ||
| bool | $a_force = false  | 
        ||
| ) | 
Add language.
| string | $a_lang | language | 
| string | $a_title | title | 
| string | $a_description | description | 
| bool | $a_default | default language? | 
| bool | $a_force | overwrite existing | 
Definition at line 131 of file class.ilMultilingualism.php.
Referenced by fromXML(), and read().
 Here is the caller graph for this function:| ilMultilingualism::copy | ( | int | $a_obj_id | ) | 
Copy multilinguality settings.
| ilObjectException | 
Definition at line 263 of file class.ilMultilingualism.php.
References getLanguages(), and getType().
 Here is the call graph for this function:| ilMultilingualism::delete | ( | ) | 
Definition at line 233 of file class.ilMultilingualism.php.
| ilMultilingualism::fromXML | ( | SimpleXMLElement | $root | ) | 
xml import
| SimpleXMLElement | $root | 
Definition at line 296 of file class.ilMultilingualism.php.
References addLanguage().
 Here is the call graph for this function:| ilMultilingualism::getDefaultDescription | ( | ) | 
Definition at line 182 of file class.ilMultilingualism.php.
| ilMultilingualism::getDefaultLanguage | ( | ) | 
Definition at line 108 of file class.ilMultilingualism.php.
References $lng, and ilLanguage\getDefaultLanguage().
Referenced by removeLanguage().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilMultilingualism::getDefaultTitle | ( | ) | 
Get default title.
Definition at line 157 of file class.ilMultilingualism.php.
      
  | 
  static | 
| int | $a_obj_id | (repository) object id | 
Definition at line 62 of file class.ilMultilingualism.php.
Referenced by ilMultilingualismGUI\__construct(), ilDidacticTemplateSetting\getTranslationObject(), and ilDidacticTemplateImport\parseSettings().
 Here is the caller graph for this function:| ilMultilingualism::getLanguages | ( | ) | 
Definition at line 93 of file class.ilMultilingualism.php.
References $languages.
Referenced by copy(), save(), and toXml().
 Here is the caller graph for this function:| ilMultilingualism::getObjId | ( | ) | 
Definition at line 76 of file class.ilMultilingualism.php.
References $obj_id.
Referenced by __construct().
 Here is the caller graph for this function:| ilMultilingualism::getType | ( | ) | 
Definition at line 98 of file class.ilMultilingualism.php.
References $type.
Referenced by copy().
 Here is the caller graph for this function:| ilMultilingualism::read | ( | ) | 
Definition at line 215 of file class.ilMultilingualism.php.
References addLanguage(), and setLanguages().
Referenced by __construct().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilMultilingualism::removeLanguage | ( | string | $a_lang | ) | 
| string | $a_lang | language code | 
Definition at line 208 of file class.ilMultilingualism.php.
References getDefaultLanguage().
 Here is the call graph for this function:| ilMultilingualism::save | ( | ) | 
Definition at line 242 of file class.ilMultilingualism.php.
References getLanguages().
 Here is the call graph for this function:| ilMultilingualism::setDefaultDescription | ( | string | $a_description | ) | 
Set default description.
Definition at line 195 of file class.ilMultilingualism.php.
| ilMultilingualism::setDefaultTitle | ( | string | $a_title | ) | 
Set title for default language.
Definition at line 170 of file class.ilMultilingualism.php.
| ilMultilingualism::setLanguages | ( | array | $a_val | ) | 
| array<string,array{lang_code | string, lang_default: bool, title: string, description: string}> $a_val | 
Definition at line 85 of file class.ilMultilingualism.php.
Referenced by read().
 Here is the caller graph for this function:| ilMultilingualism::setObjId | ( | int | $a_val | ) | 
Definition at line 71 of file class.ilMultilingualism.php.
Referenced by __construct().
 Here is the caller graph for this function:| ilMultilingualism::setType | ( | string | $type | ) | 
Definition at line 103 of file class.ilMultilingualism.php.
References $type.
Referenced by __construct().
 Here is the caller graph for this function:| ilMultilingualism::toXml | ( | ilXmlWriter | $writer | ) | 
Export to xml.
Definition at line 276 of file class.ilMultilingualism.php.
References getLanguages(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 27 of file class.ilMultilingualism.php.
      
  | 
  staticprotected | 
Definition at line 33 of file class.ilMultilingualism.php.
      
  | 
  protected | 
Definition at line 30 of file class.ilMultilingualism.php.
Referenced by getLanguages().
      
  | 
  protected | 
Definition at line 26 of file class.ilMultilingualism.php.
Referenced by getDefaultLanguage().
      
  | 
  protected | 
Definition at line 28 of file class.ilMultilingualism.php.
Referenced by getObjId().
      
  | 
  protected | 
Definition at line 31 of file class.ilMultilingualism.php.