ILIAS
trunk Revision v11.0_alpha-1744-gb0451eebef4
◀ 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
Combined.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Implementation\Component\MainControls\Slate
;
22
23
use
ILIAS\UI\Component\Divider\Horizontal
;
24
use
ILIAS\UI\Component\MainControls\Slate
as
ISlate
;
25
use
ILIAS\UI\Component\Button\Bulky
as
IBulkyButton
;
26
use
ILIAS\UI\Component\Link\Bulky
as IBulkyLink;
27
use
ILIAS\UI\Component\Signal
;
28
32
class
Combined
extends
Slate
implements ISlate\Combined
33
{
34
public
const
ENTRY_ACTION_TRIGGER
=
'trigger'
;
35
39
protected
array
$contents
= [];
40
44
public
function
withAdditionalEntry
($entry):
ISlate
\
Combined
45
{
46
$classes = [
47
IBulkyButton::class,
48
IBulkyLink::class,
49
ISlate\Slate::class,
50
Horizontal::class
51
];
52
$check
= [$entry];
53
$this->checkArgListElements(
"Slate, Bulky -Button or -Link"
,
$check
, $classes);
54
55
$clone = clone $this;
56
$clone->contents[] = $entry;
57
return
$clone;
58
}
59
63
public
function
getContents
(): array
64
{
65
return
$this->contents
;
66
}
67
68
public
function
getTriggerSignal
(
string
$entry_id):
Signal
69
{
70
$signal = $this->signal_generator->create();
71
$signal->addOption(
'entry_id'
, $entry_id);
72
$signal->addOption(
'action'
, self::ENTRY_ACTION_TRIGGER);
73
return
$signal;
74
}
75
76
public
function
withMappedSubNodes
(callable
$f
):
ISlate
\
Combined
77
{
78
$clone = clone $this;
79
$new_contents = [];
80
foreach
($clone->getContents() as $k => $v) {
81
$new_contents[$k] =
$f
($k, $v);
82
}
83
$clone->contents = $new_contents;
84
return
$clone;
85
}
86
}
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\withAdditionalEntry
withAdditionalEntry($entry)
Definition:
Combined.php:44
ILIAS\UI\Component\Link\Bulky
Bulky Link - a visually enriched link that looks like a button but behaves like a link...
Definition:
Bulky.php:28
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined
Combined Slate.
Definition:
Combined.php:32
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\ENTRY_ACTION_TRIGGER
const ENTRY_ACTION_TRIGGER
Definition:
Combined.php:34
Bulky
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\withMappedSubNodes
withMappedSubNodes(callable $f)
Definition:
Combined.php:76
Horizontal
ILIAS\UI\Implementation\Component\MainControls\Slate
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
Combined.php:21
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\getContents
getContents()
Component[]
Definition:
Combined.php:63
$check
$check
Definition:
buildRTE.php:81
ILIAS\UI\Implementation\Component\MainControls\Slate\Slate
Definition:
Slate.php:34
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\getTriggerSignal
getTriggerSignal(string $entry_id)
Definition:
Combined.php:68
Signal
ILIAS\UI\Implementation\Component\MainControls\Slate\Combined\$contents
array $contents
Definition:
Combined.php:39
ILIAS\UI\Component\MainControls\Slate
Definition:
Combined.php:20
components
ILIAS
UI
src
Implementation
Component
MainControls
Slate
Combined.php
Generated on Tue Apr 8 2025 23:04:38 for ILIAS by
1.8.13 (using
Doxyfile
)