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

Public Member Functions

 __construct ()
 
 setDate (\DateTime $date)
 
 getDate ()
 
 setAuthor (string $author)
 
 getAuthor ()
 
 setEmail (string $email)
 
 getEmail ()
 
 setContent (string $content)
 
 getContent ()
 
 __toString ()
 
- ‪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 ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface
 getUid ()
 
 getPid ()
 
 _isNew ()
 
 _hasProperty (string $propertyName)
 

Protected Attributes

DateTime $date
 
string $author = ''
 
string $email = ''
 
string $content = ''
 
- ‪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 blog post comment

Definition at line 26 of file Comment.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3Tests\BlogExample\Domain\Model\Comment::__construct ( )

Definition at line 45 of file Comment.php.

Member Function Documentation

◆ __toString()

TYPO3Tests\BlogExample\Domain\Model\Comment::__toString ( )

Returns this comment as a formatted string

Reimplemented from TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject.

Definition at line 99 of file Comment.php.

◆ getAuthor()

TYPO3Tests\BlogExample\Domain\Model\Comment::getAuthor ( )

Definition at line 65 of file Comment.php.

References TYPO3Tests\BlogExample\Domain\Model\Comment\$author.

◆ getContent()

TYPO3Tests\BlogExample\Domain\Model\Comment::getContent ( )

Definition at line 91 of file Comment.php.

References TYPO3Tests\BlogExample\Domain\Model\Comment\$content.

◆ getDate()

TYPO3Tests\BlogExample\Domain\Model\Comment::getDate ( )

Definition at line 55 of file Comment.php.

References TYPO3Tests\BlogExample\Domain\Model\Comment\$date.

◆ getEmail()

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

Getter for author's email

Definition at line 81 of file Comment.php.

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

◆ setAuthor()

TYPO3Tests\BlogExample\Domain\Model\Comment::setAuthor ( string  $author)

Definition at line 60 of file Comment.php.

References TYPO3Tests\BlogExample\Domain\Model\Comment\$author.

◆ setContent()

TYPO3Tests\BlogExample\Domain\Model\Comment::setContent ( string  $content)

Definition at line 86 of file Comment.php.

References TYPO3Tests\BlogExample\Domain\Model\Comment\$content.

◆ setDate()

TYPO3Tests\BlogExample\Domain\Model\Comment::setDate ( \DateTime  $date)

Definition at line 50 of file Comment.php.

References TYPO3Tests\BlogExample\Domain\Model\Comment\$date.

◆ setEmail()

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

Sets the author's email for this comment

Definition at line 73 of file Comment.php.

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

Member Data Documentation

◆ $author

string TYPO3Tests\BlogExample\Domain\Model\Comment::$author = ''
protected

@Extbase\Validate("NotEmpty")

Definition at line 33 of file Comment.php.

Referenced by TYPO3Tests\BlogExample\Domain\Model\Comment\getAuthor(), and TYPO3Tests\BlogExample\Domain\Model\Comment\setAuthor().

◆ $content

string TYPO3Tests\BlogExample\Domain\Model\Comment::$content = ''
protected

@Extbase\Validate("StringLength", options={"maximum": 500})

Definition at line 43 of file Comment.php.

Referenced by TYPO3Tests\BlogExample\Domain\Model\Comment\getContent(), and TYPO3Tests\BlogExample\Domain\Model\Comment\setContent().

◆ $date

DateTime TYPO3Tests\BlogExample\Domain\Model\Comment::$date
protected

◆ $email

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

@Extbase\Validate("EmailAddress")

Definition at line 38 of file Comment.php.

Referenced by TYPO3Tests\BlogExample\Domain\Model\Comment\getEmail(), and TYPO3Tests\BlogExample\Domain\Model\Comment\setEmail().