ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct (private readonly ilObjForum $forum, private readonly ilForumProperties $obj_properties, private readonly bool $has_general_lp_access, private readonly bool $has_rbac_or_position_access, private readonly ilObjUser $actor, private readonly UIFactory $ui_factory, private readonly HttpRequest $request, private readonly ilLanguage $lng,) | |
getComponent () | |
getRows (\ILIAS\UI\Component\Table\DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters,) | |
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 | |
getColumns () | |
initRecords () | |
sortedRecords (array $records, Order $order) | |
getRecords (Range $range, Order $order) | |
limitRecords (array $records, Range $range) | |
getProgressStatus (int $user_id) | |
Private Attributes | |
bool | $has_active_lp = false |
array | $completed = [] |
array | $failed = [] |
array | $in_progress = [] |
array | $records = null |
readonly ilLPStatusIcons | $icons |
Definition at line 39 of file ForumStatisticsTable.php.
ILIAS\Forum\Statistics\ForumStatisticsTable::__construct | ( | private readonly ilObjForum | $forum, |
private readonly ilForumProperties | $obj_properties, | ||
private readonly bool | $has_general_lp_access, | ||
private readonly bool | $has_rbac_or_position_access, | ||
private readonly ilObjUser | $actor, | ||
private readonly UIFactory | $ui_factory, | ||
private readonly HttpRequest | $request, | ||
private readonly ilLanguage | $lng | ||
) |
Definition at line 54 of file ForumStatisticsTable.php.
References ilLPStatusWrapper\_lookupCompletedForObject(), ilLPStatusWrapper\_lookupFailedForObject(), ilLPStatusWrapper\_lookupInProgressForObject(), ilLPStatusIcons\getInstance(), ilObjectLP\getInstance(), ilLPStatusIcons\ICON_VARIANT_LONG, and ILIAS\Repository\lng().
|
private |
Definition at line 95 of file ForumStatisticsTable.php.
References ILIAS\Repository\lng().
Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\getComponent().
ILIAS\Forum\Statistics\ForumStatisticsTable::getComponent | ( | ) |
Definition at line 79 of file ForumStatisticsTable.php.
References ILIAS\Forum\Statistics\ForumStatisticsTable\getColumns(), and ILIAS\Repository\lng().
|
private |
Definition at line 205 of file ForumStatisticsTable.php.
References $user_id, ilLPStatus\LP_STATUS_COMPLETED_NUM, ilLPStatus\LP_STATUS_FAILED_NUM, ilLPStatus\LP_STATUS_IN_PROGRESS_NUM, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED_NUM.
Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\initRecords().
Definition at line 166 of file ForumStatisticsTable.php.
References ILIAS\Forum\Statistics\ForumStatisticsTable\initRecords(), ILIAS\Forum\Statistics\ForumStatisticsTable\limitRecords(), and ILIAS\Forum\Statistics\ForumStatisticsTable\sortedRecords().
Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\getRows().
ILIAS\Forum\Statistics\ForumStatisticsTable::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 183 of file ForumStatisticsTable.php.
References ILIAS\Forum\Statistics\ForumStatisticsTable\getRecords().
ILIAS\Forum\Statistics\ForumStatisticsTable::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 198 of file ForumStatisticsTable.php.
References ILIAS\Forum\Statistics\ForumStatisticsTable\initRecords().
|
private |
Definition at line 120 of file ForumStatisticsTable.php.
References $data, ILIAS\Forum\Statistics\ForumStatisticsTable\getProgressStatus(), and null.
Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\getRecords(), and ILIAS\Forum\Statistics\ForumStatisticsTable\getTotalRowCount().
|
private |
list<array<string,mixed>> | $records |
Definition at line 178 of file ForumStatisticsTable.php.
References ILIAS\Data\Range\getLength(), and ILIAS\Data\Range\getStart().
Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\getRecords().
|
private |
list<array<string,mixed>> | $records |
Definition at line 144 of file ForumStatisticsTable.php.
References ILIAS\Forum\Statistics\ForumStatisticsTable\$records, ILIAS\Data\Order\join(), and ilStr\strCmp().
Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\getRecords().
|
private |
Definition at line 43 of file ForumStatisticsTable.php.
|
private |
Definition at line 45 of file ForumStatisticsTable.php.
|
private |
Definition at line 41 of file ForumStatisticsTable.php.
|
private |
Definition at line 52 of file ForumStatisticsTable.php.
|
private |
Definition at line 47 of file ForumStatisticsTable.php.
|
private |
Definition at line 51 of file ForumStatisticsTable.php.
Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\sortedRecords().