TYPO3 CMS  TYPO3_8-7
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 
85  public function setChildren($children)
86  {
87  $this->children = $children;
88  }
89 
95  public function getChildren()
96  {
97  return $this->children;
98  }
99 
105  public function addChild(\TYPO3\CMS\Backend\Domain\Model\Module\BackendModule $child)
106  {
107  $this->children->attach($child);
108  }
109 
115  public function setIcon($icon)
116  {
117  $this->icon = $icon;
118  }
119 
125  public function getIcon()
126  {
127  return $this->icon;
128  }
129 
135  public function setName($name)
136  {
137  $this->name = $name;
138  }
139 
145  public function getName()
146  {
147  return $this->name;
148  }
149 
155  public function setTitle($title)
156  {
157  $this->title = $title;
158  }
159 
165  public function getTitle()
166  {
167  return $this->title;
168  }
169 
175  public function setLink($link)
176  {
177  $this->link = $link;
178  }
179 
185  public function getLink()
186  {
187  return $this->link;
188  }
189 
195  public function setDescription($description)
196  {
197  $this->description = $description;
198  }
199 
205  public function getDescription()
206  {
207  return $this->description;
208  }
209 
216  {
217  $this->navigationComponentId = $navigationComponentId;
218  }
219 
225  public function getNavigationComponentId()
226  {
228  }
229 
234  {
235  $this->navigationFrameScript = $navigationFrameScript;
236  }
237 
241  public function getNavigationFrameScript()
242  {
244  }
245 
250  {
251  $this->navigationFrameScriptParameters = $navigationFrameScriptParameters;
252  }
253 
258  {
260  }
261 
267  public function setOnClick($onClick)
268  {
269  $this->onClick = $onClick;
270  }
271 
277  public function getOnClick()
278  {
279  return $this->onClick;
280  }
281 }
setNavigationFrameScriptParameters($navigationFrameScriptParameters)
addChild(\TYPO3\CMS\Backend\Domain\Model\Module\BackendModule $child)