‪TYPO3CMS  10.4
Category.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
21 
26 {
31  protected ‪$title = '';
32 
36  protected ‪$description = '';
37 
42  protected ‪$parent;
43 
49  public function ‪getTitle()
50  {
51  return ‪$this->title;
52  }
53 
59  public function ‪setTitle(‪$title)
60  {
61  $this->title = ‪$title;
62  }
63 
69  public function ‪getDescription()
70  {
71  return ‪$this->description;
72  }
73 
79  public function ‪setDescription(‪$description)
80  {
81  $this->description = ‪$description;
82  }
83 
89  public function ‪getParent()
90  {
91  if ($this->parent instanceof ‪LazyLoadingProxy) {
92  $this->parent->_loadRealInstance();
93  }
94  return ‪$this->parent;
95  }
96 
102  public function ‪setParent(\‪TYPO3\CMS\‪Extbase\Domain\Model\‪Category ‪$parent)
103  {
104  $this->parent = ‪$parent;
105  }
106 }
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:18
‪TYPO3
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:23
‪TYPO3\CMS\Extbase\Domain\Model\Category\getParent
‪TYPO3 CMS Extbase Domain Model Category null getParent()
Definition: Category.php:86
‪TYPO3\CMS\Extbase\Domain\Model\Category\getDescription
‪string getDescription()
Definition: Category.php:66
‪TYPO3\CMS\Extbase\Domain\Model\Category\setTitle
‪setTitle($title)
Definition: Category.php:56
‪TYPO3\CMS\Extbase\Domain\Model\Category\$description
‪string $description
Definition: Category.php:34
‪TYPO3\CMS\Extbase\Domain\Model\Category
Definition: Category.php:26
‪TYPO3\CMS\Extbase\Domain\Model\Category\$title
‪string $title
Definition: Category.php:30
‪TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy
Definition: LazyLoadingProxy.php:29
‪TYPO3\CMS\Extbase\Domain\Model\Category\getTitle
‪string getTitle()
Definition: Category.php:46
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileCollection.php:16
‪TYPO3\CMS\Extbase\Domain\Model\Category\setParent
‪setParent(\TYPO3\CMS\Extbase\Domain\Model\Category $parent)
Definition: Category.php:99
‪TYPO3\CMS\Extbase\Domain\Model\Category\setDescription
‪setDescription($description)
Definition: Category.php:76
‪TYPO3\CMS\Extbase\Domain\Model\Category\$parent
‪TYPO3 CMS Extbase Domain Model Category null $parent
Definition: Category.php:39