TYPO3 CMS  TYPO3_7-6
BackendModule.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 $title = '';
26 
30  protected $name = '';
31 
35  protected $icon = '';
36 
40  protected $link = '';
41 
45  protected $onClick = '';
46 
50  protected $description = '';
51 
55  protected $navigationComponentId = '';
56 
60  protected $navigationFrameScript = '';
61 
66 
70  protected $children;
71 
75  public function __construct()
76  {
77  $this->children = new \SplObjectStorage();
78  }
79 
86  public function setChildren($children)
87  {
88  $this->children = $children;
89  }
90 
96  public function getChildren()
97  {
98  return $this->children;
99  }
100 
107  public function addChild(\TYPO3\CMS\Backend\Domain\Model\Module\BackendModule $child)
108  {
109  $this->children->attach($child);
110  }
111 
118  public function setIcon($icon)
119  {
120  $this->icon = $icon;
121  }
122 
128  public function getIcon()
129  {
130  return $this->icon;
131  }
132 
139  public function setName($name)
140  {
141  $this->name = $name;
142  }
143 
149  public function getName()
150  {
151  return $this->name;
152  }
153 
160  public function setTitle($title)
161  {
162  $this->title = $title;
163  }
164 
170  public function getTitle()
171  {
172  return $this->title;
173  }
174 
181  public function setLink($link)
182  {
183  $this->link = $link;
184  }
185 
191  public function getLink()
192  {
193  return $this->link;
194  }
195 
202  public function setDescription($description)
203  {
204  $this->description = $description;
205  }
206 
212  public function getDescription()
213  {
214  return $this->description;
215  }
216 
224  {
225  $this->navigationComponentId = $navigationComponentId;
226  }
227 
233  public function getNavigationComponentId()
234  {
236  }
237 
242  {
243  $this->navigationFrameScript = $navigationFrameScript;
244  }
245 
249  public function getNavigationFrameScript()
250  {
252  }
253 
258  {
259  $this->navigationFrameScriptParameters = $navigationFrameScriptParameters;
260  }
261 
266  {
268  }
269 
276  public function setOnClick($onClick)
277  {
278  $this->onClick = $onClick;
279  }
280 
286  public function getOnClick()
287  {
288  return $this->onClick;
289  }
290 }
setNavigationFrameScriptParameters($navigationFrameScriptParameters)
addChild(\TYPO3\CMS\Backend\Domain\Model\Module\BackendModule $child)