ILIAS
Release_5_0_x_branch Revision 61816
|
Multi-language properties. More...
Public Member Functions | |
__construct ($a_parent_type, $a_parent_id) | |
Constructor. | |
setParentType ($a_val) | |
Set parent type. | |
getParentType () | |
Get parent type. | |
setParentId ($a_val) | |
Set parent id. | |
getParentId () | |
Get parent id. | |
setMasterLanguage ($a_val) | |
Set master language. | |
getMasterLanguage () | |
Get master language. | |
setLanguages (array $a_val) | |
Set languages. | |
getLanguages () | |
Get languages. | |
addLanguage ($a_lang) | |
Add language. | |
getActivated () | |
Get activated. | |
read () | |
Read. | |
delete () | |
Delete. | |
save () | |
Save. | |
copy ($a_target_parent_type, $a_target_parent_id) | |
Copy multilinguality settings. | |
getEffectiveLang ($a_lang) | |
Get effective language for given language. |
Protected Member Functions | |
setActivated ($a_val) | |
Set activated. |
Protected Attributes | |
$db | |
$parent_type | |
$parent_id | |
$master_lang | |
$languages = array() | |
$activated = false |
ilPageMultiLang::__construct | ( | $a_parent_type, | |
$a_parent_id | |||
) |
Constructor.
string | $a_parent_type | parent object type |
int | $a_parent_id | parent object id |
ilCOPageException |
Definition at line 28 of file class.ilPageMultiLang.php.
References $ilDB, getParentId(), getParentType(), read(), setParentId(), and setParentType().
ilPageMultiLang::addLanguage | ( | $a_lang | ) |
Add language.
string | $a_lang | language |
Definition at line 137 of file class.ilPageMultiLang.php.
Referenced by read().
ilPageMultiLang::copy | ( | $a_target_parent_type, | |
$a_target_parent_id | |||
) |
Copy multilinguality settings.
string | $a_target_parent_type | parent object type |
int | $a_target_parent_id | parent object id |
Definition at line 243 of file class.ilPageMultiLang.php.
References getActivated(), getLanguages(), and getMasterLanguage().
ilPageMultiLang::delete | ( | ) |
Delete.
Definition at line 199 of file class.ilPageMultiLang.php.
ilPageMultiLang::getActivated | ( | ) |
Get activated.
Definition at line 161 of file class.ilPageMultiLang.php.
References $activated.
Referenced by copy(), and getEffectiveLang().
ilPageMultiLang::getEffectiveLang | ( | $a_lang | ) |
Get effective language for given language.
This checks if
string | $a_lang | language |
Definition at line 267 of file class.ilPageMultiLang.php.
References ilPageObject\_exists(), getActivated(), getLanguages(), getParentId(), and getParentType().
ilPageMultiLang::getLanguages | ( | ) |
Get languages.
Definition at line 127 of file class.ilPageMultiLang.php.
References $languages.
Referenced by copy(), getEffectiveLang(), and save().
ilPageMultiLang::getMasterLanguage | ( | ) |
Get master language.
Definition at line 107 of file class.ilPageMultiLang.php.
References $master_lang.
Referenced by copy().
ilPageMultiLang::getParentId | ( | ) |
Get parent id.
Definition at line 87 of file class.ilPageMultiLang.php.
References $parent_id.
Referenced by __construct(), and getEffectiveLang().
ilPageMultiLang::getParentType | ( | ) |
Get parent type.
Definition at line 67 of file class.ilPageMultiLang.php.
References $parent_type.
Referenced by __construct(), and getEffectiveLang().
ilPageMultiLang::read | ( | ) |
Read.
Definition at line 169 of file class.ilPageMultiLang.php.
References addLanguage(), setActivated(), setLanguages(), and setMasterLanguage().
Referenced by __construct().
ilPageMultiLang::save | ( | ) |
Save.
Definition at line 214 of file class.ilPageMultiLang.php.
References $lang, and getLanguages().
|
protected |
Set activated.
bool | $a_val | activated? |
Definition at line 151 of file class.ilPageMultiLang.php.
Referenced by read().
ilPageMultiLang::setLanguages | ( | array | $a_val | ) |
Set languages.
array | $a_val | array of language codes |
Definition at line 117 of file class.ilPageMultiLang.php.
Referenced by read().
ilPageMultiLang::setMasterLanguage | ( | $a_val | ) |
Set master language.
string | $a_val | master language |
Definition at line 97 of file class.ilPageMultiLang.php.
Referenced by read().
ilPageMultiLang::setParentId | ( | $a_val | ) |
Set parent id.
int | $a_val | parent id |
Definition at line 77 of file class.ilPageMultiLang.php.
Referenced by __construct().
ilPageMultiLang::setParentType | ( | $a_val | ) |
Set parent type.
string | $a_val | parent type |
Definition at line 57 of file class.ilPageMultiLang.php.
Referenced by __construct().
|
protected |
Definition at line 19 of file class.ilPageMultiLang.php.
Referenced by getActivated().
|
protected |
Definition at line 14 of file class.ilPageMultiLang.php.
|
protected |
Definition at line 18 of file class.ilPageMultiLang.php.
Referenced by getLanguages().
|
protected |
Definition at line 17 of file class.ilPageMultiLang.php.
Referenced by getMasterLanguage().
|
protected |
Definition at line 16 of file class.ilPageMultiLang.php.
Referenced by getParentId().
|
protected |
Definition at line 15 of file class.ilPageMultiLang.php.
Referenced by getParentType().