|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Inheritance diagram for ILIAS\Forum\Statistics\ForumStatisticsTable:
Collaboration diagram for ILIAS\Forum\Statistics\ForumStatisticsTable: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, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters,) | |
| 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 | |
| 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(), ilObjectLP\getInstance(), ilLPStatusIcons\getInstance(), ilLPStatusIcons\ICON_VARIANT_LONG, and ILIAS\Repository\lng().
Here is the call graph for this function:
|
private |
Definition at line 95 of file ForumStatisticsTable.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:| ILIAS\Forum\Statistics\ForumStatisticsTable::getComponent | ( | ) |
Definition at line 79 of file ForumStatisticsTable.php.
References ILIAS\Repository\lng().
Here is the call graph for this function:
|
private |
Definition at line 209 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().
Here is the caller graph for this function:Definition at line 166 of file ForumStatisticsTable.php.
References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\Forum\Statistics\ForumStatisticsTable\initRecords(), ILIAS\Forum\Statistics\ForumStatisticsTable\limitRecords(), and ILIAS\Forum\Statistics\ForumStatisticsTable\sortedRecords().
Here is the call graph for this function:| ILIAS\Forum\Statistics\ForumStatisticsTable::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 183 of file ForumStatisticsTable.php.
| ILIAS\Forum\Statistics\ForumStatisticsTable::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 199 of file ForumStatisticsTable.php.
|
private |
Definition at line 120 of file ForumStatisticsTable.php.
References $counter, $data, and ILIAS\Forum\Statistics\ForumStatisticsTable\getProgressStatus().
Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\getRecords().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| list<array<string,mixed>> | $records |
Definition at line 178 of file ForumStatisticsTable.php.
References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\Forum\Statistics\ForumStatisticsTable\$records, ILIAS\Data\Range\getLength(), and ILIAS\Data\Range\getStart().
Referenced by ILIAS\Forum\Statistics\ForumStatisticsTable\getRecords().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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\limitRecords(), and ILIAS\Forum\Statistics\ForumStatisticsTable\sortedRecords().