‪TYPO3CMS  10.4
TYPO3\CMS\Extbase\Domain\Model\Category Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Domain\Model\Category:
TYPO3\CMS\Extbase\DomainObject\AbstractEntity TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface

Public Member Functions

string getTitle ()
 
 setTitle ($title)
 
string getDescription ()
 
 setDescription ($description)
 
TYPO3 CMS Extbase Domain Model Category null getParent ()
 
 setParent (\TYPO3\CMS\Extbase\Domain\Model\Category $parent)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
int null getUid ()
 
 setPid (int $pid)
 
int null getPid ()
 
bool _setProperty (string $propertyName, $propertyValue)
 
mixed _getProperty (string $propertyName)
 
array _getProperties ()
 
bool _hasProperty ($propertyName)
 
bool _isNew ()
 
 _memorizeCleanState ($propertyName=null)
 
 _memorizePropertyCleanState ($propertyName)
 
array _getCleanProperties ()
 
mixed _getCleanProperty (string $propertyName)
 
bool _isDirty ($propertyName=null)
 
bool _isClone ()
 
 _setClone ($clone)
 
 __clone ()
 
string __toString ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface
 _memorizeCleanState ()
 
bool _isDirty ()
 

Protected Attributes

string $title = ''
 
string $description = ''
 
TYPO3 CMS Extbase Domain Model Category null $parent
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
int $uid
 
int $_localizedUid
 
int $_languageUid
 
int $_versionedUid
 
int $pid
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
bool isPropertyDirty ($previousValue, $currentValue)
 

Detailed Description

This model represents a category (for anything).

Definition at line 25 of file Category.php.

Member Function Documentation

◆ getDescription()

string TYPO3\CMS\Extbase\Domain\Model\Category::getDescription ( )

Gets the description.

Returns
‪string the description, might be empty

Definition at line 66 of file Category.php.

References TYPO3\CMS\Extbase\Domain\Model\Category\$description.

◆ getParent()

TYPO3 CMS Extbase Domain Model Category null TYPO3\CMS\Extbase\Domain\Model\Category::getParent ( )

Gets the parent category.

Returns
‪\TYPO3\CMS\Extbase\Domain\Model\Category|null the parent category

Definition at line 86 of file Category.php.

References TYPO3\CMS\Extbase\Domain\Model\Category\$parent.

◆ getTitle()

string TYPO3\CMS\Extbase\Domain\Model\Category::getTitle ( )

Gets the title.

Returns
‪string the title, might be empty

Definition at line 46 of file Category.php.

References TYPO3\CMS\Extbase\Domain\Model\Category\$title.

◆ setDescription()

TYPO3\CMS\Extbase\Domain\Model\Category::setDescription (   $description)

Sets the description.

Parameters
string$description‪the description to set, may be empty

Definition at line 76 of file Category.php.

References TYPO3\CMS\Extbase\Domain\Model\Category\$description.

◆ setParent()

TYPO3\CMS\Extbase\Domain\Model\Category::setParent ( \TYPO3\CMS\Extbase\Domain\Model\Category  $parent)

Sets the parent category.

Parameters
\TYPO3\CMS\Extbase\Domain\Model\Category$parent‪the parent category

Definition at line 99 of file Category.php.

References TYPO3\CMS\Extbase\Domain\Model\Category\$parent.

◆ setTitle()

TYPO3\CMS\Extbase\Domain\Model\Category::setTitle (   $title)

Sets the title.

Parameters
string$title‪the title to set, may be empty

Definition at line 56 of file Category.php.

References TYPO3\CMS\Extbase\Domain\Model\Category\$title.

Member Data Documentation

◆ $description

string TYPO3\CMS\Extbase\Domain\Model\Category::$description = ''
protected

◆ $parent

TYPO3 CMS Extbase Domain Model Category null TYPO3\CMS\Extbase\Domain\Model\Category::$parent
protected

◆ $title

string TYPO3\CMS\Extbase\Domain\Model\Category::$title = ''
protected

@Extbase\Validate("NotEmpty")

Definition at line 30 of file Category.php.

Referenced by TYPO3\CMS\Extbase\Domain\Model\Category\getTitle(), and TYPO3\CMS\Extbase\Domain\Model\Category\setTitle().