ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilOrgUnitTypeTranslation This class represents a translation for a given ilOrgUnit object and language. More...
Public Member Functions | |
__construct ($a_org_type_id=0, $a_lang_code='') | |
getMember ($a_member) | |
Get translated value for a member, returns null if no translation exists. More... | |
setMember ($a_member, $a_value) | |
Set translation value for a member, either update or add value. More... | |
create () | |
Insert all translated member into database. More... | |
update () | |
Update translations in database. More... | |
delete () | |
Delete object. More... | |
setLang ($lang) | |
Getters & Setters. More... | |
getLang () | |
getMembers () | |
getOrguTypeId () | |
setOrguTypeId ($id) | |
Static Public Member Functions | |
static | getInstance ($a_orgu_type_id, $a_lang_code) |
Public. More... | |
Data Fields | |
const | TABLE_NAME = 'orgu_types_trans' |
Protected Member Functions | |
insertMember ($member, $value) | |
Protected. More... | |
updateMember ($member, $value) | |
Update a (member,value) pair in database. More... | |
trackChange ($a_member, $is_new) | |
Track a member that was either updated or added. More... | |
resetTrackChanges () | |
Reset tracked members. More... | |
read () | |
Read object data from database. More... | |
Protected Attributes | |
$orgu_type_id | |
$lang = '' | |
$members = array() | |
$changes = array() | |
$members_new = array() | |
$db | |
$log | |
Static Protected Attributes | |
static | $instances = array() |
Class ilOrgUnitTypeTranslation This class represents a translation for a given ilOrgUnit object and language.
Definition at line 9 of file class.ilOrgUnitTypeTranslation.php.
ilOrgUnitTypeTranslation::__construct | ( | $a_org_type_id = 0 , |
|
$a_lang_code = '' |
|||
) |
Definition at line 54 of file class.ilOrgUnitTypeTranslation.php.
References $DIC, $ilDB, $ilLog, and read().
ilOrgUnitTypeTranslation::create | ( | ) |
Insert all translated member into database.
Definition at line 176 of file class.ilOrgUnitTypeTranslation.php.
References insertMember(), and resetTrackChanges().
ilOrgUnitTypeTranslation::delete | ( | ) |
Delete object.
Definition at line 203 of file class.ilOrgUnitTypeTranslation.php.
References $DIC, $ilDB, getLang(), and getOrguTypeId().
|
static |
Public.
Get instance of an ilOrgUnitType object Returns object from cache or from database, returns null if no object was found
int | $a_orgu_type_id | ID of an ilOrgUnitType object |
string | $a_lang_code | Language code |
Definition at line 82 of file class.ilOrgUnitTypeTranslation.php.
References $DIC, $ilDB, and array.
Referenced by ilOrgUnitType\loadTranslation().
ilOrgUnitTypeTranslation::getLang | ( | ) |
Definition at line 324 of file class.ilOrgUnitTypeTranslation.php.
References $lang.
Referenced by delete(), insertMember(), and updateMember().
ilOrgUnitTypeTranslation::getMember | ( | $a_member | ) |
Get translated value for a member, returns null if no translation exists.
string | $a_member | Name of the variable, e.g. title,description |
Definition at line 155 of file class.ilOrgUnitTypeTranslation.php.
References string.
Referenced by update().
ilOrgUnitTypeTranslation::getMembers | ( | ) |
Definition at line 333 of file class.ilOrgUnitTypeTranslation.php.
References $members.
ilOrgUnitTypeTranslation::getOrguTypeId | ( | ) |
Definition at line 342 of file class.ilOrgUnitTypeTranslation.php.
References $orgu_type_id.
Referenced by delete(), insertMember(), and updateMember().
|
protected |
Protected.
Insert a (member,value) pair in database
$member | |
$value |
Definition at line 236 of file class.ilOrgUnitTypeTranslation.php.
References array, getLang(), and getOrguTypeId().
Referenced by create(), and update().
|
protected |
Read object data from database.
ilOrgUnitTypeException |
Definition at line 294 of file class.ilOrgUnitTypeTranslation.php.
References string.
Referenced by __construct().
|
protected |
Reset tracked members.
Definition at line 283 of file class.ilOrgUnitTypeTranslation.php.
References array.
Referenced by create(), and update().
ilOrgUnitTypeTranslation::setLang | ( | $lang | ) |
Getters & Setters.
string | $lang |
Definition at line 316 of file class.ilOrgUnitTypeTranslation.php.
References $lang.
ilOrgUnitTypeTranslation::setMember | ( | $a_member, | |
$a_value | |||
) |
Set translation value for a member, either update or add value.
string | $a_member | Name of the variable, e.g. title,description |
string | $a_value | Value of the translation |
Definition at line 166 of file class.ilOrgUnitTypeTranslation.php.
References string, and trackChange().
ilOrgUnitTypeTranslation::setOrguTypeId | ( | $id | ) |
int | $id |
Definition at line 350 of file class.ilOrgUnitTypeTranslation.php.
References $id.
|
protected |
Track a member that was either updated or added.
string | $a_member | Name of a variable, e.g. title,description |
bool | $is_new | True if the member did not exist before |
Definition at line 270 of file class.ilOrgUnitTypeTranslation.php.
Referenced by setMember().
ilOrgUnitTypeTranslation::update | ( | ) |
Update translations in database.
Newly added members are inserted.
Definition at line 187 of file class.ilOrgUnitTypeTranslation.php.
References getMember(), insertMember(), resetTrackChanges(), and updateMember().
|
protected |
Update a (member,value) pair in database.
$member | |
$value |
Definition at line 253 of file class.ilOrgUnitTypeTranslation.php.
References array, getLang(), and getOrguTypeId().
Referenced by update().
|
protected |
Definition at line 31 of file class.ilOrgUnitTypeTranslation.php.
|
protected |
Definition at line 41 of file class.ilOrgUnitTypeTranslation.php.
|
staticprotected |
Definition at line 51 of file class.ilOrgUnitTypeTranslation.php.
|
protected |
Definition at line 21 of file class.ilOrgUnitTypeTranslation.php.
|
protected |
Definition at line 46 of file class.ilOrgUnitTypeTranslation.php.
|
protected |
Definition at line 26 of file class.ilOrgUnitTypeTranslation.php.
Referenced by getMembers().
|
protected |
Definition at line 36 of file class.ilOrgUnitTypeTranslation.php.
|
protected |
Definition at line 16 of file class.ilOrgUnitTypeTranslation.php.
Referenced by getOrguTypeId().
const ilOrgUnitTypeTranslation::TABLE_NAME = 'orgu_types_trans' |
Definition at line 11 of file class.ilOrgUnitTypeTranslation.php.