ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
base.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Input\ViewControl\Group
;
6
7
use
ILIAS\Data\Factory
as
DataFactory
;
8
use
ILIAS\Data\Order
;
9
use
ILIAS\UI\Implementation\Component\Input\ViewControl\Pagination
;
10
11
function
base
(): string
12
{
13
global
$DIC
;
14
$f
= $DIC->ui()->factory();
15
$r
= $DIC->ui()->renderer();
16
$d
=
new
DataFactory
();
17
18
$pagination =
$f
19
->input()
20
->viewControl()
21
->pagination()
22
->withTotalCount(932)
23
->withValue([
Pagination::FNAME_OFFSET
=> 31,
Pagination::FNAME_LIMIT
=> 10]);
24
25
$sortation =
$f
->input()->viewControl()->sortation([
26
'Field 1, ascending'
=>
$d
->order(
'field1'
,
Order::ASC
),
27
'Field 1, descending'
=>
$d
->order(
'field1'
,
Order::DESC
),
28
'Field 2, descending'
=>
$d
->order(
'field2'
,
Order::DESC
),
29
]);
30
31
$group =
$f
->input()->viewControl()->group([$pagination, $sortation]);
32
33
// view this in a ViewControlContainer with active request
34
$vc_container =
$f
->input()->container()->viewControl()->standard([$group])->withRequest(
35
$DIC->http()->request()
36
);
37
38
return
$r
->render([
39
$f
->legacy(
'<pre>'
. print_r($vc_container->getData(),
true
) .
'</pre>'
),
40
$vc_container
41
]);
42
}
Order
ILIAS\UI\examples\Input\ViewControl\Group\base
base()
Definition:
base.php:11
ILIAS\Data\Order\ASC
const ASC
Definition:
Order.php:14
$DIC
global $DIC
Definition:
feed.php:28
Vendor\Package\$d
$d
Definition:
example_cleaned.php:49
ILIAS\UI\examples\Input\ViewControl\Group
Definition:
base.php:5
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
Factory
Pagination
ILIAS\UI\Implementation\Component\Input\ViewControl\Pagination\FNAME_OFFSET
const FNAME_OFFSET
Definition:
Pagination.php:40
ILIAS\UI\Implementation\Component\Input\ViewControl\Pagination\FNAME_LIMIT
const FNAME_LIMIT
Definition:
Pagination.php:41
ILIAS\Data\Order\DESC
const DESC
Definition:
Order.php:15
$r
$r
Definition:
shib_logout.php:140
src
UI
examples
Input
ViewControl
Group
base.php
Generated on Wed Sep 10 2025 14:12:10 for ILIAS by
1.8.13 (using
Doxyfile
)