|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ILIAS\Forum\Drafts\ForumDraftsTable:
Collaboration diagram for ILIAS\Forum\Drafts\ForumDraftsTable: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, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters,) | |
| initRecords () | |
| getComponent () | |
| getTotalRowCount (mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters) | |
| Mainly for the purpose of pagination-support, it is important to know about the total number of records available. More... | |
Public Member Functions inherited from ILIAS\UI\Component\Table\DataRetrieval | |
| getRows (DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters) | |
| This is called by the table to retrieve rows; map data-records to rows using the $row_builder e.g. More... | |
| getTotalRowCount (mixed $additional_viewcontrol_data, mixed $filter_data, mixed $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 183 of file ForumDraftsTable.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\Forum\Drafts\ForumDraftsTable::getComponent | ( | ) |
Definition at line 109 of file ForumDraftsTable.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Here is the call graph for this function:Definition at line 161 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, | ||
| mixed | $additional_viewcontrol_data, | ||
| mixed | $filter_data, | ||
| mixed | $additional_parameters | ||
| ) |
Definition at line 60 of file ForumDraftsTable.php.
| ILIAS\Forum\Drafts\ForumDraftsTable::getTotalRowCount | ( | mixed | $additional_viewcontrol_data, |
| mixed | $filter_data, | ||
| mixed | $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 148 of file ForumDraftsTable.php.
| ILIAS\Forum\Drafts\ForumDraftsTable::initRecords | ( | ) |
Definition at line 75 of file ForumDraftsTable.php.
References $url, ILIAS\Repository\ctrl(), ilForumPostDraft\getThreadDraftData(), ilObjForum\lookupForumIdByObjId(), and ILIAS\Repository\user().
Here is the call graph for this function:
|
private |
| list<array{draft_id | int, draft: string, edited_on: string}> $records |
Definition at line 172 of file ForumDraftsTable.php.
References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\Data\Range\getLength(), and ILIAS\Data\Range\getStart().
Here is the call graph for this function:
|
private |
Definition at line 44 of file ForumDraftsTable.php.