‪TYPO3CMS  ‪main
TYPO3Tests\BlogExample\Domain\Model\Category Class Reference
Inheritance diagram for TYPO3Tests\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

 getTitle ()
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getParent ()
 
 setParent (Category $parent)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
 setPid (int $pid)
 
 _setProperty (string $propertyName, mixed $value)
 
 _getProperty (string $propertyName)
 
 _memorizeCleanState (?string $propertyName=null)
 
 _memorizePropertyCleanState (string $propertyName)
 
 _getCleanProperty (string $propertyName)
 
 _isDirty (?string $propertyName=null)
 
 _isClone ()
 
 _setClone (bool $clone)
 
 __clone ()
 
non empty string __toString ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface
 getUid ()
 
 getPid ()
 
 _isNew ()
 
 _hasProperty (string $propertyName)
 

Protected Attributes

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

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
const PROPERTY_UID = 'uid'
 
const PROPERTY_PID = 'pid'
 
const PROPERTY_LOCALIZED_UID = '_localizedUid'
 
const PROPERTY_LANGUAGE_UID = '_languageUid'
 
const PROPERTY_VERSIONED_UID = '_versionedUid'
 
int< 1, function getUid():?int { if( $this->uid !==null) { return(int) $this-> uid
 
return null
 
int< 0, function getPid():int|null { if( $this->pid===null) { return null;} return(int) $this-> pid
 
array< non-empty-string, function _getProperties():array { $properties=get_object_vars( $this);foreach( $properties as $propertyName=> $propertyValue) { if(str_starts_with( $propertyName, '_')) { unset( $properties[ $propertyName]);} } return $properties;} public function _hasProperty(string $propertyName):bool { return property_exists( $this, $propertyName);} public function _isNew():bool { return $this-> uid === null
 
array< non-empty-string, function _getCleanProperties():array { return $this-> _cleanProperties
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
 isPropertyDirty (mixed $previousValue, mixed $currentValue)
 

Detailed Description

This model represents a category (for anything).

Definition at line 27 of file Category.php.

Member Function Documentation

◆ getDescription()

TYPO3Tests\BlogExample\Domain\Model\Category::getDescription ( )

◆ getParent()

TYPO3Tests\BlogExample\Domain\Model\Category::getParent ( )

Definition at line 61 of file Category.php.

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

◆ getTitle()

TYPO3Tests\BlogExample\Domain\Model\Category::getTitle ( )

Definition at line 41 of file Category.php.

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

◆ setDescription()

TYPO3Tests\BlogExample\Domain\Model\Category::setDescription ( string  $description)

◆ setParent()

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

Definition at line 69 of file Category.php.

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

◆ setTitle()

TYPO3Tests\BlogExample\Domain\Model\Category::setTitle ( string  $title)

Definition at line 46 of file Category.php.

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

Member Data Documentation

◆ $description

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

◆ $parent

Category LazyLoadingProxy null TYPO3Tests\BlogExample\Domain\Model\Category::$parent = null
protected

◆ $title

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

@Extbase\Validate("NotEmpty")

Definition at line 32 of file Category.php.

Referenced by TYPO3Tests\BlogExample\Domain\Model\Category\getTitle(), and TYPO3Tests\BlogExample\Domain\Model\Category\setTitle().