‪TYPO3CMS  9.5
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 
18 
23 {
28  protected ‪$title = '';
29 
33  protected ‪$description = '';
34 
39  protected ‪$parent;
40 
46  public function ‪getTitle()
47  {
48  return ‪$this->title;
49  }
50 
56  public function ‪setTitle(‪$title)
57  {
58  $this->title = ‪$title;
59  }
60 
66  public function ‪getDescription()
67  {
68  return ‪$this->description;
69  }
70 
76  public function ‪setDescription(‪$description)
77  {
78  $this->description = ‪$description;
79  }
80 
86  public function ‪getParent()
87  {
88  if ($this->parent instanceof \‪TYPO3\CMS\‪Extbase\Persistence\Generic\LazyLoadingProxy) {
89  $this->parent->_loadRealInstance();
90  }
91  return ‪$this->parent;
92  }
93 
99  public function ‪setParent(\‪TYPO3\CMS\‪Extbase\Domain\Model\‪Category ‪$parent)
100  {
101  $this->parent = ‪$parent;
102  }
103 }
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3\CMS\Extbase\Domain\Model\Category\getParent
‪TYPO3 CMS Extbase Domain Model Category null getParent()
Definition: Category.php:83
‪TYPO3\CMS\Extbase\Domain\Model\Category\getDescription
‪string getDescription()
Definition: Category.php:63
‪TYPO3\CMS\Extbase\Domain\Model\Category\setTitle
‪setTitle($title)
Definition: Category.php:53
‪TYPO3\CMS\Extbase\Domain\Model\Category\$description
‪string $description
Definition: Category.php:31
‪TYPO3\CMS\Extbase\Domain\Model\Category
Definition: Category.php:23
‪TYPO3\CMS\Extbase\Domain\Model\Category\$title
‪string $title
Definition: Category.php:27
‪TYPO3\CMS\Extbase\Domain\Model\Category\getTitle
‪string getTitle()
Definition: Category.php:43
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileCollection.php:2
‪TYPO3\CMS\Extbase\Domain\Model\Category\setParent
‪setParent(\TYPO3\CMS\Extbase\Domain\Model\Category $parent)
Definition: Category.php:96
‪TYPO3\CMS\Extbase\Domain\Model\Category\setDescription
‪setDescription($description)
Definition: Category.php:73
‪TYPO3\CMS\Extbase\Domain\Model\Category\$parent
‪TYPO3 CMS Extbase Domain Model Category null $parent
Definition: Category.php:36