‪TYPO3CMS  11.5
ExtbaseTeam\BlogExample\Domain\Model\Category Class Reference
Inheritance diagram for ExtbaseTeam\BlogExample\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)
 
Category null getParent ()
 
 setParent (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 = ''
 
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 27 of file Category.php.

Member Function Documentation

◆ getDescription()

string ExtbaseTeam\BlogExample\Domain\Model\Category::getDescription ( )

Gets the description.

Returns
‪string the description, might be empty

Definition at line 68 of file Category.php.

References ExtbaseTeam\BlogExample\Domain\Model\Category\$description.

◆ getParent()

Category null ExtbaseTeam\BlogExample\Domain\Model\Category::getParent ( )

Gets the parent category.

Returns
‪Category|null the parent category

Definition at line 88 of file Category.php.

References ExtbaseTeam\BlogExample\Domain\Model\Category\$parent.

◆ getTitle()

string ExtbaseTeam\BlogExample\Domain\Model\Category::getTitle ( )

Gets the title.

Returns
‪string the title, might be empty

Definition at line 48 of file Category.php.

References ExtbaseTeam\BlogExample\Domain\Model\Category\$title.

◆ setDescription()

ExtbaseTeam\BlogExample\Domain\Model\Category::setDescription (   $description)

Sets the description.

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

Definition at line 78 of file Category.php.

References ExtbaseTeam\BlogExample\Domain\Model\Category\$description.

◆ setParent()

ExtbaseTeam\BlogExample\Domain\Model\Category::setParent ( Category  $parent)

Sets the parent category.

Parameters
Category$parent‪the parent category

Definition at line 101 of file Category.php.

References ExtbaseTeam\BlogExample\Domain\Model\Category\$parent.

◆ setTitle()

ExtbaseTeam\BlogExample\Domain\Model\Category::setTitle (   $title)

Sets the title.

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

Definition at line 58 of file Category.php.

References ExtbaseTeam\BlogExample\Domain\Model\Category\$title.

Member Data Documentation

◆ $description

string ExtbaseTeam\BlogExample\Domain\Model\Category::$description = ''
protected

◆ $parent

Category null ExtbaseTeam\BlogExample\Domain\Model\Category::$parent
protected

◆ $title

string ExtbaseTeam\BlogExample\Domain\Model\Category::$title = ''
protected