ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct (protected int $content_obj_id, protected ilLanguage $lng, protected UIFactory $ui_factory, protected DataFactory $data_factory, protected StaticURL $static_url) | |
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... | |
getAllGroupingIDs () | |
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 | |
buildLinkToObject (int $ref_id) | |
buildLinkListing (int ... $ref_ids) | |
sortRecords (array $records, Order $order) | |
Definition at line 39 of file GroupingRetrieval.php.
ILIAS\Course\Grouping\Table\GroupingRetrieval::__construct | ( | protected int | $content_obj_id, |
protected ilLanguage | $lng, | ||
protected UIFactory | $ui_factory, | ||
protected DataFactory | $data_factory, | ||
protected StaticURL | $static_url | ||
) |
Definition at line 41 of file GroupingRetrieval.php.
|
protected |
Definition at line 117 of file GroupingRetrieval.php.
References $ref_id, ILIAS\Course\Grouping\Table\GroupingRetrieval\buildLinkToObject(), and null.
Referenced by ILIAS\Course\Grouping\Table\GroupingRetrieval\getRows().
|
protected |
Definition at line 105 of file GroupingRetrieval.php.
References ilObject\_exists(), ilObject\_lookupTitle(), ilObject\_lookupType(), and null.
Referenced by ILIAS\Course\Grouping\Table\GroupingRetrieval\buildLinkListing(), and ILIAS\Course\Grouping\Table\GroupingRetrieval\getRows().
ILIAS\Course\Grouping\Table\GroupingRetrieval::getAllGroupingIDs | ( | ) |
Definition at line 95 of file GroupingRetrieval.php.
References ilObjCourseGrouping\_getVisibleGroupings().
Referenced by ILIAS\Course\Grouping\Table\GroupingRetrieval\getRows(), and ILIAS\Course\Grouping\Table\GroupingRetrieval\getTotalRowCount().
ILIAS\Course\Grouping\Table\GroupingRetrieval::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 50 of file GroupingRetrieval.php.
References $id, ILIAS\UI\Component\Table\DataRowBuilder\buildDataRow(), ILIAS\Course\Grouping\Table\GroupingRetrieval\buildLinkListing(), ILIAS\Course\Grouping\Table\GroupingRetrieval\buildLinkToObject(), ILIAS\Course\Grouping\Table\GroupingHandler\COL_ASSIGNED_OBJS, ILIAS\Course\Grouping\Table\GroupingHandler\COL_DESCRIPTION, ILIAS\Course\Grouping\Table\GroupingHandler\COL_SOURCE, ILIAS\Course\Grouping\Table\GroupingHandler\COL_TITLE, ILIAS\Course\Grouping\Table\GroupingHandler\COL_UNIQUE_FIELD, ILIAS\Course\Grouping\Table\GroupingRetrieval\getAllGroupingIDs(), ILIAS\Data\Range\getLength(), ILIAS\Data\Range\getStart(), ILIAS\Repository\lng(), null, and ILIAS\Course\Grouping\Table\GroupingRetrieval\sortRecords().
ILIAS\Course\Grouping\Table\GroupingRetrieval::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 100 of file GroupingRetrieval.php.
References ILIAS\Course\Grouping\Table\GroupingRetrieval\getAllGroupingIDs().
|
protected |
Definition at line 129 of file GroupingRetrieval.php.
References Vendor\Package\$a, Vendor\Package\$b, ILIAS\Data\Order\ASC, ILIAS\Course\Grouping\Table\GroupingHandler\COL_ASSIGNED_OBJS, ILIAS\Course\Grouping\Table\GroupingHandler\COL_DESCRIPTION, ILIAS\Course\Grouping\Table\GroupingHandler\COL_SOURCE, ILIAS\Course\Grouping\Table\GroupingHandler\COL_TITLE, ILIAS\Course\Grouping\Table\GroupingHandler\COL_UNIQUE_FIELD, ILIAS\Data\Order\get(), ILIAS\Test\Questions\Presentation\getLabel, and null.
Referenced by ILIAS\Course\Grouping\Table\GroupingRetrieval\getRows().