TYPO3 CMS  TYPO3_8-7
Category.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 
23 {
28  protected $title = '';
29 
33  protected $description = '';
34 
38  protected $icon = '';
39 
44  protected $parent = null;
45 
52  public function getTitle()
53  {
54  return $this->title;
55  }
56 
63  public function setTitle($title)
64  {
65  $this->title = $title;
66  }
67 
74  public function getDescription()
75  {
76  return $this->description;
77  }
78 
85  public function setDescription($description)
86  {
87  $this->description = $description;
88  }
89 
96  public function getIcon()
97  {
99  return $this->icon;
100  }
101 
108  public function setIcon($icon)
109  {
111  $this->icon = $icon;
112  }
113 
120  public function getParent()
121  {
122  if ($this->parent instanceof \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy) {
123  $this->parent->_loadRealInstance();
124  }
125  return $this->parent;
126  }
127 
134  public function setParent(\TYPO3\CMS\Extbase\Domain\Model\Category $parent)
135  {
136  $this->parent = $parent;
137  }
138 }
setParent(\TYPO3\CMS\Extbase\Domain\Model\Category $parent)
Definition: Category.php:134