TYPO3 CMS  TYPO3_6-2
Category.php
Go to the documentation of this file.
1 <?php
3 
22 
27  protected $title = '';
28 
32  protected $description = '';
33 
37  protected $icon = '';
38 
43  protected $parent = NULL;
44 
51  public function getTitle() {
52  return $this->title;
53  }
54 
62  public function setTitle($title) {
63  $this->title = $title;
64  }
65 
72  public function getDescription() {
73  return $this->description;
74  }
75 
83  public function setDescription($description) {
84  $this->description = $description;
85  }
86 
93  public function getIcon() {
94  return $this->icon;
95  }
96 
104  public function setIcon($icon) {
105  $this->icon = $icon;
106  }
107 
114  public function getParent() {
115  if ($this->parent instanceof \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy) {
116  $this->parent->_loadRealInstance();
117  }
118  return $this->parent;
119  }
120 
128  public function setParent(\TYPO3\CMS\Extbase\Domain\Model\Category $parent) {
129  $this->parent = $parent;
130  }
131 }
setParent(\TYPO3\CMS\Extbase\Domain\Model\Category $parent)
Definition: Category.php:128