ILIAS
trunk Revision v11.0_alpha-1861-g09f3d197f78
|
Class ilStudyProgrammeType. More...
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().
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().
ilStudyProgrammeType::getCreateDate | ( | ) |
Definition at line 381 of file class.ilStudyProgrammeType.php.
References $create_date.
Referenced by ilStudyProgrammeTypeDBRepository\updateType().
ilStudyProgrammeType::getDefaultLang | ( | ) |
Definition at line 371 of file class.ilStudyProgrammeType.php.
References $default_lang.
Referenced by ilStudyProgrammeTypeDBRepository\getRows(), getTranslation(), setDescription(), setTitle(), and ilStudyProgrammeTypeDBRepository\updateType().
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().
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().
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().
ilStudyProgrammeType::getLastUpdate | ( | ) |
Definition at line 344 of file class.ilStudyProgrammeType.php.
References $last_update.
Referenced by ilStudyProgrammeTypeDBRepository\updateType().
ilStudyProgrammeType::getOwner | ( | ) |
Definition at line 334 of file class.ilStudyProgrammeType.php.
References $owner.
Referenced by ilStudyProgrammeTypeDBRepository\updateType().
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().
|
protected |
Helper method to return a translation for a given member and language.
Definition at line 204 of file class.ilStudyProgrammeType.php.
References $lang, getDefaultLang(), loadTranslation(), null, and ILIAS\Repository\user().
Referenced by getDescription(), getTitle(), and setTranslations().
ilStudyProgrammeType::getTranslations | ( | ) |
|
protected |
Definition at line 232 of file class.ilStudyProgrammeType.php.
Referenced by getTranslation().
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().
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 $lang, and getDefaultLang().
Referenced by ilStudyProgrammeTypeGUI\update().
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 $lang, and getDefaultLang().
Referenced by ilStudyProgrammeTypeGUI\update().
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().
|
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().
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().
ilStudyProgrammeType::withIconIdentifier | ( | ?string | $identifier | ) |
Definition at line 354 of file class.ilStudyProgrammeType.php.
Referenced by ilStudyProgrammeTypeGUI\updateCustomIcons().
|
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().