TYPO3 CMS  TYPO3_6-2
BackendLayout.php
Go to the documentation of this file.
1 <?php
3 
23 
27  protected $identifier;
28 
32  protected $title;
33 
37  protected $description;
38 
42  protected $iconPath;
43 
47  protected $configuration;
48 
52  protected $data;
53 
60  static public function create($identifier, $title, $configuration) {
61  return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
62  'TYPO3\\CMS\\Backend\\View\\BackendLayout\\BackendLayout',
64  $title,
66  );
67  }
68 
75  $this->setIdentifier($identifier);
76  $this->setTitle($title);
78  }
79 
83  public function getIdentifier() {
84  return $this->identifier;
85  }
86 
91  public function setIdentifier($identifier) {
92  if (strpos($identifier, '__') !== FALSE) {
93  throw new \UnexpectedValueException(
94  'Identifier "' . $identifier . '" must not contain "__"',
95  1381597630
96  );
97  }
98 
99  $this->identifier = $identifier;
100  }
101 
105  public function getTitle() {
106  return $this->title;
107  }
108 
112  public function setTitle($title) {
113  $this->title = $title;
114  }
115 
119  public function getDescription() {
120  return $this->description;
121  }
122 
126  public function setDescription($description) {
127  $this->description = $description;
128  }
129 
133  public function getIconPath() {
134  return $this->iconPath;
135  }
136 
140  public function setIconPath($iconPath) {
141  $this->iconPath = $iconPath;
142  }
143 
147  public function getConfiguration() {
148  return $this->configuration;
149  }
150 
154  public function setConfiguration($configuration) {
155  $this->configuration = $configuration;
156  }
157 
161  public function getData() {
162  return $this->data;
163  }
164 
168  public function setData(array $data) {
169  $this->data = $data;
170  }
171 
172 }
static create($identifier, $title, $configuration)
__construct($identifier, $title, $configuration)