‪TYPO3CMS  ‪main
TYPO3Tests\BlogExample\Domain\Model\Person Class Reference
Inheritance diagram for TYPO3Tests\BlogExample\Domain\Model\Person:
TYPO3\CMS\Extbase\DomainObject\AbstractEntity TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface

Public Member Functions

 __construct (string $firstname='', string $lastname='', string $email='')
 
 setFirstname (string $firstname)
 
 getFirstname ()
 
 setLastname (string $lastname)
 
 getLastname ()
 
 getFullName ()
 
 setEmail (string $email)
 
 getEmail ()
 
 getSalutation ()
 
 setSalutation (Enum\Salutation $salutation)
 
ObjectStorage< TaggetTags ()
 
 setTags (ObjectStorage $tags)
 
 addTag (Tag $tag)
 
 removeTag (Tag $tag)
 
ObjectStorage< TaggetTagsSpecial ()
 
 setTagsSpecial (ObjectStorage $tagsSpecial)
 
 addTagSpecial (Tag $tag)
 
 removeTagSpecial (Tag $tag)
 
- ‪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 $firstname = ''
 
string $lastname = ''
 
string $email = ''
 
Enum Salutation $salutation = Enum\Salutation::NONE
 
ObjectStorage $tags
 
ObjectStorage $tagsSpecial
 
- ‪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

A person - acting as author

Definition at line 26 of file Person.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3Tests\BlogExample\Domain\Model\Person::__construct ( string  $firstname = '',
string  $lastname = '',
string  $email = '' 
)

Member Function Documentation

◆ addTag()

TYPO3Tests\BlogExample\Domain\Model\Person::addTag ( Tag  $tag)

Definition at line 117 of file Person.php.

◆ addTagSpecial()

TYPO3Tests\BlogExample\Domain\Model\Person::addTagSpecial ( Tag  $tag)

Definition at line 143 of file Person.php.

◆ getEmail()

TYPO3Tests\BlogExample\Domain\Model\Person::getEmail ( )

Definition at line 86 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$email.

◆ getFirstname()

TYPO3Tests\BlogExample\Domain\Model\Person::getFirstname ( )

Definition at line 61 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$firstname.

◆ getFullName()

TYPO3Tests\BlogExample\Domain\Model\Person::getFullName ( )

Definition at line 76 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$lastname.

◆ getLastname()

TYPO3Tests\BlogExample\Domain\Model\Person::getLastname ( )

Definition at line 71 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$lastname.

◆ getSalutation()

TYPO3Tests\BlogExample\Domain\Model\Person::getSalutation ( )

Definition at line 91 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$salutation.

◆ getTags()

ObjectStorage<Tag> TYPO3Tests\BlogExample\Domain\Model\Person::getTags ( )
Returns
‪ObjectStorage<Tag>

Definition at line 104 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$tags.

◆ getTagsSpecial()

ObjectStorage<Tag> TYPO3Tests\BlogExample\Domain\Model\Person::getTagsSpecial ( )
Returns
‪ObjectStorage<Tag>

Definition at line 130 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$tagsSpecial.

◆ removeTag()

TYPO3Tests\BlogExample\Domain\Model\Person::removeTag ( Tag  $tag)

Definition at line 122 of file Person.php.

◆ removeTagSpecial()

TYPO3Tests\BlogExample\Domain\Model\Person::removeTagSpecial ( Tag  $tag)

Definition at line 148 of file Person.php.

◆ setEmail()

TYPO3Tests\BlogExample\Domain\Model\Person::setEmail ( string  $email)

◆ setFirstname()

TYPO3Tests\BlogExample\Domain\Model\Person::setFirstname ( string  $firstname)

◆ setLastname()

TYPO3Tests\BlogExample\Domain\Model\Person::setLastname ( string  $lastname)

◆ setSalutation()

TYPO3Tests\BlogExample\Domain\Model\Person::setSalutation ( Enum\Salutation  $salutation)

Definition at line 96 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$salutation.

◆ setTags()

TYPO3Tests\BlogExample\Domain\Model\Person::setTags ( ObjectStorage  $tags)
Parameters
ObjectStorage<Tag>‪$tags

Definition at line 112 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$tags.

◆ setTagsSpecial()

TYPO3Tests\BlogExample\Domain\Model\Person::setTagsSpecial ( ObjectStorage  $tagsSpecial)
Parameters
ObjectStorage<Tag>‪$tagsSpecial

Definition at line 138 of file Person.php.

References TYPO3Tests\BlogExample\Domain\Model\Person\$tagsSpecial.

Member Data Documentation

◆ $email

string TYPO3Tests\BlogExample\Domain\Model\Person::$email = ''
protected

◆ $firstname

string TYPO3Tests\BlogExample\Domain\Model\Person::$firstname = ''
protected

◆ $lastname

string TYPO3Tests\BlogExample\Domain\Model\Person::$lastname = ''
protected

◆ $salutation

Enum Salutation TYPO3Tests\BlogExample\Domain\Model\Person::$salutation = Enum\Salutation::NONE
protected

◆ $tags

ObjectStorage TYPO3Tests\BlogExample\Domain\Model\Person::$tags
protected

◆ $tagsSpecial

ObjectStorage TYPO3Tests\BlogExample\Domain\Model\Person::$tagsSpecial
protected