ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (private readonly ilObjForum $forum, private readonly UIFactory $ui_factory, private readonly ServerRequestInterface $httpRequest, private readonly ilLanguage $lng, private readonly string $parent_cmd, private readonly ilCtrlInterface $ctrl, private readonly DataFactory $data_factory, private readonly ilObjUser $user, private readonly bool $mayEdit, private readonly ilObjForumGUI $parent_object,) | |
getRows (\ILIAS\UI\Component\Table\DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters,) | |
initRecords () | |
getComponent () | |
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... | |
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... | |
Private Member Functions | |
getRecords (Range $range, Order $order) | |
limitRecords (array $records, Range $range) | |
getColumns () | |
Private Attributes | |
array | $records = null |
Definition at line 41 of file ForumDraftsTable.php.
ILIAS\Forum\Drafts\ForumDraftsTable::__construct | ( | private readonly ilObjForum | $forum, |
private readonly UIFactory | $ui_factory, | ||
private readonly ServerRequestInterface | $httpRequest, | ||
private readonly ilLanguage | $lng, | ||
private readonly string | $parent_cmd, | ||
private readonly ilCtrlInterface | $ctrl, | ||
private readonly DataFactory | $data_factory, | ||
private readonly ilObjUser | $user, | ||
private readonly bool | $mayEdit, | ||
private readonly ilObjForumGUI | $parent_object | ||
) |
Definition at line 46 of file ForumDraftsTable.php.
|
private |
Definition at line 179 of file ForumDraftsTable.php.
References ILIAS\Repository\lng().
ILIAS\Forum\Drafts\ForumDraftsTable::getComponent | ( | ) |
Definition at line 108 of file ForumDraftsTable.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Definition at line 157 of file ForumDraftsTable.php.
References ILIAS\UI\Implementation\Component\Table\$range.
ILIAS\Forum\Drafts\ForumDraftsTable::getRows | ( | \ILIAS\UI\Component\Table\DataRowBuilder | $row_builder, |
array | $visible_column_ids, | ||
Range | $range, | ||
Order | $order, | ||
?array | $filter_data, | ||
?array | $additional_parameters | ||
) |
Definition at line 60 of file ForumDraftsTable.php.
ILIAS\Forum\Drafts\ForumDraftsTable::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 147 of file ForumDraftsTable.php.
ILIAS\Forum\Drafts\ForumDraftsTable::initRecords | ( | ) |
Definition at line 74 of file ForumDraftsTable.php.
References $url, ILIAS\Repository\ctrl(), ilForumPostDraft\getThreadDraftData(), ilObjForum\lookupForumIdByObjId(), and ILIAS\Repository\user().
|
private |
list<array{draft_id | int, draft: string, edited_on: string}> $records |
Definition at line 168 of file ForumDraftsTable.php.
References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\Data\Range\getLength(), and ILIAS\Data\Range\getStart().
|
private |
Definition at line 44 of file ForumDraftsTable.php.