|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
Inheritance diagram for ilStudyProgrammeTypeDBRepository:
Collaboration diagram for ilStudyProgrammeTypeDBRepository:Public Member Functions | |
| __construct (\ilDBInterface $db, \ilStudyProgrammeSettingsRepository $settings_repo, ILIAS\Filesystem\Filesystem $webdir, ilObjUser $usr, ilPluginAdmin $plugin_admin, ilLanguage $lng) | |
| createType (string $default_language) | |
| Create a type record and return an object representing it. More... | |
| createAMDRecord () | |
| Create an amd-record record and return an object representing it. More... | |
| createTypeTranslation () | |
| Create a type translation record and return an object representing it. More... | |
| updateType (ilStudyProgrammeType $type) | |
| Persist type properties. More... | |
| updateAMDRecord (ilStudyProgrammeAdvancedMetadataRecord $rec) | |
| Persist amd-record properties. More... | |
| updateTypeTranslation (ilStudyProgrammeTypeTranslation $tt) | |
| Persist type translation properties. More... | |
| deleteAMDRecord (ilStudyProgrammeAdvancedMetadataRecord $rec) | |
| Delete record corresponding to given object. More... | |
| deleteTypeTranslation (ilStudyProgrammeTypeTranslation $tt) | |
| Delete record corresponding to given object. More... | |
| deleteTypeTranslationByTypeId (int $type_id) | |
| Delete all translation records corresponding to a type id. More... | |
| getAllTypes () | |
| Get all persisted type-objects. More... | |
| getType (int $type_id) | |
| Get a type with given type_id. More... | |
| getAllTypesArray () | |
| Get an assicative array of all persisted types id => title. More... | |
| getAssignedAMDRecordsByType (int $type_id, bool $only_active=false) | |
| getAllAMDRecords () | |
| getAMDRecordsByTypeIdAndRecordId (int $type_id, int $record_id) | |
| getAMDRecordsByTypeId (int $type_id, bool $only_active=false) | |
| getTranslationsArrayByTypeIdAndLangCode (int $type_id, string $lang_code) | |
| getStudyProgrammesByTypeId (int $type_id) | |
| Get all prg-settings objects by corresponding type-id. More... | |
| getStudyProgrammeIdsByTypeId (int $type_id) | |
| Get all prg-settings ids by corresponding type-id. More... | |
| getAvailableAdvancedMDRecords () | |
| getAvailableAdvancedMDRecordIds () | |
| getTranslationsByTypeAndLang (int $type_id, string $lang_code) | |
| getTranslationByTypeIdMemberLang (int $type_id, string $member, string $lang_code) | |
Public Member Functions inherited from ilStudyProgrammeTypeRepository | |
| createType (string $default_language) | |
| Create a type record and return an object representing it. More... | |
| createAMDRecord () | |
| Create an amd-record record and return an object representing it. More... | |
| createTypeTranslation () | |
| Create a type translation record and return an object representing it. More... | |
| updateType (ilStudyProgrammeType $type) | |
| Persist type properties. More... | |
| updateAMDRecord (ilStudyProgrammeAdvancedMetadataRecord $rec) | |
| Persist amd-record properties. More... | |
| updateTypeTranslation (ilStudyProgrammeTypeTranslation $tt) | |
| Persist type translation properties. More... | |
| deleteType (ilStudyProgrammeType $type) | |
| Delete record corresponding to given object. More... | |
| deleteAMDRecord (ilStudyProgrammeAdvancedMetadataRecord $rec) | |
| Delete record corresponding to given object. More... | |
| deleteTypeTranslation (ilStudyProgrammeTypeTranslation $tt) | |
| Delete record corresponding to given object. More... | |
| deleteTypeTranslationByTypeId (int $type_id) | |
| Delete all translation records corresponding to a type id. More... | |
| getAllTypes () | |
| Get all persisted type-objects. More... | |
| getType (int $type_id) | |
| Get a type with given type_id. More... | |
| getAllTypesArray () | |
| Get an assicative array of all persisted types id => title. More... | |
| getAssignedAMDRecordsByType (int $type_id, bool $only_active=false) | |
| getAssignedAMDRecordIdsByType (int $type_id, bool $only_active=false) | |
| getAllAMDRecords () | |
| getAllAMDRecordIds () | |
| getAMDRecordsByTypeIdAndRecordId (int $type_id, int $record_id) | |
| getAMDRecordsByTypeId (int $type_id, bool $only_active=false) | |
| getTranslationsArrayByTypeIdAndLangCode (int $type_id, string $lang_code) | |
| getStudyProgrammesByTypeId (int $type_id) | |
| Get all prg-settings objects by corresponding type-id. More... | |
| getStudyProgrammeIdsByTypeId (int $type_id) | |
| Get all prg-settings ids by corresponding type-id. More... | |
| getAvailableAdvancedMDRecords () | |
| getAvailableAdvancedMDRecordIds () | |
| getTranslationsByTypeAndLang (int $type_id, string $lang_code) | |
| getTranslationByTypeIdMemberLang (int $type_id, string $member, string $lang_code) | |
Data Fields | |
| const | TYPE_TABLE = 'prg_type' |
| const | FIELD_ID = 'id' |
| const | FIELD_DEFAULT_LANG = 'default_lang' |
| const | FIELD_OWNER = 'owner' |
| const | FIELD_CREATE_DATE = 'create_date' |
| const | FIELD_LAST_UPDATE = 'last_update' |
| const | FIELD_ICON = 'icon' |
| const | TYPE_TRANSLATION_TABLE = 'prg_translations' |
| const | FIELD_PRG_TYPE_ID = 'prg_type_id' |
| const | FIELD_LANG = 'lang' |
| const | FIELD_MEMBER = 'member' |
| const | FIELD_VALUE = 'value' |
| const | AMD_TABLE = 'prg_type_adv_md_rec' |
| const | FIELD_TYPE_ID = 'type_id' |
| const | FIELD_REC_ID = 'rec_id' |
Protected Member Functions | |
| insertRowTypeDB (array $row) | |
| createTypeByRow (array $row) | |
| insertRowAMDDB (array $row) | |
| createAMDByRow (array $row) | |
| insertRowTypeTranslationDB (array $row) | |
| createTypeTranslationByRow (array $row) | |
| updateRowTypeDB (array $row) | |
| updateRowAMDRecordDB (array $row) | |
| updateRowTypeTranslationDB (array $row) | |
| deleteAllTranslationsByTypeId (int $type_id) | |
| deleteAMDRecordsByTypeId (int $type_id) | |
| getAllTypesRecords () | |
Protected Attributes | |
| $db | |
| $settings_repo | |
| $webdir | |
| $plugin_admin | |
| $lng | |
| $usr | |
| $amd_records_assigned = [] | |
Static Protected Attributes | |
| static | $amd_records_available |
Definition at line 5 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::__construct | ( | \ilDBInterface | $db, |
| \ilStudyProgrammeSettingsRepository | $settings_repo, | ||
| ILIAS\Filesystem\Filesystem | $webdir, | ||
| ilObjUser | $usr, | ||
| ilPluginAdmin | $plugin_admin, | ||
| ilLanguage | $lng | ||
| ) |
Definition at line 35 of file class.ilStudyProgrammeTypeDBRepository.php.
References $db, $lng, $plugin_admin, $settings_repo, $usr, and $webdir.
|
protected |
Definition at line 140 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createAMDRecord(), getAMDRecordsByTypeId(), getAMDRecordsByTypeIdAndRecordId(), and getAvailableAdvancedMDRecords().
Here is the caller graph for this function:| ilStudyProgrammeTypeDBRepository::createAMDRecord | ( | ) |
Create an amd-record record and return an object representing it.
Implements ilStudyProgrammeTypeRepository.
Definition at line 116 of file class.ilStudyProgrammeTypeDBRepository.php.
References createAMDByRow(), and insertRowAMDDB().
Here is the call graph for this function:| ilStudyProgrammeTypeDBRepository::createType | ( | string | $default_language | ) |
Create a type record and return an object representing it.
Implements ilStudyProgrammeTypeRepository.
Definition at line 54 of file class.ilStudyProgrammeTypeDBRepository.php.
References createTypeByRow(), insertRowTypeDB(), and ilUtil\now().
Here is the call graph for this function:
|
protected |
Definition at line 85 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeType\DATE_TIME_FORMAT.
Referenced by createType(), getAllTypes(), and getType().
Here is the caller graph for this function:| ilStudyProgrammeTypeDBRepository::createTypeTranslation | ( | ) |
Create a type translation record and return an object representing it.
Implements ilStudyProgrammeTypeRepository.
Definition at line 151 of file class.ilStudyProgrammeTypeDBRepository.php.
References createTypeTranslationByRow(), and insertRowTypeTranslationDB().
Here is the call graph for this function:
|
protected |
Definition at line 182 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createTypeTranslation(), and getTranslationByTypeIdMemberLang().
Here is the caller graph for this function:
|
protected |
Definition at line 334 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::deleteAMDRecord | ( | ilStudyProgrammeAdvancedMetadataRecord | $rec | ) |
Delete record corresponding to given object.
Implements ilStudyProgrammeTypeRepository.
Definition at line 350 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeAdvancedMetadataRecord\getId().
Here is the call graph for this function:
|
protected |
Definition at line 340 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::deleteTypeTranslation | ( | ilStudyProgrammeTypeTranslation | $tt | ) |
Delete record corresponding to given object.
Implements ilStudyProgrammeTypeRepository.
Definition at line 360 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeTypeTranslation\getId().
Here is the call graph for this function:| ilStudyProgrammeTypeDBRepository::deleteTypeTranslationByTypeId | ( | int | $type_id | ) |
Delete all translation records corresponding to a type id.
Implements ilStudyProgrammeTypeRepository.
Definition at line 370 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::getAllAMDRecords | ( | ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 486 of file class.ilStudyProgrammeTypeDBRepository.php.
References $amd_records_available, and ilAdvancedMDRecord\_getActivatedRecordsByObjectType().
Here is the call graph for this function:| ilStudyProgrammeTypeDBRepository::getAllTypes | ( | ) |
Get all persisted type-objects.
Implements ilStudyProgrammeTypeRepository.
Definition at line 380 of file class.ilStudyProgrammeTypeDBRepository.php.
References createTypeByRow(), and getAllTypesRecords().
Referenced by getAllTypesArray().
Here is the call graph for this function:
Here is the caller graph for this function:| ilStudyProgrammeTypeDBRepository::getAllTypesArray | ( | ) |
Get an assicative array of all persisted types id => title.
Implements ilStudyProgrammeTypeRepository.
Definition at line 429 of file class.ilStudyProgrammeTypeDBRepository.php.
References $type, and getAllTypes().
Here is the call graph for this function:
|
protected |
Definition at line 389 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, and TYPE_TABLE.
Referenced by getAllTypes().
Here is the caller graph for this function:| ilStudyProgrammeTypeDBRepository::getAMDRecordsByTypeId | ( | int | $type_id, |
| bool | $only_active = false |
||
| ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 532 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, and createAMDByRow().
Here is the call graph for this function:| ilStudyProgrammeTypeDBRepository::getAMDRecordsByTypeIdAndRecordId | ( | int | $type_id, |
| int | $record_id | ||
| ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 512 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, and createAMDByRow().
Here is the call graph for this function:| ilStudyProgrammeTypeDBRepository::getAssignedAMDRecordsByType | ( | int | $type_id, |
| bool | $only_active = false |
||
| ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 443 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res.
| ilStudyProgrammeTypeDBRepository::getAvailableAdvancedMDRecordIds | ( | ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 597 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, AMD_TABLE, and FIELD_REC_ID.
| ilStudyProgrammeTypeDBRepository::getAvailableAdvancedMDRecords | ( | ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 579 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, AMD_TABLE, and createAMDByRow().
Here is the call graph for this function:| ilStudyProgrammeTypeDBRepository::getStudyProgrammeIdsByTypeId | ( | int | $type_id | ) |
Get all prg-settings ids by corresponding type-id.
Implements ilStudyProgrammeTypeRepository.
Definition at line 566 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::getStudyProgrammesByTypeId | ( | int | $type_id | ) |
Get all prg-settings objects by corresponding type-id.
Implements ilStudyProgrammeTypeRepository.
Definition at line 558 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::getTranslationByTypeIdMemberLang | ( | int | $type_id, |
| string | $member, | ||
| string | $lang_code | ||
| ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 625 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, and createTypeTranslationByRow().
Here is the call graph for this function:| ilStudyProgrammeTypeDBRepository::getTranslationsArrayByTypeIdAndLangCode | ( | int | $type_id, |
| string | $lang_code | ||
| ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 551 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::getTranslationsByTypeAndLang | ( | int | $type_id, |
| string | $lang_code | ||
| ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 609 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, FIELD_MEMBER, and FIELD_VALUE.
| ilStudyProgrammeTypeDBRepository::getType | ( | int | $type_id | ) |
Get a type with given type_id.
Implements ilStudyProgrammeTypeRepository.
Definition at line 409 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, and createTypeByRow().
Here is the call graph for this function:
|
protected |
Definition at line 128 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createAMDRecord().
Here is the caller graph for this function:
|
protected |
Definition at line 70 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createType().
Here is the caller graph for this function:
|
protected |
Definition at line 165 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createTypeTranslation().
Here is the caller graph for this function:| ilStudyProgrammeTypeDBRepository::updateAMDRecord | ( | ilStudyProgrammeAdvancedMetadataRecord | $rec | ) |
Persist amd-record properties.
Implements ilStudyProgrammeTypeRepository.
Definition at line 222 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeAdvancedMetadataRecord\getId(), ilStudyProgrammeAdvancedMetadataRecord\getRecId(), ilStudyProgrammeAdvancedMetadataRecord\getTypeId(), and updateRowAMDRecordDB().
Here is the call graph for this function:
|
protected |
Definition at line 233 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by updateAMDRecord().
Here is the caller graph for this function:
|
protected |
Definition at line 205 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by updateType().
Here is the caller graph for this function:
|
protected |
Definition at line 260 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by updateTypeTranslation().
Here is the caller graph for this function:| ilStudyProgrammeTypeDBRepository::updateType | ( | ilStudyProgrammeType | $type | ) |
Persist type properties.
Implements ilStudyProgrammeTypeRepository.
Definition at line 191 of file class.ilStudyProgrammeTypeDBRepository.php.
References $type, ilStudyProgrammeType\DATE_TIME_FORMAT, and updateRowTypeDB().
Here is the call graph for this function:| ilStudyProgrammeTypeDBRepository::updateTypeTranslation | ( | ilStudyProgrammeTypeTranslation | $tt | ) |
Persist type translation properties.
Implements ilStudyProgrammeTypeRepository.
Definition at line 247 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeTypeTranslation\getId(), ilStudyProgrammeTypeTranslation\getLang(), ilStudyProgrammeTypeTranslation\getMember(), ilStudyProgrammeTypeTranslation\getPrgTypeId(), ilStudyProgrammeTypeTranslation\getValue(), and updateRowTypeTranslationDB().
Here is the call graph for this function:
|
protected |
Definition at line 438 of file class.ilStudyProgrammeTypeDBRepository.php.
|
staticprotected |
Definition at line 481 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getAllAMDRecords().
|
protected |
Definition at line 28 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 32 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 31 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 33 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 30 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
| const ilStudyProgrammeTypeDBRepository::AMD_TABLE = 'prg_type_adv_md_rec' |
Definition at line 23 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getAvailableAdvancedMDRecordIds(), getAvailableAdvancedMDRecords(), and ilStudyProgrammeTypeRepositoryTest\tearDownAfterClass().
| const ilStudyProgrammeTypeDBRepository::FIELD_CREATE_DATE = 'create_date' |
Definition at line 12 of file class.ilStudyProgrammeTypeDBRepository.php.
| const ilStudyProgrammeTypeDBRepository::FIELD_DEFAULT_LANG = 'default_lang' |
Definition at line 10 of file class.ilStudyProgrammeTypeDBRepository.php.
| const ilStudyProgrammeTypeDBRepository::FIELD_ICON = 'icon' |
Definition at line 14 of file class.ilStudyProgrammeTypeDBRepository.php.
| const ilStudyProgrammeTypeDBRepository::FIELD_ID = 'id' |
Definition at line 9 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by ilStudyProgrammeTypeRepositoryTest\tearDownAfterClass().
| const ilStudyProgrammeTypeDBRepository::FIELD_LANG = 'lang' |
Definition at line 19 of file class.ilStudyProgrammeTypeDBRepository.php.
| const ilStudyProgrammeTypeDBRepository::FIELD_LAST_UPDATE = 'last_update' |
Definition at line 13 of file class.ilStudyProgrammeTypeDBRepository.php.
| const ilStudyProgrammeTypeDBRepository::FIELD_MEMBER = 'member' |
Definition at line 20 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getTranslationsByTypeAndLang().
| const ilStudyProgrammeTypeDBRepository::FIELD_OWNER = 'owner' |
Definition at line 11 of file class.ilStudyProgrammeTypeDBRepository.php.
| const ilStudyProgrammeTypeDBRepository::FIELD_PRG_TYPE_ID = 'prg_type_id' |
Definition at line 18 of file class.ilStudyProgrammeTypeDBRepository.php.
| const ilStudyProgrammeTypeDBRepository::FIELD_REC_ID = 'rec_id' |
Definition at line 26 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getAvailableAdvancedMDRecordIds().
| const ilStudyProgrammeTypeDBRepository::FIELD_TYPE_ID = 'type_id' |
Definition at line 25 of file class.ilStudyProgrammeTypeDBRepository.php.
| const ilStudyProgrammeTypeDBRepository::FIELD_VALUE = 'value' |
Definition at line 21 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getTranslationsByTypeAndLang().
| const ilStudyProgrammeTypeDBRepository::TYPE_TABLE = 'prg_type' |
Definition at line 7 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getAllTypesRecords().
| const ilStudyProgrammeTypeDBRepository::TYPE_TRANSLATION_TABLE = 'prg_translations' |
Definition at line 16 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by ilStudyProgrammeTypeRepositoryTest\tearDownAfterClass().