ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
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
ComponentHelper.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2016 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\UI\Implementation\Component
;
6
7
use
ILIAS\UI\Component\Signal
;
8
12
trait
ComponentHelper
13
{
17
private
$canonical_name = null;
18
25
public
function
getCanonicalName
()
26
{
27
if
($this->canonical_name === null) {
28
$this->canonical_name = $this->
getCanonicalNameByFullyQualifiedName
();
29
}
30
return
$this->canonical_name;
31
}
32
38
protected
function
getCanonicalNameByFullyQualifiedName
()
39
{
40
$cls = explode(
"\\"
, get_class($this));
41
$name
= [];
42
$cur = array_pop($cls);
43
while
($cur !==
"Component"
&& count($cls) > 0) {
44
$name
[] = preg_replace(
"%([a-z])([A-Z])%"
,
"$1 $2"
, $cur);
45
$cur = array_pop($cls);
46
}
47
return
implode(
" "
,
$name
);
48
}
49
61
79
92
105
122
135
149
164
185
217
243
ILIAS\UI\Implementation\Component
ILIAS\UI\Implementation\Component\getCanonicalNameByFullyQualifiedName
getCanonicalNameByFullyQualifiedName()
Does the calculation required for getCanonicalName.
Definition:
ComponentHelper.php:38
$name
if($format !==null) $name
Definition:
metadata.php:230
ILIAS\UI\Component\Component\getCanonicalName
getCanonicalName()
Get the canonical name of the component.
Signal
ComponentHelper
src
UI
Implementation
Component
ComponentHelper.php
Generated on Sat Apr 5 2025 21:01:47 for ILIAS by
1.8.13 (using
Doxyfile
)