TYPO3 CMS  TYPO3_7-6
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)
 
 getDate ()
 
 setAuthor ($author)
 
 getAuthor ()
 
 setEmail ($email)
 
 getEmail ()
 
 setContent ($content)
 
 getContent ()
 
 __toString ()
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
 __wakeup ()
 
 getUid ()
 
 setPid ($pid)
 
 getPid ()
 
 _setProperty ($propertyName, $propertyValue)
 
 _getProperty ($propertyName)
 
 _getProperties ()
 
 _hasProperty ($propertyName)
 
 _isNew ()
 
 _memorizeCleanState ($propertyName=null)
 
 _memorizePropertyCleanState ($propertyName)
 
 _getCleanProperties ()
 
 _getCleanProperty ($propertyName)
 
 _isDirty ($propertyName=null)
 
 _isClone ()
 
 _setClone ($clone)
 
 __clone ()
 
 __toString ()
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Persistence\ObjectMonitoringInterface
 _memorizeCleanState ()
 
 _isDirty ()
 

Protected Attributes

 $date
 
 $author = ''
 
 $email = ''
 
 $content = ''
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
 $uid
 
 $_localizedUid
 
 $_languageUid
 
 $_versionedUid
 
 $pid
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject
 isPropertyDirty ($previousValue, $currentValue)
 

Detailed Description

A blog post comment

Definition at line 20 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()

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

Returns this comment as a formatted string

Returns
string

Definition at line 142 of file Comment.php.

◆ getAuthor()

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

Getter for author

Returns
string

Definition at line 90 of file Comment.php.

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

◆ getContent()

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

Getter for content

Returns
string

Definition at line 132 of file Comment.php.

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

◆ getDate()

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

Getter for date

Returns

Definition at line 69 of file Comment.php.

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

◆ getEmail()

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

Getter for authors email

Returns
string

Definition at line 111 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
Returns
void

Definition at line 80 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
Returns
void

Definition at line 122 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
Returns
void

Definition at line 59 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$emailemail of the author
Returns
void

Definition at line 101 of file Comment.php.

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

Member Data Documentation

◆ $author

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

◆ $content

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

◆ $date

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

◆ $email

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