‪TYPO3CMS  9.5
BackendLayout.php
Go to the documentation of this file.
1 <?php
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 
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  self::class,
63  ‪$title,
65  );
66  }
67 
74  {
76  $this->‪setTitle(‪$title);
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  {
110  }
111 
115  public function ‪setTitle(‪$title)
116  {
117  $this->title = ‪$title;
118  }
119 
123  public function ‪getDescription()
124  {
126  }
127 
131  public function ‪setDescription(‪$description)
132  {
133  $this->description = ‪$description;
134  }
135 
139  public function ‪getIconPath()
140  {
142  }
143 
147  public function ‪setIconPath(‪$iconPath)
148  {
149  $this->iconPath = ‪$iconPath;
150  }
151 
155  public function ‪getConfiguration()
156  {
158  }
159 
163  public function ‪setConfiguration(‪$configuration)
164  {
165  $this->configuration = ‪$configuration;
166  }
167 
171  public function ‪getData()
172  {
174  }
175 
179  public function ‪setData(array ‪$data)
180  {
181  $this->data = ‪$data;
182  }
183 }
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\$data
‪array $data
Definition: BackendLayout.php:44
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\getIdentifier
‪string getIdentifier()
Definition: BackendLayout.php:77
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\getIconPath
‪string getIconPath()
Definition: BackendLayout.php:133
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\$iconPath
‪string $iconPath
Definition: BackendLayout.php:36
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\setDescription
‪setDescription($description)
Definition: BackendLayout.php:125
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\$configuration
‪string $configuration
Definition: BackendLayout.php:40
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\getData
‪array getData()
Definition: BackendLayout.php:165
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\setData
‪setData(array $data)
Definition: BackendLayout.php:173
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\getDescription
‪string getDescription()
Definition: BackendLayout.php:117
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\__construct
‪__construct($identifier, $title, $configuration)
Definition: BackendLayout.php:67
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\create
‪static BackendLayout create($identifier, $title, $configuration)
Definition: BackendLayout.php:52
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\getConfiguration
‪string getConfiguration()
Definition: BackendLayout.php:149
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\setIconPath
‪setIconPath($iconPath)
Definition: BackendLayout.php:141
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\setConfiguration
‪setConfiguration($configuration)
Definition: BackendLayout.php:157
‪TYPO3\CMS\Backend\View\BackendLayout
Definition: BackendLayout.php:2
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\setIdentifier
‪setIdentifier($identifier)
Definition: BackendLayout.php:86
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\$identifier
‪string $identifier
Definition: BackendLayout.php:24
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout
Definition: BackendLayout.php:21
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\$description
‪string $description
Definition: BackendLayout.php:32
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\getTitle
‪string getTitle()
Definition: BackendLayout.php:101
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\setTitle
‪setTitle($title)
Definition: BackendLayout.php:109
‪TYPO3\CMS\Backend\View\BackendLayout\BackendLayout\$title
‪string $title
Definition: BackendLayout.php:28