ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Translation information on lm object. More...
Public Member Functions | |
__construct ($a_id=0, $a_lang="") | |
Constructor. More... | |
setId ($a_val) | |
Set Id. More... | |
getId () | |
Get Id. More... | |
setLang ($a_val) | |
Set lang. More... | |
getLang () | |
Get lang. More... | |
setTitle ($a_val) | |
Set title. More... | |
getTitle () | |
Get title. More... | |
getCreateDate () | |
Get create date. More... | |
getLastUpdate () | |
Get update date. More... | |
read () | |
Read. More... | |
save () | |
Save (inserts if not existing, otherwise updates) More... | |
Static Public Member Functions | |
static | exists ($a_id, $a_lang) |
Check for existence. More... | |
static | copy ($a_source_id, $a_target_id) |
Copy all translations of an object. More... | |
Protected Attributes | |
$lang | |
$title | |
$create_date | |
$last_update | |
Translation information on lm object.
Definition at line 12 of file class.ilLMObjTranslation.php.
ilLMObjTranslation::__construct | ( | $a_id = 0 , |
|
$a_lang = "" |
|||
) |
Constructor.
int | $a_id | object id (page, chapter) |
string | $a_lang | language code |
Definition at line 25 of file class.ilLMObjTranslation.php.
References read(), setId(), and setLang().
|
static |
Copy all translations of an object.
int | $a_source_id | source id |
int | $a_target_id | target |
Definition at line 189 of file class.ilLMObjTranslation.php.
References $ilDB.
Referenced by ilStructureObject\copy(), and ilLMPageObject\copy().
|
static |
Check for existence.
int | $a_id | object id (page, chapter) |
string | $a_lang | language code |
Definition at line 168 of file class.ilLMObjTranslation.php.
References $ilDB.
ilLMObjTranslation::getCreateDate | ( | ) |
Get create date.
Definition at line 100 of file class.ilLMObjTranslation.php.
References $create_date.
ilLMObjTranslation::getId | ( | ) |
Get Id.
Definition at line 50 of file class.ilLMObjTranslation.php.
Referenced by save().
ilLMObjTranslation::getLang | ( | ) |
Get lang.
Definition at line 70 of file class.ilLMObjTranslation.php.
References $lang.
Referenced by save().
ilLMObjTranslation::getLastUpdate | ( | ) |
Get update date.
Definition at line 110 of file class.ilLMObjTranslation.php.
References $last_update.
ilLMObjTranslation::getTitle | ( | ) |
Get title.
Definition at line 90 of file class.ilLMObjTranslation.php.
References $title.
ilLMObjTranslation::read | ( | ) |
Read.
Definition at line 118 of file class.ilLMObjTranslation.php.
References $ilDB, and setTitle().
Referenced by __construct().
ilLMObjTranslation::save | ( | ) |
Save (inserts if not existing, otherwise updates)
Definition at line 135 of file class.ilLMObjTranslation.php.
References $ilDB, getId(), and getLang().
ilLMObjTranslation::setId | ( | $a_val | ) |
Set Id.
int | $a_val | id |
Definition at line 40 of file class.ilLMObjTranslation.php.
Referenced by __construct().
ilLMObjTranslation::setLang | ( | $a_val | ) |
Set lang.
string | $a_val | language |
Definition at line 60 of file class.ilLMObjTranslation.php.
Referenced by __construct().
ilLMObjTranslation::setTitle | ( | $a_val | ) |
Set title.
string | $a_val | title |
Definition at line 80 of file class.ilLMObjTranslation.php.
Referenced by read().
|
protected |
Definition at line 16 of file class.ilLMObjTranslation.php.
Referenced by getCreateDate().
|
protected |
Definition at line 14 of file class.ilLMObjTranslation.php.
Referenced by getLang().
|
protected |
Definition at line 17 of file class.ilLMObjTranslation.php.
Referenced by getLastUpdate().
|
protected |
Definition at line 15 of file class.ilLMObjTranslation.php.
Referenced by getTitle().