ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (protected ilDBInterface $db, protected ilStudyProgrammeSettingsRepository $settings_repo, protected ilObjUser $usr, protected ilLanguage $lng, protected ilComponentFactory $component_factory, protected UIFactory $ui_factory, protected Renderer $ui_renderer, protected IRSS $irss,) | |
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... | |
removeIconFromIrss (string $identifier) | |
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 (?Range $range=null, ?Order $order=null) | |
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) | |
getTable () | |
getTotalRowCount (?array $filter_data, ?array $additional_parameters) | |
Mainly for the purpose of pagination-support, it is important to know about the total number of records available. More... | |
getRows (DataTableInterface\DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters) | |
getIconPathFS (ilStudyProgrammeType $type) | |
getIconPath (ilStudyProgrammeType $type) | |
![]() | |
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) | |
![]() | |
getRows (DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters) | |
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e.g. More... | |
getTotalRowCount (?array $filter_data, ?array $additional_parameters) | |
Mainly for the purpose of pagination-support, it is important to know about the total number of records available. More... | |
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 () | |
getAllTypesRecordCount () | |
getColums () | |
Protected Attributes | |
array | $active_plugins = null |
array | $amd_records_assigned = [] |
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' |
Definition at line 32 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::__construct | ( | protected ilDBInterface | $db, |
protected ilStudyProgrammeSettingsRepository | $settings_repo, | ||
protected ilObjUser | $usr, | ||
protected ilLanguage | $lng, | ||
protected ilComponentFactory | $component_factory, | ||
protected UIFactory | $ui_factory, | ||
protected Renderer | $ui_renderer, | ||
protected IRSS | $irss | ||
) |
Definition at line 59 of file class.ilStudyProgrammeTypeDBRepository.php.
|
protected |
Definition at line 159 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createAMDRecord().
ilStudyProgrammeTypeDBRepository::createAMDRecord | ( | ) |
Create an amd-record record and return an object representing it.
Implements ilStudyProgrammeTypeRepository.
Definition at line 135 of file class.ilStudyProgrammeTypeDBRepository.php.
References $id, createAMDByRow(), and insertRowAMDDB().
ilStudyProgrammeTypeDBRepository::createType | ( | string | $default_language | ) |
Create a type record and return an object representing it.
Implements ilStudyProgrammeTypeRepository.
Definition at line 74 of file class.ilStudyProgrammeTypeDBRepository.php.
References $id, createTypeByRow(), and insertRowTypeDB().
|
protected |
Definition at line 105 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeType\DATE_TIME_FORMAT, and ILIAS\Repository\lng().
Referenced by createType(), and getAllTypes().
ilStudyProgrammeTypeDBRepository::createTypeTranslation | ( | ) |
Create a type translation record and return an object representing it.
Implements ilStudyProgrammeTypeRepository.
Definition at line 170 of file class.ilStudyProgrammeTypeDBRepository.php.
References $id, createTypeTranslationByRow(), and insertRowTypeTranslationDB().
|
protected |
Definition at line 198 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createTypeTranslation().
|
protected |
Definition at line 347 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::deleteAMDRecord | ( | ilStudyProgrammeAdvancedMetadataRecord | $rec | ) |
Delete record corresponding to given object.
Implements ilStudyProgrammeTypeRepository.
Definition at line 365 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeAdvancedMetadataRecord\getId().
|
protected |
Definition at line 354 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::deleteTypeTranslation | ( | ilStudyProgrammeTypeTranslation | $tt | ) |
Delete record corresponding to given object.
Implements ilStudyProgrammeTypeRepository.
Definition at line 376 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeTypeTranslation\getId().
ilStudyProgrammeTypeDBRepository::deleteTypeTranslationByTypeId | ( | int | $type_id | ) |
Delete all translation records corresponding to a type id.
Implements ilStudyProgrammeTypeRepository.
Definition at line 387 of file class.ilStudyProgrammeTypeDBRepository.php.
|
protected |
Definition at line 342 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getAllAMDRecords | ( | ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 546 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilAdvancedMDRecord\_getActivatedRecordsByObjectType().
Definition at line 398 of file class.ilStudyProgrammeTypeDBRepository.php.
References createTypeByRow().
ilStudyProgrammeTypeDBRepository::getAllTypesArray | ( | ) |
Get an assicative array of all persisted types id => title.
Implements ilStudyProgrammeTypeRepository.
Definition at line 489 of file class.ilStudyProgrammeTypeDBRepository.php.
|
protected |
Definition at line 457 of file class.ilStudyProgrammeTypeDBRepository.php.
|
protected |
Definition at line 440 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getAMDRecordsByTypeId | ( | int | $type_id, |
bool | $only_active = false |
||
) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 592 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getAMDRecordsByTypeIdAndRecordId | ( | int | $type_id, |
int | $record_id | ||
) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 572 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getAssignedAMDRecordsByType | ( | int | $type_id, |
bool | $only_active = false |
||
) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 501 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getAvailableAdvancedMDRecordIds | ( | ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 658 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getAvailableAdvancedMDRecords | ( | ) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 640 of file class.ilStudyProgrammeTypeDBRepository.php.
|
protected |
Definition at line 718 of file class.ilStudyProgrammeTypeDBRepository.php.
References Vendor\Package\$f, and ILIAS\Repository\lng().
ilStudyProgrammeTypeDBRepository::getIconPath | ( | ilStudyProgrammeType | $type | ) |
Definition at line 773 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeType\getIconIdentifier().
ilStudyProgrammeTypeDBRepository::getIconPathFS | ( | ilStudyProgrammeType | $type | ) |
Definition at line 764 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeType\getIconIdentifier().
ilStudyProgrammeTypeDBRepository::getRows | ( | DataTableInterface\DataRowBuilder | $row_builder, |
array | $visible_column_ids, | ||
Range | $range, | ||
Order | $order, | ||
?array | $filter_data, | ||
?array | $additional_parameters | ||
) |
Definition at line 736 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeType\getDefaultLang(), ilStudyProgrammeType\getDescription(), ilStudyProgrammeType\getIconIdentifier(), ilStudyProgrammeType\getId(), ilStudyProgrammeType\getTitle(), and ILIAS\Repository\lng().
ilStudyProgrammeTypeDBRepository::getStudyProgrammeIdsByTypeId | ( | int | $type_id | ) |
Get all prg-settings ids by corresponding type-id.
Implements ilStudyProgrammeTypeRepository.
Definition at line 627 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeSettings\getObjId().
ilStudyProgrammeTypeDBRepository::getStudyProgrammesByTypeId | ( | int | $type_id | ) |
Get all prg-settings objects by corresponding type-id.
Implements ilStudyProgrammeTypeRepository.
Definition at line 619 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getTable | ( | ) |
Definition at line 709 of file class.ilStudyProgrammeTypeDBRepository.php.
References ILIAS\Repository\lng().
ilStudyProgrammeTypeDBRepository::getTotalRowCount | ( | ?array | $filter_data, |
?array | $additional_parameters | ||
) |
Mainly for the purpose of pagination-support, it is important to know about the total number of records available.
Given the nature of a DataTable, which is, opposite to a PresentationTable, rather administrative than explorative, this information will increase user experience quite a bit. However, you may return null, if the call is to costly, but expect the View Control to look a little different in this case.
Make sure that potential filters or user restrictions are being applied to the count.
Implements ILIAS\UI\Component\Table\DataRetrieval.
Definition at line 729 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getTranslationByTypeIdMemberLang | ( | int | $type_id, |
string | $member, | ||
string | $lang_code | ||
) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 686 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getTranslationsArrayByTypeIdAndLangCode | ( | int | $type_id, |
string | $lang_code | ||
) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 611 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getTranslationsByTypeAndLang | ( | int | $type_id, |
string | $lang_code | ||
) |
Implements ilStudyProgrammeTypeRepository.
Definition at line 670 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::getType | ( | int | $type_id | ) |
Get a type with given type_id.
Implements ilStudyProgrammeTypeRepository.
Definition at line 467 of file class.ilStudyProgrammeTypeDBRepository.php.
|
protected |
Definition at line 147 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createAMDRecord().
|
protected |
Definition at line 90 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createType().
|
protected |
Definition at line 184 of file class.ilStudyProgrammeTypeDBRepository.php.
Referenced by createTypeTranslation().
ilStudyProgrammeTypeDBRepository::removeIconFromIrss | ( | string | $identifier | ) |
Definition at line 221 of file class.ilStudyProgrammeTypeDBRepository.php.
ilStudyProgrammeTypeDBRepository::updateAMDRecord | ( | ilStudyProgrammeAdvancedMetadataRecord | $rec | ) |
Persist amd-record properties.
Implements ilStudyProgrammeTypeRepository.
Definition at line 245 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeAdvancedMetadataRecord\getId(), ilStudyProgrammeAdvancedMetadataRecord\getRecId(), ilStudyProgrammeAdvancedMetadataRecord\getTypeId(), and updateRowAMDRecordDB().
|
protected |
Definition at line 256 of file class.ilStudyProgrammeTypeDBRepository.php.
References $q.
Referenced by updateAMDRecord().
|
protected |
Definition at line 228 of file class.ilStudyProgrammeTypeDBRepository.php.
References $q.
Referenced by updateType().
|
protected |
Definition at line 283 of file class.ilStudyProgrammeTypeDBRepository.php.
References $q.
Referenced by updateTypeTranslation().
ilStudyProgrammeTypeDBRepository::updateType | ( | ilStudyProgrammeType | $type | ) |
Persist type properties.
Implements ilStudyProgrammeTypeRepository.
Definition at line 208 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeType\DATE_TIME_FORMAT, ilStudyProgrammeType\getCreateDate(), ilStudyProgrammeType\getDefaultLang(), ilStudyProgrammeType\getIconIdentifier(), ilStudyProgrammeType\getId(), ilStudyProgrammeType\getLastUpdate(), ilStudyProgrammeType\getOwner(), and updateRowTypeDB().
ilStudyProgrammeTypeDBRepository::updateTypeTranslation | ( | ilStudyProgrammeTypeTranslation | $tt | ) |
Persist type translation properties.
Implements ilStudyProgrammeTypeRepository.
Definition at line 270 of file class.ilStudyProgrammeTypeDBRepository.php.
References ilStudyProgrammeTypeTranslation\getId(), ilStudyProgrammeTypeTranslation\getLang(), ilStudyProgrammeTypeTranslation\getMember(), ilStudyProgrammeTypeTranslation\getPrgTypeId(), ilStudyProgrammeTypeTranslation\getValue(), and updateRowTypeTranslationDB().
|
protected |
Definition at line 55 of file class.ilStudyProgrammeTypeDBRepository.php.
|
protected |
Definition at line 56 of file class.ilStudyProgrammeTypeDBRepository.php.
|
staticprotected |
Definition at line 57 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 50 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 39 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 37 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 41 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 36 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 46 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 40 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 47 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 38 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 45 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 53 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 52 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 48 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 34 of file class.ilStudyProgrammeTypeDBRepository.php.
|
private |
Definition at line 43 of file class.ilStudyProgrammeTypeDBRepository.php.