|
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...
Inheritance diagram for ilStudyProgrammeTypeDBRepository:
Collaboration diagram for ilStudyProgrammeTypeDBRepository:Public Member Functions | |
| __construct (ilDBInterface $db, ilStudyProgrammeSettingsRepository $settings_repo, ILIAS\Filesystem\Filesystem $webdir, ilObjUser $usr, ilLanguage $lng, ilComponentFactory $component_factory) | |
| 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.
| |
| getType (int $type_id) | |
| Get a type with given type_id. More... | |
| getAllTypesArray () | |
Get an assicative array of all persisted types id => title.
| |
| getAssignedAMDRecordsByType (int $type_id, bool $only_active=false) | |
| |
| getAllAMDRecords () | |
| |
| getAMDRecordsByTypeIdAndRecordId (int $type_id, int $record_id) | |
|
More... | |
| getAMDRecordsByTypeId (int $type_id, bool $only_active=false) | |
|
More... | |
| getTranslationsArrayByTypeIdAndLangCode (int $type_id, string $lang_code) | |
| getStudyProgrammesByTypeId (int $type_id) | |
Get all prg-settings objects by corresponding type-id.
| |
| getStudyProgrammeIdsByTypeId (int $type_id) | |
Get all prg-settings ids by corresponding type-id.
| |
| getAvailableAdvancedMDRecords () | |
|
More... | |
| 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) | |
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) | |
| getActivePlugins () | |
| deleteAllTranslationsByTypeId (int $type_id) | |
| deleteAMDRecordsByTypeId (int $type_id) | |
| getAllTypesRecords () | |
Protected Attributes | |
| array | $active_plugins = null |
| array | $amd_records_assigned = [] |
| ilDBInterface | $db |
| ilStudyProgrammeSettingsRepository | $settings_repo |
| ILIAS Filesystem Filesystem | $webdir |
| ilObjUser | $usr |
| ilLanguage | $lng |
| ilComponentFactory | $component_factory |
Static Protected Attributes | |
| static array | $amd_records_available = null |
Private Attributes | |
| 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' |
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
Definition at line 21 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::__construct | ( | ilDBInterface | $db, |
| ilStudyProgrammeSettingsRepository | $settings_repo, | ||
| ILIAS\Filesystem\Filesystem | $webdir, | ||
| ilObjUser | $usr, | ||
| ilLanguage | $lng, | ||
| ilComponentFactory | $component_factory | ||
| ) |
Definition at line 56 of file class.ilStudyProgrammeTypeDBRepository.php.
References $component_factory, $db, $lng, $settings_repo, $usr, $webdir, and ILIAS\Repository\lng().
Here is the call graph for this function:
|
protected |
Definition at line 161 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 137 of file class.ilStudyProgrammeTypeDBRepository.php.
References $id, 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 75 of file class.ilStudyProgrammeTypeDBRepository.php.
References $id, createTypeByRow(), and insertRowTypeDB().
Here is the call graph for this function:
|
protected |
Definition at line 106 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeType\DATE_TIME_FORMAT, and ILIAS\Repository\lng().
Referenced by createType(), getAllTypes(), and getType().
Here is the call graph for this function:
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 172 of file class.ilStudyProgrammeTypeDBRepository.php.
References $id, createTypeTranslationByRow(), and insertRowTypeTranslationDB().
Here is the call graph for this function:
|
protected |
Definition at line 200 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createTypeTranslation(), and getTranslationByTypeIdMemberLang().
Here is the caller graph for this function:
|
protected |
Definition at line 344 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::deleteAMDRecord | ( | ilStudyProgrammeAdvancedMetadataRecord | $rec | ) |
Delete record corresponding to given object.
Implements ilStudyProgrammeTypeRepository.
Definition at line 362 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeAdvancedMetadataRecord\getId().
Here is the call graph for this function:
|
protected |
Definition at line 351 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::deleteTypeTranslation | ( | ilStudyProgrammeTypeTranslation | $tt | ) |
Delete record corresponding to given object.
Implements ilStudyProgrammeTypeRepository.
Definition at line 373 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 384 of file class.ilStudyProgrammeTypeDBRepository.php.
|
protected |
Definition at line 339 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::getAllAMDRecords | ( | ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 503 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 395 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 446 of file class.ilStudyProgrammeTypeDBRepository.php.
References $type, and getAllTypes().
Here is the call graph for this function:
|
protected |
Definition at line 404 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 549 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 529 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 458 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res.
| ilStudyProgrammeTypeDBRepository::getAvailableAdvancedMDRecordIds | ( | ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 615 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, AMD_TABLE, and FIELD_REC_ID.
| ilStudyProgrammeTypeDBRepository::getAvailableAdvancedMDRecords | ( | ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 597 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 584 of file class.ilStudyProgrammeTypeDBRepository.php.
References ILIAS\LTI\ToolProvider\$settings.
| ilStudyProgrammeTypeDBRepository::getStudyProgrammesByTypeId | ( | int | $type_id | ) |
Get all prg-settings objects by corresponding type-id.
Implements ilStudyProgrammeTypeRepository.
Definition at line 576 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::getTranslationByTypeIdMemberLang | ( | int | $type_id, |
| string | $member, | ||
| string | $lang_code | ||
| ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 643 of file class.ilStudyProgrammeTypeDBRepository.php.
References createTypeTranslationByRow().
Here is the call graph for this function:| ilStudyProgrammeTypeDBRepository::getTranslationsArrayByTypeIdAndLangCode | ( | int | $type_id, |
| string | $lang_code | ||
| ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 568 of file class.ilStudyProgrammeTypeDBRepository.php.
| ilStudyProgrammeTypeDBRepository::getTranslationsByTypeAndLang | ( | int | $type_id, |
| string | $lang_code | ||
| ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 627 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 424 of file class.ilStudyProgrammeTypeDBRepository.php.
References $res, and createTypeByRow().
Here is the call graph for this function:
|
protected |
Definition at line 149 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createAMDRecord().
Here is the caller graph for this function:
|
protected |
Definition at line 91 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createType().
Here is the caller graph for this function:
|
protected |
Definition at line 186 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 240 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 251 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by updateAMDRecord().
Here is the caller graph for this function:
|
protected |
Definition at line 223 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by updateType().
Here is the caller graph for this function:
|
protected |
Definition at line 278 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 209 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 265 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 44 of file class.ilStudyProgrammeTypeDBRepository.php.
|
protected |
Definition at line 45 of file class.ilStudyProgrammeTypeDBRepository.php.
|
staticprotected |
Definition at line 46 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getAllAMDRecords().
|
protected |
Definition at line 54 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 48 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 52 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 49 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 51 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
protected |
Definition at line 50 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by __construct().
|
private |
Definition at line 39 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getAvailableAdvancedMDRecordIds(), and getAvailableAdvancedMDRecords().
|
private |
Definition at line 28 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 26 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 30 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 25 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 35 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 29 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 36 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getTranslationsByTypeAndLang().
|
private |
Definition at line 27 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 34 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 42 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getAvailableAdvancedMDRecordIds().
|
private |
Definition at line 41 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 37 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getTranslationsByTypeAndLang().
|
private |
Definition at line 23 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by getAllTypesRecords().
|
private |
Definition at line 32 of file class.ilStudyProgrammeTypeDBRepository.php.