| 
    ILIAS
    release_8 Revision v8.24
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Collaboration diagram for ilOrgUnitTypeTranslation:Public Member Functions | |
| __construct (int $a_org_type_id=0, string $a_lang_code='') | |
| getMember (string $a_member) | |
| Get translated value for a member, returns null if no translation exists.  More... | |
| setMember (string $a_member, string $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 (string $lang) | |
| Getters & Setters.  More... | |
| getLang () | |
| getMembers () | |
| getOrguTypeId () | |
| setOrguTypeId (int $id) | |
Static Public Member Functions | |
| static | getInstance (int $a_orgu_type_id, string $a_lang_code) | 
| Get instance of an ilOrgUnitType object Returns object from cache or from database, returns null if no object was found.  More... | |
Data Fields | |
| const | TABLE_NAME = 'orgu_types_trans' | 
Protected Member Functions | |
| insertMember (string $member, string $value) | |
| Protected.  More... | |
| updateMember (string $member, string $value) | |
| Update a (member,value) pair in database.  More... | |
| trackChange (string $a_member, bool $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 | |
| int | $orgu_type_id | 
| string | $lang = '' | 
| array | $members = [] | 
| array | $changes = [] | 
| array | $members_new = [] | 
| ilDBInterface | $db | 
| ILIAS DI LoggingServices | $log | 
Static Protected Attributes | |
| static array | $instances = [] | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilOrgUnitTypeTranslation This class represents a translation for a given ilOrgUnit object and language.
Definition at line 24 of file class.ilOrgUnitTypeTranslation.php.
| ilOrgUnitTypeTranslation::__construct | ( | int | $a_org_type_id = 0,  | 
        
| string | $a_lang_code = ''  | 
        ||
| ) | 
Definition at line 37 of file class.ilOrgUnitTypeTranslation.php.
References $DIC, ILIAS\Repository\int(), and read().
 Here is the call graph for this function:| ilOrgUnitTypeTranslation::create | ( | ) | 
Insert all translated member into database.
Definition at line 154 of file class.ilOrgUnitTypeTranslation.php.
References insertMember(), and resetTrackChanges().
 Here is the call graph for this function:| ilOrgUnitTypeTranslation::delete | ( | ) | 
Delete object.
Definition at line 181 of file class.ilOrgUnitTypeTranslation.php.
References getOrguTypeId().
 Here is the call graph for this function:
      
  | 
  static | 
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 57 of file class.ilOrgUnitTypeTranslation.php.
References Vendor\Package\$e.
Referenced by ilOrgUnitType\loadTranslation().
 Here is the caller graph for this function:| ilOrgUnitTypeTranslation::getLang | ( | ) | 
Definition at line 289 of file class.ilOrgUnitTypeTranslation.php.
References $lang.
Referenced by insertMember(), and updateMember().
 Here is the caller graph for this function:| ilOrgUnitTypeTranslation::getMember | ( | string | $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 134 of file class.ilOrgUnitTypeTranslation.php.
Referenced by update().
 Here is the caller graph for this function:| ilOrgUnitTypeTranslation::getMembers | ( | ) | 
Definition at line 294 of file class.ilOrgUnitTypeTranslation.php.
References $members.
| ilOrgUnitTypeTranslation::getOrguTypeId | ( | ) | 
Definition at line 299 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
Definition at line 211 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 263 of file class.ilOrgUnitTypeTranslation.php.
Referenced by __construct().
 Here is the caller graph for this function:
      
  | 
  protected | 
Reset tracked members.
Definition at line 253 of file class.ilOrgUnitTypeTranslation.php.
Referenced by create(), and update().
 Here is the caller graph for this function:| ilOrgUnitTypeTranslation::setLang | ( | string | $lang | ) | 
Getters & Setters.
Definition at line 284 of file class.ilOrgUnitTypeTranslation.php.
References $lang.
| ilOrgUnitTypeTranslation::setMember | ( | string | $a_member, | 
| string | $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 144 of file class.ilOrgUnitTypeTranslation.php.
References trackChange().
 Here is the call graph for this function:| ilOrgUnitTypeTranslation::setOrguTypeId | ( | int | $id | ) | 
Definition at line 304 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 240 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 165 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.
Definition at line 224 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 30 of file class.ilOrgUnitTypeTranslation.php.
      
  | 
  protected | 
Definition at line 32 of file class.ilOrgUnitTypeTranslation.php.
      
  | 
  staticprotected | 
Definition at line 35 of file class.ilOrgUnitTypeTranslation.php.
      
  | 
  protected | 
Definition at line 28 of file class.ilOrgUnitTypeTranslation.php.
      
  | 
  protected | 
Definition at line 33 of file class.ilOrgUnitTypeTranslation.php.
      
  | 
  protected | 
Definition at line 29 of file class.ilOrgUnitTypeTranslation.php.
Referenced by getMembers().
      
  | 
  protected | 
Definition at line 31 of file class.ilOrgUnitTypeTranslation.php.
      
  | 
  protected | 
Definition at line 27 of file class.ilOrgUnitTypeTranslation.php.
Referenced by getOrguTypeId().
| const ilOrgUnitTypeTranslation::TABLE_NAME = 'orgu_types_trans' | 
Definition at line 26 of file class.ilOrgUnitTypeTranslation.php.