ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Public Member Functions | |
__construct (private readonly string $table_id, private readonly \ilObjUser $current_user, private readonly UIFactory $ui_factory, private readonly UIRenderer $ui_renderer, private readonly \ilLanguage $lng, private readonly \ilCtrl $ctrl, private readonly DataFactory $data_factory, private readonly \ilAssQuestionList $question_list, private readonly TaxonomyService $taxonomy, private readonly string $parent_title) | |
getComponent (ServerRequestInterface $request, ?array $filter) | |
getColumns () | |
getActions () | |
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... | |
loadRecords (array $filters=[], ?Order $order=null, ?Range $range=null) | |
Data Fields | |
const | ACTION_INSERT = 'insert' |
Private Member Functions | |
getInsertAction () | |
addFiltersToQuestionList (array $filters) | |
resolveTaxonomiesRowData (int $obj_fi, int $questionId) | |
loadTaxonomyAssignmentData (int $parentObjId, int $questionId, array $available_taxonomy_ids) | |
Definition at line 39 of file QuestionsBrowserTable.php.
ILIAS\Test\Questions\Presentation\QuestionsBrowserTable::__construct | ( | private readonly string | $table_id, |
private readonly \ilObjUser | $current_user, | ||
private readonly UIFactory | $ui_factory, | ||
private readonly UIRenderer | $ui_renderer, | ||
private readonly \ilLanguage | $lng, | ||
private readonly \ilCtrl | $ctrl, | ||
private readonly DataFactory | $data_factory, | ||
private readonly \ilAssQuestionList | $question_list, | ||
private readonly TaxonomyService | $taxonomy, | ||
private readonly string | $parent_title | ||
) |
Definition at line 43 of file QuestionsBrowserTable.php.
|
private |
Definition at line 189 of file QuestionsBrowserTable.php.
Referenced by ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\getTotalRowCount(), and ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\loadRecords().
ILIAS\Test\Questions\Presentation\QuestionsBrowserTable::getActions | ( | ) |
Definition at line 124 of file QuestionsBrowserTable.php.
References ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\getInsertAction().
Referenced by ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\getComponent().
ILIAS\Test\Questions\Presentation\QuestionsBrowserTable::getColumns | ( | ) |
Definition at line 69 of file QuestionsBrowserTable.php.
References ILIAS\Repository\lng(), and ILIAS\UI\Component\Table\Column\Column\withIsSortable().
Referenced by ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\getComponent().
ILIAS\Test\Questions\Presentation\QuestionsBrowserTable::getComponent | ( | ServerRequestInterface | $request, |
?array | $filter | ||
) |
Definition at line 57 of file QuestionsBrowserTable.php.
References ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\getActions(), ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\getColumns(), and ILIAS\Repository\lng().
|
private |
Definition at line 129 of file QuestionsBrowserTable.php.
References ilTestQuestionBrowserTableGUI\CMD_INSERT_QUESTIONS, and ILIAS\Repository\lng().
Referenced by ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\getActions().
ILIAS\Test\Questions\Presentation\QuestionsBrowserTable::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.
yield $row_builder->buildStandardRow($row_id, $record).
string[] | $visible_column_ids |
Implements ILIAS\UI\Component\Table\DataRetrieval.
Definition at line 147 of file QuestionsBrowserTable.php.
References ILIAS\UI\Component\Table\DataRowBuilder\buildDataRow(), ilAssQuestionLifecycle\getInstance(), ILIAS\Repository\lng(), ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\loadRecords(), and ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\resolveTaxonomiesRowData().
ILIAS\Test\Questions\Presentation\QuestionsBrowserTable::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 171 of file QuestionsBrowserTable.php.
References ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\addFiltersToQuestionList().
ILIAS\Test\Questions\Presentation\QuestionsBrowserTable::loadRecords | ( | array | $filters = [] , |
?Order | $order = null , |
||
?Range | $range = null |
||
) |
Definition at line 178 of file QuestionsBrowserTable.php.
References ILIAS\UI\Implementation\Component\Table\$range, and ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\addFiltersToQuestionList().
Referenced by ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\getRows().
|
private |
Definition at line 222 of file QuestionsBrowserTable.php.
Referenced by ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\resolveTaxonomiesRowData().
|
private |
Definition at line 201 of file QuestionsBrowserTable.php.
References $data, ilObject\_lookupTitle(), and ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\loadTaxonomyAssignmentData().
Referenced by ILIAS\Test\Questions\Presentation\QuestionsBrowserTable\getRows().
const ILIAS\Test\Questions\Presentation\QuestionsBrowserTable::ACTION_INSERT = 'insert' |
Definition at line 41 of file QuestionsBrowserTable.php.