TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
backend
Classes
View
BackendLayout
BackendLayout.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Backend\View\BackendLayout;
3
4
/*
5
* This file is part of the TYPO3 CMS project.
6
*
7
* It is free software; you can redistribute it and/or modify it under
8
* the terms of the GNU General Public License, either version 2
9
* of the License, or any later version.
10
*
11
* For the full copyright and license information, please read the
12
* LICENSE.txt file that was distributed with this source code.
13
*
14
* The TYPO3 project - inspiring people to share!
15
*/
16
20
class
BackendLayout
21
{
25
protected
$identifier
;
26
30
protected
$title
;
31
35
protected
$description
;
36
40
protected
$iconPath
;
41
45
protected
$configuration
;
46
50
protected
$data
;
51
58
public
static
function
create
(
$identifier
,
$title
,
$configuration
)
59
{
60
return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
61
BackendLayout::class,
62
$identifier
,
63
$title
,
64
$configuration
65
);
66
}
67
73
public
function
__construct
(
$identifier
,
$title
,
$configuration
)
74
{
75
$this->
setIdentifier
(
$identifier
);
76
$this->
setTitle
(
$title
);
77
$this->
setConfiguration
(
$configuration
);
78
}
79
83
public
function
getIdentifier
()
84
{
85
return
$this->identifier
;
86
}
87
92
public
function
setIdentifier
(
$identifier
)
93
{
94
if
(strpos(
$identifier
,
'__'
) !==
false
) {
95
throw
new \UnexpectedValueException(
96
'Identifier "'
.
$identifier
.
'" must not contain "__"'
,
97
1381597630
98
);
99
}
100
101
$this->identifier =
$identifier
;
102
}
103
107
public
function
getTitle
()
108
{
109
return
$this->title
;
110
}
111
115
public
function
setTitle
(
$title
)
116
{
117
$this->title =
$title
;
118
}
119
123
public
function
getDescription
()
124
{
125
return
$this->description
;
126
}
127
131
public
function
setDescription
(
$description
)
132
{
133
$this->description =
$description
;
134
}
135
139
public
function
getIconPath
()
140
{
141
return
$this->iconPath
;
142
}
143
147
public
function
setIconPath
(
$iconPath
)
148
{
149
$this->iconPath =
$iconPath
;
150
}
151
155
public
function
getConfiguration
()
156
{
157
return
$this->configuration
;
158
}
159
163
public
function
setConfiguration
(
$configuration
)
164
{
165
$this->configuration =
$configuration
;
166
}
167
171
public
function
getData
()
172
{
173
return
$this->data
;
174
}
175
179
public
function
setData
(array
$data
)
180
{
181
$this->data =
$data
;
182
}
183
}
Generated on Wed Nov 11 2015 01:51:50 for TYPO3 by
1.8.3