PHP Класс Newscoop\Entity\Comment

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$status_enum to code mapper for status

Защищенные свойства (Protected)

Свойство Тип Описание
$allowedEmpty
$allowedTags
$commenter Newscoop\Entity\Comment\Commenter
$dislikes integer
$forum Newscoop\Entity\Publication
$id integer
$indexed DateTim\DateTime
$ip integer
$language Newscoop\Entity\Language
$likes integer
$message text
$parent Newscoop\Entity\Comment
$recommended integer
$source string
$status integer
$subject string
$thread integer
$thread_level integer
$thread_order integer
$time_created DateTim\DateTime
$time_updated DateTim\DateTime

Открытые методы

Метод Описание
SameAs ( Comment $comment ) : boolean Check if the comment is the same as this one
__construct ( )
exists ( ) : boolean Check if the comment exists Test if there is set an id
getCommenter ( ) : Commenter Get commenter
getCommenterEmail ( ) : string Get commenter email
getCommenterName ( ) : string Get commenter name
getDislikes ( ) : integer Get the dislikes count
getEmail ( ) : string Get the commenter's email
getForum ( ) : Newscoop\Entity\Publication Get forum
getId ( ) : integer Get id
getIndexed ( ) : DateTim\DateTime Get indexed
getIp ( ) : string Get comment ip address
getLanguage ( ) : Newscoop\Entity\Language Get Language
getLikes ( ) : integer Get the likes count
getMessage ( ) : string Get comment message.
getName ( ) : string Get the commenter's name
getParent ( ) : Newscoop\Entity\Comment Get Parent
getParentId ( ) : Newscoop\Entity\Comment Get Parent Id
getProperty ( $key ) : mixed Get an enity property
getRealName ( ) : string Get username witch should be the real name
getRecommended ( ) : string Get comment recommended
getSource ( ) : string Get comment source
getStatus ( ) : string Get status string
getSubject ( ) : string Get comment subject.
getThread ( ) : integer Get thread
getThreadLevel ( ) : integer Get thread level
getThreadOrder ( ) : integer Get thread level
getTimeCreated ( ) : DateTim\DateTime Get creation time.
getTimeUpdated ( ) : DateTim\DateTime Get creation time.
setCommenter ( Commenter $commenter ) : Newscoop\Entity\Comment Set commenter
setForum ( Publication $forum ) : Newscoop\Entity\Comment Set forum
setId ( integer $id ) : Newscoop\Entity\Comment Set id
setIndexed ( DateTim\DateTime $indexed = null ) : self Set indexed
setIp ( string $ip ) : Newscoop\Entity\Comment Set comment ip address
setLanguage ( Language $language ) : Newscoop\Entity\Comment Set Language
setMessage ( string $message ) : Newscoop\Entity\Comment Set comment message.
setParent ( Comment $parent = null ) : Newscoop\Entity\Comment Set Parent
setRecommended ( string $recommended ) : Newscoop\Entity\Comment Set recommended
setSource ( string $source ) : string Set comment source
setStatus ( $status ) : Newscoop\Entity\Comment Set status string
setSubject ( string $subject ) : Newscoop\Entity\Comment Set comment subject.
setThread ( $thread ) : Newscoop\Entity\Comment Set thread
setThreadLevel ( $level ) : Newscoop\Entity\Comment Set thread level
setThreadOrder ( $order ) : Newscoop\Entity\Comment Set thread order
setTimeCreated ( DateTime $datetime ) : Newscoop\Entity\Comment Set timecreated
setTimeUpdated ( DateTime $datetime ) : Newscoop\Entity\Comment Set time updated

Защищенные методы

Метод Описание
formatMessage ( string $str ) : string Method used to format message from comments

Описание методов

SameAs() публичный метод

Check if the comment is the same as this one
Устаревший: legacy from frontend controllers
public SameAs ( Comment $comment ) : boolean
$comment Comment
Результат boolean

__construct() публичный метод

public __construct ( )

exists() публичный метод

Check if the comment exists Test if there is set an id
Устаревший: legacy from frontend controllers
public exists ( ) : boolean
Результат boolean

formatMessage() защищенный метод

Method used to format message from comments
protected formatMessage ( string $str ) : string
$str string
Результат string

getCommenter() публичный метод

Get commenter
public getCommenter ( ) : Commenter
Результат Newscoop\Entity\Comment\Commenter

getCommenterEmail() публичный метод

Get commenter email
public getCommenterEmail ( ) : string
Результат string

getCommenterName() публичный метод

Get commenter name
public getCommenterName ( ) : string
Результат string

getDislikes() публичный метод

Get the dislikes count
public getDislikes ( ) : integer
Результат integer

getEmail() публичный метод

Get the commenter's email
public getEmail ( ) : string
Результат string

getForum() публичный метод

Get forum
public getForum ( ) : Newscoop\Entity\Publication
Результат Newscoop\Entity\Publication

getId() публичный метод

Get id
public getId ( ) : integer
Результат integer

getIndexed() публичный метод

Get indexed
public getIndexed ( ) : DateTim\DateTime
Результат DateTim\DateTime

getIp() публичный метод

Get comment ip address
public getIp ( ) : string
Результат string

getLanguage() публичный метод

Get Language
public getLanguage ( ) : Newscoop\Entity\Language
Результат Newscoop\Entity\Language

getLikes() публичный метод

Get the likes count
public getLikes ( ) : integer
Результат integer

getMessage() публичный метод

Get comment message.
public getMessage ( ) : string
Результат string

getName() публичный метод

Get the commenter's name
public getName ( ) : string
Результат string

getParent() публичный метод

Get Parent
public getParent ( ) : Newscoop\Entity\Comment
Результат Newscoop\Entity\Comment

getParentId() публичный метод

Get Parent Id
public getParentId ( ) : Newscoop\Entity\Comment
Результат Newscoop\Entity\Comment

getProperty() публичный метод

Get an enity property
Устаревший: legacy from frontend controllers
public getProperty ( $key ) : mixed
$key
Результат mixed

getRealName() публичный метод

Get username witch should be the real name
Устаревший: legacy from frontend controllers
public getRealName ( ) : string
Результат string

getRecommended() публичный метод

Get comment recommended
public getRecommended ( ) : string
Результат string

getSource() публичный метод

Get comment source
public getSource ( ) : string
Результат string

getStatus() публичный метод

Get status string
public getStatus ( ) : string
Результат string

getSubject() публичный метод

Get comment subject.
public getSubject ( ) : string
Результат string

getThread() публичный метод

Get thread
public getThread ( ) : integer
Результат integer

getThreadLevel() публичный метод

Get thread level
public getThreadLevel ( ) : integer
Результат integer

getThreadOrder() публичный метод

Get thread level
public getThreadOrder ( ) : integer
Результат integer

getTimeCreated() публичный метод

Get creation time.
public getTimeCreated ( ) : DateTim\DateTime
Результат DateTim\DateTime

getTimeUpdated() публичный метод

Get creation time.
public getTimeUpdated ( ) : DateTim\DateTime
Результат DateTim\DateTime

setCommenter() публичный метод

Set commenter
public setCommenter ( Commenter $commenter ) : Newscoop\Entity\Comment
$commenter Newscoop\Entity\Comment\Commenter
Результат Newscoop\Entity\Comment

setForum() публичный метод

Set forum
public setForum ( Publication $forum ) : Newscoop\Entity\Comment
$forum Publication
Результат Newscoop\Entity\Comment

setId() публичный метод

Set id
public setId ( integer $id ) : Newscoop\Entity\Comment
$id integer
Результат Newscoop\Entity\Comment

setIndexed() публичный метод

Set indexed
public setIndexed ( DateTim\DateTime $indexed = null ) : self
$indexed DateTim\DateTime
Результат self

setIp() публичный метод

Set comment ip address
public setIp ( string $ip ) : Newscoop\Entity\Comment
$ip string
Результат Newscoop\Entity\Comment

setLanguage() публичный метод

Set Language
public setLanguage ( Language $language ) : Newscoop\Entity\Comment
$language Language
Результат Newscoop\Entity\Comment

setMessage() публичный метод

Set comment message.
public setMessage ( string $message ) : Newscoop\Entity\Comment
$message string
Результат Newscoop\Entity\Comment

setParent() публичный метод

Set Parent
public setParent ( Comment $parent = null ) : Newscoop\Entity\Comment
$parent Comment
Результат Newscoop\Entity\Comment

setRecommended() публичный метод

Set recommended
public setRecommended ( string $recommended ) : Newscoop\Entity\Comment
$recommended string
Результат Newscoop\Entity\Comment

setSource() публичный метод

Set comment source
public setSource ( string $source ) : string
$source string
Результат string

setStatus() публичный метод

Set status string
public setStatus ( $status ) : Newscoop\Entity\Comment
Результат Newscoop\Entity\Comment

setSubject() публичный метод

Set comment subject.
public setSubject ( string $subject ) : Newscoop\Entity\Comment
$subject string
Результат Newscoop\Entity\Comment

setThread() публичный метод

Set thread
public setThread ( $thread ) : Newscoop\Entity\Comment
Результат Newscoop\Entity\Comment

setThreadLevel() публичный метод

Set thread level
public setThreadLevel ( $level ) : Newscoop\Entity\Comment
Результат Newscoop\Entity\Comment

setThreadOrder() публичный метод

Set thread order
public setThreadOrder ( $order ) : Newscoop\Entity\Comment
Результат Newscoop\Entity\Comment

setTimeCreated() публичный метод

Set timecreated
public setTimeCreated ( DateTime $datetime ) : Newscoop\Entity\Comment
$datetime DateTime
Результат Newscoop\Entity\Comment

setTimeUpdated() публичный метод

Set time updated
public setTimeUpdated ( DateTime $datetime ) : Newscoop\Entity\Comment
$datetime DateTime
Результат Newscoop\Entity\Comment

Описание свойств

$allowedEmpty защищенное свойство

protected $allowedEmpty

$allowedTags защищенное свойство

protected $allowedTags

$commenter защищенное свойство

protected Commenter,Newscoop\Entity\Comment $commenter
Результат Newscoop\Entity\Comment\Commenter

$dislikes защищенное свойство

protected int $dislikes
Результат integer

$forum защищенное свойство

protected Newscoop\Entity\Publication $forum
Результат Newscoop\Entity\Publication

$id защищенное свойство

protected int $id
Результат integer

$indexed защищенное свойство

protected DateTime,DateTim $indexed
Результат DateTim\DateTime

$ip защищенное свойство

protected int $ip
Результат integer

$language защищенное свойство

protected Newscoop\Entity\Language $language
Результат Newscoop\Entity\Language

$likes защищенное свойство

protected int $likes
Результат integer

$message защищенное свойство

protected text $message
Результат text

$parent защищенное свойство

protected Newscoop\Entity\Comment $parent
Результат Newscoop\Entity\Comment

$source защищенное свойство

protected string $source
Результат string

$status защищенное свойство

protected int $status
Результат integer

$status_enum статическое публичное свойство

to code mapper for status
static public $status_enum

$subject защищенное свойство

protected string $subject
Результат string

$thread защищенное свойство

protected int $thread
Результат integer

$thread_level защищенное свойство

protected int $thread_level
Результат integer

$thread_order защищенное свойство

protected int $thread_order
Результат integer

$time_created защищенное свойство

protected DateTime,DateTim $time_created
Результат DateTim\DateTime

$time_updated защищенное свойство

protected DateTime,DateTim $time_updated
Результат DateTim\DateTime