|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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.
Definition at line 12 of file class.ilMultilingualism.php.
|
private |
Constructor.
| int | $a_obj_id | object id |
| string | $a_type | id type |
| ilObjectException |
Definition at line 32 of file class.ilMultilingualism.php.
References $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 146 of file class.ilMultilingualism.php.
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 285 of file class.ilMultilingualism.php.
References getLanguages(), and getType().
Here is the call graph for this function:| ilMultilingualism::delete | ( | ) |
Delete.
Definition at line 249 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 321 of file class.ilMultilingualism.php.
References addLanguage().
Here is the call graph for this function:| ilMultilingualism::getDefaultDescription | ( | ) |
Get default description.
Definition at line 193 of file class.ilMultilingualism.php.
| ilMultilingualism::getDefaultLanguage | ( | ) |
Definition at line 124 of file class.ilMultilingualism.php.
References $lng.
Referenced by removeLanguage().
Here is the caller graph for this function:| ilMultilingualism::getDefaultTitle | ( | ) |
Get default title.
Definition at line 164 of file class.ilMultilingualism.php.
|
static |
Get instance.
| integer | $a_obj_id | (repository) object id |
Definition at line 58 of file class.ilMultilingualism.php.
Referenced by ilMultilingualismGUI\__construct(), ilDidacticTemplateSetting\getTranslationObject(), and ilDidacticTemplateImport\parseSettings().
Here is the caller graph for this function:| ilMultilingualism::getLanguages | ( | ) |
Get languages.
Definition at line 103 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 83 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 233 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 223 of file class.ilMultilingualism.php.
References getDefaultLanguage().
Here is the call graph for this function:| ilMultilingualism::save | ( | ) |
Save.
Definition at line 261 of file class.ilMultilingualism.php.
References 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 208 of file class.ilMultilingualism.php.
| ilMultilingualism::setDefaultTitle | ( | $a_title | ) |
Set default title.
| string | $a_title | title |
Definition at line 179 of file class.ilMultilingualism.php.
| ilMultilingualism::setLanguages | ( | array | $a_val | ) |
Set languages.
| array | $a_val | array of language codes |
Definition at line 93 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 73 of file class.ilMultilingualism.php.
Referenced by __construct().
Here is the caller graph for this function:| ilMultilingualism::setType | ( | $type | ) |
| string | $type |
Definition at line 119 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 300 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 19 of file class.ilMultilingualism.php.
|
staticprotected |
Definition at line 23 of file class.ilMultilingualism.php.
|
protected |
Definition at line 21 of file class.ilMultilingualism.php.
Referenced by getLanguages().
|
protected |
Definition at line 17 of file class.ilMultilingualism.php.
Referenced by getDefaultLanguage().
|
protected |
Definition at line 20 of file class.ilMultilingualism.php.
Referenced by getObjId().
|
protected |
Definition at line 22 of file class.ilMultilingualism.php.