TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class 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
+
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
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
BackendLayoutCollection.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Backend\View\BackendLayout
;
3
22
class
BackendLayoutCollection
{
23
27
protected
$identifier
;
28
32
protected
$backendLayouts
= array();
33
37
public
function
__construct
(
$identifier
) {
38
$this->
setIdentifier
(
$identifier
);
39
}
40
44
public
function
getIdentifier
() {
45
return
$this->identifier
;
46
}
47
52
public
function
setIdentifier
(
$identifier
) {
53
if
(strpos(
$identifier
,
'__'
) !== FALSE) {
54
throw
new \UnexpectedValueException(
55
'Identifier "'
.
$identifier
.
'" must not contain "__"'
,
56
1381597631
57
);
58
}
59
60
$this->identifier =
$identifier
;
61
}
62
69
public
function
add
(
BackendLayout
$backendLayout) {
70
$identifier
= $backendLayout->
getIdentifier
();
71
72
if
(strpos(
$identifier
,
'__'
) !== FALSE) {
73
throw
new \UnexpectedValueException(
74
'BackendLayout Identifier "'
.
$identifier
.
'" must not contain "__"'
,
75
1381597628
76
);
77
}
78
79
if
(isset($this->backendLayouts[
$identifier
])) {
80
throw
new \LogicException(
81
'Backend Layout '
. $identifier .
' is already defined'
,
82
1381559376
83
);
84
}
85
86
$this->backendLayouts[
$identifier
] = $backendLayout;
87
}
88
95
public
function
get
(
$identifier
) {
96
$backendLayout = NULL;
97
98
if
(isset($this->backendLayouts[
$identifier
])) {
99
$backendLayout = $this->backendLayouts[
$identifier
];
100
}
101
102
return
$backendLayout;
103
}
104
110
public
function
getAll
() {
111
return
$this->backendLayouts
;
112
}
113
114
}
TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\getIdentifier
getIdentifier()
Definition:
BackendLayout.php:83
TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection
Definition:
BackendLayoutCollection.php:22
TYPO3\CMS\Backend\View\BackendLayout\BackendLayout
Definition:
BackendLayout.php:22
TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection\__construct
__construct($identifier)
Definition:
BackendLayoutCollection.php:37
TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection\$backendLayouts
$backendLayouts
Definition:
BackendLayoutCollection.php:32
TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection\$identifier
$identifier
Definition:
BackendLayoutCollection.php:27
TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection\add
add(BackendLayout $backendLayout)
Definition:
BackendLayoutCollection.php:69
TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection\getIdentifier
getIdentifier()
Definition:
BackendLayoutCollection.php:44
TYPO3\CMS\Backend\View\BackendLayout
Definition:
BackendLayout.php:2
TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection\getAll
getAll()
Definition:
BackendLayoutCollection.php:110
TYPO3\CMS\Backend\View\BackendLayout\BackendLayoutCollection\setIdentifier
setIdentifier($identifier)
Definition:
BackendLayoutCollection.php:52
typo3
sysext
backend
Classes
View
BackendLayout
BackendLayoutCollection.php
Generated on Wed Aug 7 2019 09:52:19 for TYPO3 CMS by
1.8.13