|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class handles translation mode for an object. More...
Collaboration diagram for ilMultilingualism:Public Member Functions | |
| setObjId ($a_val) | |
| Set object id. More... | |
| getObjId () | |
| Get object id. More... | |
| setLanguages (array $a_val) | |
| Set languages. More... | |
| getLanguages () | |
| Get languages. More... | |
| getType () | |
| setType ($type) | |
| getDefaultLanguage () | |
| addLanguage ($a_lang, $a_title, $a_description, $a_default, $a_force=false) | |
| Add language. More... | |
| getDefaultTitle () | |
| Get default title. More... | |
| setDefaultTitle ($a_title) | |
| Set default title. More... | |
| getDefaultDescription () | |
| Get default description. More... | |
| setDefaultDescription ($a_description) | |
| Set default description. More... | |
| removeLanguage ($a_lang) | |
| Remove language. More... | |
| read () | |
| Read. More... | |
| delete () | |
| Delete. More... | |
| save () | |
| Save. More... | |
| copy ($a_obj_id) | |
| Copy multilinguality settings. More... | |
| toXml (ilXmlWriter $writer) | |
| Export. More... | |
| fromXML (SimpleXMLElement $root) | |
| xml import More... | |
Static Public Member Functions | |
| static | getInstance ($a_obj_id, $a_type) |
| Get instance. More... | |
Protected Attributes | |
| $lng | |
| $db | |
| $obj_id | |
| $languages = array() | |
| $type = "" | |
Static Protected Attributes | |
| static | $instances = array() |
Private Member Functions | |
| __construct ($a_obj_id, $a_type) | |
| Constructor. More... | |
Class handles translation mode for an object.
Objects may not use any translations at all
Currently supported by container objects and ILIAS learning modules.
Content master lang vs. default language
Definition at line 29 of file class.ilMultilingualism.php.
|
private |
Constructor.
| int | $a_obj_id | object id |
| string | $a_type | id type |
| ilObjectException |
Definition at line 49 of file class.ilMultilingualism.php.
References $a_type, $DIC, $ilDB, getObjId(), read(), setObjId(), and setType().
Here is the call graph for this function:| ilMultilingualism::addLanguage | ( | $a_lang, | |
| $a_title, | |||
| $a_description, | |||
| $a_default, | |||
$a_force = false |
|||
| ) |
Add language.
| string | $a_lang | language |
| string | $a_title | title |
| string | $a_description | description |
| bool | $a_default | default language? |
Definition at line 163 of file class.ilMultilingualism.php.
References $l.
Referenced by fromXML(), and read().
Here is the caller graph for this function:| ilMultilingualism::copy | ( | $a_obj_id | ) |
Copy multilinguality settings.
| string | $a_type | parent object type |
| int | $a_obj_id | parent object id |
Definition at line 302 of file class.ilMultilingualism.php.
References getLanguages(), and getType().
Here is the call graph for this function:| ilMultilingualism::delete | ( | ) |
Delete.
Definition at line 266 of file class.ilMultilingualism.php.
References getType().
Here is the call graph for this function:| ilMultilingualism::fromXML | ( | SimpleXMLElement | $root | ) |
xml import
| SimpleXMLElement | $root |
Definition at line 338 of file class.ilMultilingualism.php.
References addLanguage().
Here is the call graph for this function:| ilMultilingualism::getDefaultDescription | ( | ) |
| ilMultilingualism::getDefaultLanguage | ( | ) |
Definition at line 141 of file class.ilMultilingualism.php.
References $lng.
Referenced by removeLanguage().
Here is the caller graph for this function:| ilMultilingualism::getDefaultTitle | ( | ) |
|
static |
Get instance.
| integer | $a_obj_id | (repository) object id |
Definition at line 75 of file class.ilMultilingualism.php.
References $a_type.
Referenced by ilMultilingualismGUI\__construct(), ilDidacticTemplateSetting\getTranslationObject(), and ilDidacticTemplateImport\parseSettings().
Here is the caller graph for this function:| ilMultilingualism::getLanguages | ( | ) |
Get languages.
Definition at line 120 of file class.ilMultilingualism.php.
References $languages.
Referenced by copy(), save(), and toXml().
Here is the caller graph for this function:| ilMultilingualism::getObjId | ( | ) |
Get object id.
Definition at line 100 of file class.ilMultilingualism.php.
References $obj_id.
Referenced by __construct().
Here is the caller graph for this function:| ilMultilingualism::getType | ( | ) |
| ilMultilingualism::read | ( | ) |
Read.
Definition at line 250 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 | ( | $a_lang | ) |
Remove language.
| string | $a_lang | language code |
Definition at line 240 of file class.ilMultilingualism.php.
References getDefaultLanguage().
Here is the call graph for this function:| ilMultilingualism::save | ( | ) |
Save.
Definition at line 278 of file class.ilMultilingualism.php.
References $l, $t, getLanguages(), and getType().
Here is the call graph for this function:| ilMultilingualism::setDefaultDescription | ( | $a_description | ) |
Set default description.
| string | $a_description | description |
Definition at line 225 of file class.ilMultilingualism.php.
References $l.
| ilMultilingualism::setDefaultTitle | ( | $a_title | ) |
Set default title.
| string | $a_title | title |
Definition at line 196 of file class.ilMultilingualism.php.
References $l.
| ilMultilingualism::setLanguages | ( | array | $a_val | ) |
Set languages.
| array | $a_val | array of language codes |
Definition at line 110 of file class.ilMultilingualism.php.
Referenced by read().
Here is the caller graph for this function:| ilMultilingualism::setObjId | ( | $a_val | ) |
Set object id.
| int | $a_val | object id |
Definition at line 90 of file class.ilMultilingualism.php.
Referenced by __construct().
Here is the caller graph for this function:| ilMultilingualism::setType | ( | $type | ) |
| string | $type |
Definition at line 136 of file class.ilMultilingualism.php.
References $type.
Referenced by __construct().
Here is the caller graph for this function:| ilMultilingualism::toXml | ( | ilXmlWriter | $writer | ) |
Export.
| ilXmlWriter | $writer |
Definition at line 317 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 36 of file class.ilMultilingualism.php.
|
staticprotected |
Definition at line 40 of file class.ilMultilingualism.php.
|
protected |
Definition at line 38 of file class.ilMultilingualism.php.
Referenced by getLanguages().
|
protected |
Definition at line 34 of file class.ilMultilingualism.php.
Referenced by getDefaultLanguage().
|
protected |
Definition at line 37 of file class.ilMultilingualism.php.
Referenced by getObjId().
|
protected |
Definition at line 39 of file class.ilMultilingualism.php.