|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilOrgUnitTypeTranslation This class represents a translation for a given ilOrgUnit object and language. More...
Collaboration diagram for ilOrgUnitTypeTranslation: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().
Here is the call graph for this function:| ilOrgUnitTypeTranslation::create | ( | ) |
Insert all translated member into database.
Definition at line 176 of file class.ilOrgUnitTypeTranslation.php.
References insertMember(), and resetTrackChanges().
Here is the call graph for this function:| ilOrgUnitTypeTranslation::delete | ( | ) |
Delete object.
Definition at line 203 of file class.ilOrgUnitTypeTranslation.php.
References getOrguTypeId().
Here is the call graph for this function:
|
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.
Referenced by ilOrgUnitType\loadTranslation().
Here is the caller graph for this function:| ilOrgUnitTypeTranslation::getLang | ( | ) |
Definition at line 324 of file class.ilOrgUnitTypeTranslation.php.
References $lang.
Referenced by insertMember(), and updateMember().
Here is the caller graph for this function:| 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.
Referenced by update().
Here is the caller graph for this function:| 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().
Here is the caller graph for this function:
|
protected |
Protected.
Insert a (member,value) pair in database
| $member | |
| $value |
Definition at line 236 of file class.ilOrgUnitTypeTranslation.php.
References getLang(), and getOrguTypeId().
Referenced by create(), and update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Read object data from database.
| ilOrgUnitTypeException |
Definition at line 294 of file class.ilOrgUnitTypeTranslation.php.
Referenced by __construct().
Here is the caller graph for this function:
|
protected |
Reset tracked members.
Definition at line 283 of file class.ilOrgUnitTypeTranslation.php.
Referenced by create(), and update().
Here is the caller graph for this function:| 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 trackChange().
Here is the call graph for this function:| 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().
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
protected |
Update a (member,value) pair in database.
| $member | |
| $value |
Definition at line 253 of file class.ilOrgUnitTypeTranslation.php.
References getLang(), and getOrguTypeId().
Referenced by update().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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.