ILIAS
trunk Revision v11.0_alpha-1769-g99a433fe2dc
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
Pagination.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Component\ViewControl
;
22
23
use
ILIAS\UI\Component\Component
;
24
use
ILIAS\UI\Component\Signal
;
25
use
ILIAS\UI\Component\JavaScriptBindable
;
26
use
ILIAS\UI\Component\Triggerer
;
27
use
ILIAS\Data\Range
;
28
32
interface
Pagination
extends
Component
,
JavaScriptBindable
,
Triggerer
33
{
34
public
const
DEFAULT_DROPDOWN_LABEL
=
'pagination_label_x_of_y'
;
35
41
public
function
withTargetURL
(
string
$url
,
string
$parameter_name):
Pagination
;
42
46
public
function
getTargetURL
(): ?string;
47
51
public
function
getParameterName
(): string;
52
57
public
function
withTotalEntries
(
int
$total):
Pagination
;
58
62
public
function
withPageSize
(
int
$size):
Pagination
;
63
67
public
function
getPageSize
():
int
;
68
72
public
function
withCurrentPage
(
int
$page):
Pagination
;
73
77
public
function
getCurrentPage
():
int
;
78
82
public
function
withOnSelect
(
Signal
$signal):
Pagination
;
83
87
public
function
getNumberOfPages
():
int
;
88
92
public
function
withMaxPaginationButtons
(
int
$amount):
Pagination
;
93
98
public
function
getMaxPaginationButtons
(): ?
int
;
99
104
public
function
withDropdownAt
(
int
$amount):
Pagination
;
105
110
public
function
getDropdownAt
(): ?
int
;
111
119
public
function
withDropdownLabel
(
string
$template):
Pagination
;
120
124
public
function
getDropdownLabel
(): string;
125
130
public
function
getDefaultDropdownLabel
(): string;
131
135
public
function
getRange
(): ?
Range
;
136
}
ILIAS\UI\Component\ViewControl\Pagination\getDropdownAt
getDropdownAt()
Below this value, the options are directly rendered as shy-buttons, on and above this value a dropdow...
ILIAS\UI\Component\ViewControl\Pagination\withCurrentPage
withCurrentPage(int $page)
Set the selected page.
JavaScriptBindable
ILIAS\UI\Component\ViewControl\Pagination\DEFAULT_DROPDOWN_LABEL
const DEFAULT_DROPDOWN_LABEL
Definition:
Pagination.php:34
ILIAS\UI\Component\ViewControl\Pagination\getRange
getRange()
Get the current number of entries on this page.
ILIAS\UI\Component\ViewControl\Pagination\withMaxPaginationButtons
withMaxPaginationButtons(int $amount)
Layout; define, how many page-options are shown (max).
ILIAS\UI\Component\ViewControl\Pagination\withTotalEntries
withTotalEntries(int $total)
Initialize with the total amount of entries of the controlled data-list.
ILIAS\UI\Component\ViewControl\Pagination\getMaxPaginationButtons
getMaxPaginationButtons()
Get the maximum amount of page-entries (not records per page!) to be shown.
Triggerer
ILIAS\UI\Component
ILIAS\UI\Implementation\Component\JavaScriptBindable
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
Definition:
JavaScriptBindable.php:32
Component
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\UI\Component\ViewControl\Pagination\getTargetURL
getTargetURL()
Get the url this instance should trigger.
ILIAS\UI\Component\ViewControl\Pagination\withPageSize
withPageSize(int $size)
Set the amount of entries per page.
ILIAS\UI\Component\ViewControl\Pagination\getCurrentPage
getCurrentPage()
Get the currently selected page.
$url
$url
Definition:
shib_logout.php:66
ILIAS\UI\Component\ViewControl
Definition:
Factory.php:21
ILIAS\UI\Component\ViewControl\Pagination\getPageSize
getPageSize()
Get the number of entries per page.
ILIAS\UI\Implementation\Component\Triggerer
trait Triggerer
Definition:
Triggerer.php:36
ILIAS\UI\Component\ViewControl\Pagination\withDropdownAt
withDropdownAt(int $amount)
Layout; when number of page-entries reaches $amount, the options will be rendered as dropdown...
ILIAS\UI\Component\ViewControl\Pagination\getDefaultDropdownLabel
getDefaultDropdownLabel()
Get the default label (for comparison, mainly) - the default label will be translated, a custom label will not.
ILIAS\UI\Component\ViewControl\Pagination
This describes a Pagination Control.
Definition:
Pagination.php:32
Range
ILIAS\UI\Component\ViewControl\Pagination\getNumberOfPages
getNumberOfPages()
Calculate the total number of pages.
ILIAS\UI\Component\ViewControl\Pagination\withTargetURL
withTargetURL(string $url, string $parameter_name)
Get a Pagination with this target-url.
ILIAS\UI\Component\ViewControl\Pagination\getDropdownLabel
getDropdownLabel()
Get the template for the label of the dropdown.
ILIAS\UI\Component\ViewControl\Pagination\withOnSelect
withOnSelect(Signal $signal)
Register a signal with the control.
ILIAS\UI\Component\ViewControl\Pagination\getParameterName
getParameterName()
Get the parameter this instance uses.
ILIAS\Data\Range
A simple class to express a naive range of whole positive numbers.
Definition:
Range.php:28
Signal
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\UI\Component\ViewControl\Pagination\withDropdownLabel
withDropdownLabel(string $template)
Layout; set the label for dropdown.
components
ILIAS
UI
src
Component
ViewControl
Pagination.php
Generated on Sun Apr 13 2025 23:04:10 for ILIAS by
1.8.13 (using
Doxyfile
)