ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class handles translation mode for an object. More...
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().
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.
Referenced by fromXML(), and read().
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().
ilMultilingualism::delete | ( | ) |
Delete.
Definition at line 266 of file class.ilMultilingualism.php.
ilMultilingualism::fromXML | ( | SimpleXMLElement | $root | ) |
xml import
SimpleXMLElement | $root |
Definition at line 338 of file class.ilMultilingualism.php.
References addLanguage().
ilMultilingualism::getDefaultDescription | ( | ) |
Get default description.
Definition at line 210 of file class.ilMultilingualism.php.
References $l.
ilMultilingualism::getDefaultLanguage | ( | ) |
Definition at line 141 of file class.ilMultilingualism.php.
References $lng.
Referenced by removeLanguage().
ilMultilingualism::getDefaultTitle | ( | ) |
Get default title.
Definition at line 181 of file class.ilMultilingualism.php.
References $l.
|
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().
ilMultilingualism::getLanguages | ( | ) |
Get languages.
Definition at line 120 of file class.ilMultilingualism.php.
References $languages.
Referenced by copy(), save(), and toXml().
ilMultilingualism::getObjId | ( | ) |
Get object id.
Definition at line 100 of file class.ilMultilingualism.php.
References $obj_id.
Referenced by __construct().
ilMultilingualism::getType | ( | ) |
Definition at line 128 of file class.ilMultilingualism.php.
References $type.
Referenced by copy().
ilMultilingualism::read | ( | ) |
Read.
Definition at line 250 of file class.ilMultilingualism.php.
References addLanguage(), array, and setLanguages().
Referenced by __construct().
ilMultilingualism::removeLanguage | ( | $a_lang | ) |
Remove language.
string | $a_lang | language code |
Definition at line 240 of file class.ilMultilingualism.php.
References getDefaultLanguage().
ilMultilingualism::save | ( | ) |
Save.
Definition at line 278 of file class.ilMultilingualism.php.
References $l, $t, and getLanguages().
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().
ilMultilingualism::setObjId | ( | $a_val | ) |
Set object id.
int | $a_val | object id |
Definition at line 90 of file class.ilMultilingualism.php.
Referenced by __construct().
ilMultilingualism::setType | ( | $type | ) |
string | $type |
Definition at line 136 of file class.ilMultilingualism.php.
References $type.
Referenced by __construct().
ilMultilingualism::toXml | ( | ilXmlWriter | $writer | ) |
Export.
ilXmlWriter | $writer |
Definition at line 317 of file class.ilMultilingualism.php.
References array, getLanguages(), ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
|
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.