| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
Class ilStudyProgrammeType. More...
 Collaboration diagram for ilStudyProgrammeType:Public Member Functions | |
| __construct (int $id, ilStudyProgrammeTypeRepository $type_repo, ilLanguage $lng, ilObjUser $user, ilComponentFactory $component_factory) | |
| getTitle (string $a_lang_code='') | |
| Get the title of an StudyProgramme type.  More... | |
| setTitle (string $title, string $lang_code='') | |
| Set title of StudyProgramme type.  More... | |
| getDescription (string $lang_code='') | |
| Get the description of an StudyProgramme type.  More... | |
| setDescription (string $description, string $lang_code='') | |
| Set description of StudyProgramme type.  More... | |
| updateAssignedStudyProgrammesIcons () | |
| Update the Icons of assigned objects.  More... | |
| setTranslations (array $translations) | |
| Getters & Setters.  More... | |
| getTranslations () | |
| setOwner (int $owner) | |
| getOwner () | |
| setLastUpdate (DateTime $last_update) | |
| getLastUpdate () | |
| getId () | |
| withIconIdentifier (?string $identifier) | |
| getIconIdentifier () | |
| setDefaultLang (string $default_lang) | |
| getDefaultLang () | |
| setCreateDate (DateTime $create_date) | |
| getCreateDate () | |
| getRepository () | |
| changedTranslations () | |
Data Fields | |
| const | DATE_TIME_FORMAT = 'Y-m-d H:i:s' | 
| const | DATE_FORMAT = 'Y-m-d' | 
Protected Member Functions | |
| getTranslation (string $member, string $lang_code) | |
| Helper method to return a translation for a given member and language.  More... | |
| loadTranslation (string $lang_code) | |
| updateable () | |
| Helper function to check if this type can be updated.  More... | |
| getActivePlugins () | |
Protected Attributes | |
| string | $default_lang = '' | 
| int | $owner | 
| DateTime | $create_date | 
| DateTime | $last_update | 
| string | $icon | 
| ilObjUser | $user | 
| array | $active_plugins | 
| ilLanguage | $lng | 
| array | $translations | 
| array | $changed_translations = array() | 
| int | $id = 0 | 
| ilStudyProgrammeTypeRepository | $type_repo | 
| ilComponentFactory | $component_factory | 
Class ilStudyProgrammeType.
Definition at line 27 of file class.ilStudyProgrammeType.php.
| ilStudyProgrammeType::__construct | ( | int | $id, | 
| ilStudyProgrammeTypeRepository | $type_repo, | ||
| ilLanguage | $lng, | ||
| ilObjUser | $user, | ||
| ilComponentFactory | $component_factory | ||
| ) | 
Definition at line 46 of file class.ilStudyProgrammeType.php.
References $component_factory, $id, $lng, $type_repo, $user, ILIAS\Repository\lng(), and ILIAS\Repository\user().
 Here is the call graph for this function:| ilStudyProgrammeType::changedTranslations | ( | ) | 
Definition at line 396 of file class.ilStudyProgrammeType.php.
References $changed_translations.
      
  | 
  protected | 
Definition at line 391 of file class.ilStudyProgrammeType.php.
Referenced by setTranslations(), updateable(), and updateAssignedStudyProgrammesIcons().
 Here is the caller graph for this function:| ilStudyProgrammeType::getCreateDate | ( | ) | 
Definition at line 381 of file class.ilStudyProgrammeType.php.
References $create_date.
Referenced by ilStudyProgrammeTypeDBRepository\updateType().
 Here is the caller graph for this function:| ilStudyProgrammeType::getDefaultLang | ( | ) | 
Definition at line 371 of file class.ilStudyProgrammeType.php.
References $default_lang.
Referenced by ilStudyProgrammeTypeDBRepository\getRows(), getTranslation(), setDescription(), setTitle(), and ilStudyProgrammeTypeDBRepository\updateType().
 Here is the caller graph for this function:| ilStudyProgrammeType::getDescription | ( | string | $lang_code = '' | ) | 
Get the description of an StudyProgramme type.
If no language code is given, a translation in the user-language is returned. If no such translation exists, the description of the default language is substituted. If a language code is provided, returns description for the given language or null.
Definition at line 85 of file class.ilStudyProgrammeType.php.
References getTranslation().
Referenced by ilStudyProgrammeTypeGUI\buildLanguagesForms(), and ilStudyProgrammeTypeDBRepository\getRows().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeType::getIconIdentifier | ( | ) | 
Definition at line 361 of file class.ilStudyProgrammeType.php.
References $icon.
Referenced by ilStudyProgrammeTypeGUI\editCustomIcons(), ilStudyProgrammeTypeGUI\executeCommand(), ilStudyProgrammeTypeDBRepository\getIconPath(), ilStudyProgrammeTypeDBRepository\getIconPathFS(), ilStudyProgrammeTypeDBRepository\getRows(), ilStudyProgrammeTypeGUI\updateCustomIcons(), ilStudyProgrammeTypeDBRepository\updateRowTypeTranslationDB(), and ilStudyProgrammeTypeDBRepository\updateType().
 Here is the caller graph for this function:| ilStudyProgrammeType::getId | ( | ) | 
Definition at line 349 of file class.ilStudyProgrammeType.php.
References $id.
Referenced by ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillForm(), ilStudyProgrammeTypeAdvancedMetaDataFormGUI\fillObject(), ilStudyProgrammeTypeDBRepository\getRows(), loadTranslation(), setTranslations(), updateAssignedStudyProgrammesIcons(), ilStudyProgrammeTypeDBRepository\updateRowTypeTranslationDB(), and ilStudyProgrammeTypeDBRepository\updateType().
 Here is the caller graph for this function:| ilStudyProgrammeType::getLastUpdate | ( | ) | 
Definition at line 344 of file class.ilStudyProgrammeType.php.
References $last_update.
Referenced by ilStudyProgrammeTypeDBRepository\updateType().
 Here is the caller graph for this function:| ilStudyProgrammeType::getOwner | ( | ) | 
Definition at line 334 of file class.ilStudyProgrammeType.php.
References $owner.
Referenced by ilStudyProgrammeTypeDBRepository\updateType().
 Here is the caller graph for this function:| ilStudyProgrammeType::getRepository | ( | ) | 
Definition at line 386 of file class.ilStudyProgrammeType.php.
References $type_repo.
| ilStudyProgrammeType::getTitle | ( | string | $a_lang_code = '' | ) | 
Get the title of an StudyProgramme type.
If no language code is given, a translation in the user-language is returned. If no such translation exists, the translation of the default language is substituted. If a language code is provided, returns title for the given language or null.
Definition at line 65 of file class.ilStudyProgrammeType.php.
References getTranslation().
Referenced by ilStudyProgrammeTypeGUI\buildLanguagesForms(), ilStudyProgrammeTypeGUI\editCustomIcons(), and ilStudyProgrammeTypeDBRepository\getRows().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Helper method to return a translation for a given member and language.
Definition at line 204 of file class.ilStudyProgrammeType.php.
References getDefaultLang(), loadTranslation(), and ILIAS\Repository\user().
Referenced by getDescription(), getTitle(), and setTranslations().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeType::getTranslations | ( | ) | 
      
  | 
  protected | 
Definition at line 232 of file class.ilStudyProgrammeType.php.
References getId().
Referenced by getTranslation().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeType::setCreateDate | ( | DateTime | $create_date | ) | 
| ilStudyProgrammeType::setDefaultLang | ( | string | $default_lang | ) | 
Definition at line 366 of file class.ilStudyProgrammeType.php.
References $default_lang.
Referenced by ilStudyProgrammeTypeGUI\update().
 Here is the caller graph for this function:| ilStudyProgrammeType::setDescription | ( | string | $description, | 
| string | $lang_code = ''  | 
        ||
| ) | 
Set description of StudyProgramme type.
If no lang code is given, sets description for default language.
Definition at line 94 of file class.ilStudyProgrammeType.php.
References getDefaultLang().
Referenced by ilStudyProgrammeTypeGUI\update().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeType::setLastUpdate | ( | DateTime | $last_update | ) | 
| ilStudyProgrammeType::setOwner | ( | int | $owner | ) | 
| ilStudyProgrammeType::setTitle | ( | string | $title, | 
| string | $lang_code = ''  | 
        ||
| ) | 
Set title of StudyProgramme type.
If no lang code is given, sets title for default language.
Definition at line 74 of file class.ilStudyProgrammeType.php.
References getDefaultLang().
Referenced by ilStudyProgrammeTypeGUI\update().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeType::setTranslations | ( | array | $translations | ) | 
Getters & Setters.
Definition at line 268 of file class.ilStudyProgrammeType.php.
References XapiProxy\$plugin, $translations, getActivePlugins(), getId(), getTranslation(), and ILIAS\Repository\lng().
 Here is the call graph for this function:
      
  | 
  protected | 
Helper function to check if this type can be updated.
Definition at line 253 of file class.ilStudyProgrammeType.php.
References XapiProxy\$plugin, and getActivePlugins().
 Here is the call graph for this function:| ilStudyProgrammeType::updateAssignedStudyProgrammesIcons | ( | ) | 
Update the Icons of assigned objects.
Definition at line 103 of file class.ilStudyProgrammeType.php.
References XapiProxy\$plugin, $ref_id, ilObject\_getAllReferences(), getActivePlugins(), getId(), ilObjStudyProgramme\getInstanceByRefId(), ILIAS\Repository\lng(), and ilAdvancedMDRecord\saveObjRecSelection().
Referenced by ilStudyProgrammeTypeCustomIconsFormGUI\saveObject(), and ilStudyProgrammeTypeGUI\updateCustomIcons().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilStudyProgrammeType::withIconIdentifier | ( | ?string | $identifier | ) | 
Definition at line 354 of file class.ilStudyProgrammeType.php.
Referenced by ilStudyProgrammeTypeGUI\updateCustomIcons().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 38 of file class.ilStudyProgrammeType.php.
      
  | 
  protected | 
Definition at line 41 of file class.ilStudyProgrammeType.php.
Referenced by changedTranslations().
      
  | 
  protected | 
Definition at line 44 of file class.ilStudyProgrammeType.php.
Referenced by __construct().
      
  | 
  protected | 
Definition at line 34 of file class.ilStudyProgrammeType.php.
Referenced by getCreateDate(), and setCreateDate().
      
  | 
  protected | 
Definition at line 32 of file class.ilStudyProgrammeType.php.
Referenced by getDefaultLang(), and setDefaultLang().
      
  | 
  protected | 
Definition at line 36 of file class.ilStudyProgrammeType.php.
Referenced by getIconIdentifier().
      
  | 
  protected | 
Definition at line 42 of file class.ilStudyProgrammeType.php.
Referenced by __construct(), and getId().
      
  | 
  protected | 
Definition at line 35 of file class.ilStudyProgrammeType.php.
Referenced by getLastUpdate(), and setLastUpdate().
      
  | 
  protected | 
Definition at line 39 of file class.ilStudyProgrammeType.php.
Referenced by __construct().
      
  | 
  protected | 
Definition at line 33 of file class.ilStudyProgrammeType.php.
Referenced by getOwner(), and setOwner().
      
  | 
  protected | 
Definition at line 40 of file class.ilStudyProgrammeType.php.
Referenced by getTranslations(), and setTranslations().
      
  | 
  protected | 
Definition at line 43 of file class.ilStudyProgrammeType.php.
Referenced by __construct(), and getRepository().
      
  | 
  protected | 
Definition at line 37 of file class.ilStudyProgrammeType.php.
Referenced by __construct().
| const ilStudyProgrammeType::DATE_FORMAT = 'Y-m-d' | 
Definition at line 30 of file class.ilStudyProgrammeType.php.
| const ilStudyProgrammeType::DATE_TIME_FORMAT = 'Y-m-d H:i:s' | 
Definition at line 29 of file class.ilStudyProgrammeType.php.
Referenced by ilStudyProgrammeTypeDBRepository\createTypeByRow(), and ilStudyProgrammeTypeDBRepository\updateType().