19 declare(strict_types=1);
57 ViewControl\
Factory $view_control_factory,
68 $view_control_factory,
69 $view_control_container_factory,
81 return $this->data_retrieval;
110 return $this->data_row_builder
121 ?array $additional_parameters = []
124 $total_count = $this->
getDataRetrieval()->getTotalRowCount($filter_data, $additional_parameters);
129 $data = $view_controls->getData();
132 $order =
$data[self::VIEWCONTROL_KEY_ORDERING];
133 $order = ($order instanceof
Order) ? $order : null;
143 ->withSelectedOptionalColumns(
$data[self::VIEWCONTROL_KEY_FIELDSELECTION] ?? null);
159 $view_controls = array_filter($view_controls);
160 return $this->view_control_container_factory->standard($view_controls);
getAdditionalParameters()
getViewControlOrdering(int|null $total_count)
array $additional_parameters
withFilter(?array $filter)
ServerRequestInterface $request
trait TableViewControlPagination
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
const VIEWCONTROL_KEY_FIELDSELECTION
const VIEWCONTROL_KEY_PAGINATION
Both the subject and the direction need to be specified when expressing an order. ...
withAdditionalParameters(?array $additional_parameters)
croppedTo(int $max)
This will create a range that is guaranteed to not exceed $max.
initViewControlpagination()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const VIEWCONTROL_KEY_ORDERING
getViewControls(?int $total_count=null)
getViewControlPagination(?int $total_count=null)
applyValuesToViewcontrols(ViewControlContainer\ViewControl $view_controls, ServerRequestInterface $request)
withMultiActionsPresent(bool $flag)
__construct(SignalGeneratorInterface $signal_generator, ViewControl\Factory $view_control_factory, ViewControlContainer\Factory $view_control_container_factory, protected DataFactory $data_factory, protected DataRowBuilder $data_row_builder, string $title, array $columns, protected T\DataRetrieval $data_retrieval, \ArrayAccess $storage)
getViewControlFieldSelection()
applyViewControls(array $filter_data, ?array $additional_parameters=[])
__construct(Container $dic, ilPlugin $plugin)
trait TableViewControlOrdering
initViewControlFieldSelection(array $columns)
A simple class to express a naive range of whole positive numbers.
trait TableViewControlFieldSelection
initViewControlOrdering()