‪TYPO3CMS  10.4
ExtbaseTeam\BlogExample\Domain\Model\Comment Class Reference
Inheritance diagram for ExtbaseTeam\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)
 
DateTime getDate ()
 
 setAuthor ($author)
 
string getAuthor ()
 
 setEmail ($email)
 
string getEmail ()
 
 setContent ($content)
 
string getContent ()
 
string __toString ()
 
- ‪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 ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface
 _memorizeCleanState ()
 
bool _isDirty ()
 

Protected Attributes

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

A blog post comment

Definition at line 24 of file Comment.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructs this post

Definition at line 48 of file Comment.php.

Member Function Documentation

◆ __toString()

string ExtbaseTeam\BlogExample\Domain\Model\Comment::__toString ( )

Returns this comment as a formatted string

Returns
‪string

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

Definition at line 138 of file Comment.php.

◆ getAuthor()

string ExtbaseTeam\BlogExample\Domain\Model\Comment::getAuthor ( )

Getter for author

Returns
‪string

Definition at line 88 of file Comment.php.

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

◆ getContent()

string ExtbaseTeam\BlogExample\Domain\Model\Comment::getContent ( )

Getter for content

Returns
‪string

Definition at line 128 of file Comment.php.

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

◆ getDate()

DateTime ExtbaseTeam\BlogExample\Domain\Model\Comment::getDate ( )

Getter for date

Returns
‪\DateTime

Definition at line 68 of file Comment.php.

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

◆ getEmail()

string ExtbaseTeam\BlogExample\Domain\Model\Comment::getEmail ( )

Getter for authors email

Returns
‪string

Definition at line 108 of file Comment.php.

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

◆ setAuthor()

ExtbaseTeam\BlogExample\Domain\Model\Comment::setAuthor (   $author)

Sets the author for this comment

Parameters
string$author

Definition at line 78 of file Comment.php.

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

◆ setContent()

ExtbaseTeam\BlogExample\Domain\Model\Comment::setContent (   $content)

Sets the content for this comment

Parameters
string$content

Definition at line 118 of file Comment.php.

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

◆ setDate()

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

Setter for date

Parameters
\DateTime$date

Definition at line 58 of file Comment.php.

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

◆ setEmail()

ExtbaseTeam\BlogExample\Domain\Model\Comment::setEmail (   $email)

Sets the authors email for this comment

Parameters
string$email‪email of the author

Definition at line 98 of file Comment.php.

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

Member Data Documentation

◆ $author

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

◆ $content

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

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

Definition at line 43 of file Comment.php.

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

◆ $date

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

◆ $email

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

@Extbase\Validate("EmailAddress")

Definition at line 38 of file Comment.php.

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