\Comment\Model\EntityComment

Represents a single "comment" within "comments" table.

Summary

Methods
Properties
Constants
No public methods found
$id
$entity_id
$user_id
$parent_id
$rght
$lft
$table_alias
$subject
$body
$author_name
$author_email
$author_web
$author_ip
$status
No constants found
_getAuthor()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$id

$id : integer

Type

integer

$entity_id

$entity_id : integer

Type

integer

$user_id

$user_id : integer

Type

integer

$parent_id

$parent_id : integer

Type

integer

$rght

$rght : integer

Type

integer

$lft

$lft : integer

Type

integer

$table_alias

$table_alias : string

Type

string

$subject

$subject : string

Type

string

$body

$body : string

Type

string

$author_name

$author_name : string

Type

string

$author_email

$author_email : string

Type

string

$author_web

$author_web : string

Type

string

$author_ip

$author_ip : string

Type

string

$status

$status : string

Type

string

Methods

_getAuthor()

_getAuthor() : \User\Model\Entity\User

Returns comment's author as a mock user entity. With the properties below:

  • username: QuickAppsCMS's username (the one used for login) if comment's author was a logged in user. "anonymous" otherwise.
  • name: Real name of the author. Anonymous if not provided.
  • web: Author's website (if provided).
  • email: Author's email (if provided).

Returns

\User\Model\Entity\User