ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
+
Files
File List
+
Globals
+
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
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
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
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ExampleRenderer.php
Go to the documentation of this file.
1
<?php
2
3
use
ILIAS\UI\Implementation\Component\Button\Bulky
;
4
use
ILIAS\UI\Implementation\Render\DecoratedRenderer
;
5
use
ILIAS\UI\Renderer
;
6
7
//inherit from DecoratedRender to align your renderer with other potential renders in ILIAS to allow manipulations from
8
//different sources to be chained behind each other.
9
class
ExampleRenderer
extends
DecoratedRenderer
10
{
11
//define your manipulations. This example add an "A" before every button in ILIAS
12
protected
function
manipulateRendering
($component,
Renderer
$root) : ?string
13
{
14
//select the component you want to manipulate
15
if
($component instanceof
Bulky
) {
16
//if you need the origin rendering (e.g. for append or prepend) you can access it by calling renderDefault()
17
return
"A"
. $this->
renderDefault
($component, $root);
18
}
19
20
//skip components that are not important to you with returning null
21
return
null;
22
}
23
}
ILIAS\UI\Implementation\Render\DecoratedRenderer
Definition:
DecoratedRenderer.php:25
ILIAS\UI\Renderer
An entity that renders components to a string output.
Definition:
Renderer.php:14
ILIAS\UI\Implementation\Component\Button\Bulky
Bulky Button.
Definition:
Bulky.php:14
Renderer
ExampleRenderer
Definition:
ExampleRenderer.php:9
ILIAS\UI\Implementation\Render\DecoratedRenderer\renderDefault
renderDefault($component, ?Renderer $root=null)
Renders the component by default.
Definition:
DecoratedRenderer.php:66
ExampleRenderer\manipulateRendering
manipulateRendering($component, Renderer $root)
Definition:
ExampleRenderer.php:12
DecoratedRenderer
Bulky
docs
development
code-examples
ui-exchange
00_base_classes
ExampleRenderer.php
Generated on Thu Apr 10 2025 20:00:56 for ILIAS by
1.8.13 (using
Doxyfile
)