|
ILIAS
trunk Revision v12.0_alpha-1540-g00f839d5fa1
|
Inheritance diagram for ILIAS\File\Versions\Table\DataRetrieval:
Collaboration diagram for ILIAS\File\Versions\Table\DataRetrieval:Public Member Functions | |
| __construct (private readonly \ilObjFile $file, private readonly int $current_version, private readonly bool $current_version_is_draft, private readonly int $amount_of_versions, private readonly \ilCtrlInterface $ctrl, private readonly \ilFileVersionsGUI $parent_gui, private readonly \ilLanguage $lng, private readonly UIFactory $ui_factory) | |
| getRows (I\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... | |
Data Fields | |
| const string | ACTION_DELETE = 'delete' |
| const string | ACTION_ROLLBACK = 'rollback' |
| const string | ACTION_PUBLISH = 'publish' |
| const string | ACTION_UNPUBLISH = 'unpublish' |
Private Member Functions | |
| getRecords (Order $order) | |
| mapRecord (array $record) | |
Definition at line 29 of file DataRetrieval.php.
| ILIAS\File\Versions\Table\DataRetrieval::__construct | ( | private readonly \ilObjFile | $file, |
| private readonly int | $current_version, | ||
| private readonly bool | $current_version_is_draft, | ||
| private readonly int | $amount_of_versions, | ||
| private readonly \ilCtrlInterface | $ctrl, | ||
| private readonly \ilFileVersionsGUI | $parent_gui, | ||
| private readonly \ilLanguage | $lng, | ||
| private readonly UIFactory | $ui_factory | ||
| ) |
Definition at line 36 of file DataRetrieval.php.
|
private |
Definition at line 94 of file DataRetrieval.php.
References Vendor\Package\$a, Vendor\Package\$b, $version, and ILIAS\Data\Order\join().
Here is the call graph for this function:| ILIAS\File\Versions\Table\DataRetrieval::getRows | ( | I\DataRowBuilder | $row_builder, |
| array | $visible_column_ids, | ||
| Range | $range, | ||
| Order | $order, | ||
| mixed | $additional_viewcontrol_data, | ||
| mixed | $filter_data, | ||
| mixed | $additional_parameters | ||
| ) |
Definition at line 48 of file DataRetrieval.php.
References ILIAS\Repository\int(), and ILIAS\File\Versions\Table\DataRetrieval\mapRecord().
Here is the call graph for this function:| ILIAS\File\Versions\Table\DataRetrieval::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 83 of file DataRetrieval.php.
|
private |
| array<string,mixed> | $record |
Definition at line 117 of file DataRetrieval.php.
References ilObjUser\_lookupName(), ilFileVersionsGUI\CMD_DOWNLOAD_VERSION, ILIAS\Repository\ctrl(), ilFileVersionsGUI\HIST_ID, ILIAS\Repository\int(), and ILIAS\Repository\lng().
Referenced by ILIAS\File\Versions\Table\DataRetrieval\getRows().
Here is the call graph for this function:
Here is the caller graph for this function:| const string ILIAS\File\Versions\Table\DataRetrieval::ACTION_DELETE = 'delete' |
Definition at line 31 of file DataRetrieval.php.
Referenced by ILIAS\File\Versions\Table\Table\initActions().
| const string ILIAS\File\Versions\Table\DataRetrieval::ACTION_PUBLISH = 'publish' |
Definition at line 33 of file DataRetrieval.php.
Referenced by ILIAS\File\Versions\Table\Table\initActions().
| const string ILIAS\File\Versions\Table\DataRetrieval::ACTION_ROLLBACK = 'rollback' |
Definition at line 32 of file DataRetrieval.php.
Referenced by ILIAS\File\Versions\Table\Table\initActions().
| const string ILIAS\File\Versions\Table\DataRetrieval::ACTION_UNPUBLISH = 'unpublish' |
Definition at line 34 of file DataRetrieval.php.
Referenced by ILIAS\File\Versions\Table\Table\initActions().