ILIAS
trunk Revision v11.0_alpha-1831-g8615d53dadb
|
Public Member Functions | |
__construct (private readonly UIFactory $ui_factory, private readonly \ilUIService $ui_service, private readonly Language $lng, private readonly \ilTestAccess $test_access, private readonly RequestDataCollector $test_request, private readonly \ilTestParticipantAccessFilterFactory $participant_access_filter, private readonly ParticipantRepository $repository, private readonly ResultsDataFactory $results_data_factory, private readonly ResultsPresentationSettings $results_presentation_settings, private readonly \ilObjUser $current_user, private readonly \ilObjTest $test_object, private readonly ParticipantTableActions $table_actions) | |
execute (URLBuilder $url_builder) | |
getComponents (URLBuilder $url_builder, string $filter_url) | |
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 (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... | |
Private Member Functions | |
acquireParameters ($url_builder) | |
getPostLoadFilters () | |
getPostLoadOrderFields () | |
getFilterComponent (string $action, ServerRequestInterface $request) | |
getFilterFields (FieldFactory $field_factory) | |
getTableComponent (ServerRequestInterface $request, ?array $filter) | |
getColumns () | |
loadRecords (?array $filter, Order $order) | |
getViewControlledRecords (?array $filter_data, Range $range, Order $order) | |
filterRecords (iterable $records, ?array $filter_data) | |
matchFilter (Participant $record, ?array $filter) | |
sortRecords (iterable $records, Order $order) | |
limitRecords (array $records, Range $range) | |
Private Attributes | |
const | ID = 'pt' |
iterable | $records = null |
Definition at line 39 of file ParticipantTable.php.
ILIAS\Test\Participants\ParticipantTable::__construct | ( | private readonly UIFactory | $ui_factory, |
private readonly \ilUIService | $ui_service, | ||
private readonly Language | $lng, | ||
private readonly \ilTestAccess | $test_access, | ||
private readonly RequestDataCollector | $test_request, | ||
private readonly \ilTestParticipantAccessFilterFactory | $participant_access_filter, | ||
private readonly ParticipantRepository | $repository, | ||
private readonly ResultsDataFactory | $results_data_factory, | ||
private readonly ResultsPresentationSettings | $results_presentation_settings, | ||
private readonly \ilObjUser | $current_user, | ||
private readonly \ilObjTest | $test_object, | ||
private readonly ParticipantTableActions | $table_actions | ||
) |
Definition at line 44 of file ParticipantTable.php.
|
private |
Definition at line 160 of file ParticipantTable.php.
References ILIAS\Test\Participants\ParticipantTableActions\ACTION_PARAMETER, ILIAS\Test\Participants\ParticipantTableActions\ACTION_TYPE_PARAMETER, and ILIAS\Test\Participants\ParticipantTableActions\ROW_ID_PARAMETER.
Referenced by ILIAS\Test\Participants\ParticipantTable\execute().
ILIAS\Test\Participants\ParticipantTable::execute | ( | URLBuilder | $url_builder | ) |
Definition at line 60 of file ParticipantTable.php.
References ILIAS\Test\Participants\ParticipantTable\acquireParameters().
|
private |
Definition at line 474 of file ParticipantTable.php.
References ILIAS\Test\Participants\ParticipantTable\matchFilter().
Referenced by ILIAS\Test\Participants\ParticipantTable\getViewControlledRecords().
|
private |
Definition at line 335 of file ParticipantTable.php.
References ILIAS\Repository\lng().
Referenced by ILIAS\Test\Participants\ParticipantTable\getTableComponent().
ILIAS\Test\Participants\ParticipantTable::getComponents | ( | URLBuilder | $url_builder, |
string | $filter_url | ||
) |
Definition at line 68 of file ParticipantTable.php.
References ILIAS\Test\Participants\ParticipantTable\getFilterComponent(), and ILIAS\Test\Participants\ParticipantTable\getTableComponent().
|
private |
Definition at line 247 of file ParticipantTable.php.
References ILIAS\Test\Participants\ParticipantTable\getFilterFields().
Referenced by ILIAS\Test\Participants\ParticipantTable\getComponents().
|
private |
FieldFactory | $field_factory |
Definition at line 272 of file ParticipantTable.php.
References ILIAS\Repository\lng().
Referenced by ILIAS\Test\Participants\ParticipantTable\getFilterComponent().
|
private |
Definition at line 173 of file ParticipantTable.php.
References ILIAS\Test\Participants\Participant\getAttemptOverviewInformation(), ILIAS\Test\Participants\Participant\hasAnsweredQuestionsForScoredAttempt(), and null.
Referenced by ILIAS\Test\Participants\ParticipantTable\matchFilter().
|
private |
Definition at line 190 of file ParticipantTable.php.
References Vendor\Package\$a, Vendor\Package\$b, ILIAS\Test\Participants\Participant\getAttemptOverviewInformation(), ILIAS\Test\Participants\Participant\getFirstAccess(), ILIAS\Test\Participants\Participant\getLastAccess(), ILIAS\Test\Participants\Participant\getMatriculation(), ILIAS\Test\Participants\Participant\getRemainingDuration(), and ILIAS\Test\Participants\Participant\getTotalDuration().
Referenced by ILIAS\Test\Participants\ParticipantTable\sortRecords().
|
private |
Definition at line 318 of file ParticipantTable.php.
References ILIAS\Test\Participants\ParticipantTable\getColumns(), and ILIAS\Repository\lng().
Referenced by ILIAS\Test\Participants\ParticipantTable\getComponents().
ILIAS\Test\Participants\ParticipantTable::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 82 of file ParticipantTable.php.
References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\UI\Component\Table\DataRowBuilder\buildDataRow(), ILIAS\UI\Component\Table\DataRetrieval\getRows(), ILIAS\Test\Participants\ParticipantTable\getViewControlledRecords(), ILIAS\Repository\lng(), null, and ILIAS\UI\examples\Deck\repository().
|
private |
Definition at line 456 of file ParticipantTable.php.
References ILIAS\Test\Participants\ParticipantTable\filterRecords(), ILIAS\Test\Participants\ParticipantTable\limitRecords(), and ILIAS\Test\Participants\ParticipantTable\sortRecords().
Referenced by ILIAS\Test\Participants\ParticipantTable\getTotalRowCount().
|
private |
Definition at line 525 of file ParticipantTable.php.
References ILIAS\Data\Range\getLength(), and ILIAS\Data\Range\getStart().
Referenced by ILIAS\Test\Participants\ParticipantTable\getViewControlledRecords().
|
private |
Definition at line 423 of file ParticipantTable.php.
References ILIAS\Test\Participants\ParticipantTable\$records, ILIAS\Test\Participants\Participant\getUserId(), null, and ILIAS\UI\examples\Deck\repository().
|
private |
Definition at line 483 of file ParticipantTable.php.
References ILIAS\Test\Participants\ParticipantTable\getPostLoadFilters(), and null.
Referenced by ILIAS\Test\Participants\ParticipantTable\filterRecords().
|
private |
Definition at line 504 of file ParticipantTable.php.
References Vendor\Package\$a, Vendor\Package\$b, ILIAS\Test\Participants\ParticipantTable\$records, ILIAS\Data\Order\get(), and ILIAS\Test\Participants\ParticipantTable\getPostLoadOrderFields().
Referenced by ILIAS\Test\Participants\ParticipantTable\getViewControlledRecords().
|
private |
Definition at line 42 of file ParticipantTable.php.
Referenced by ILIAS\Test\Participants\ParticipantTable\loadRecords(), and ILIAS\Test\Participants\ParticipantTable\sortRecords().
|
private |
Definition at line 41 of file ParticipantTable.php.