PHP Class Newscoop\Entity\Comment

Afficher le fichier Open project: sourcefabric/newscoop Class Usage Examples

Méthodes publiques

Свойство Type Description
$status_enum to code mapper for status

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
formatMessage ( string $str ) : string Method used to format message from comments

Method Details

SameAs() public méthode

Check if the comment is the same as this one
Deprecation: legacy from frontend controllers
public SameAs ( Comment $comment ) : boolean
$comment Comment
Résultat boolean

__construct() public méthode

public __construct ( )

exists() public méthode

Check if the comment exists Test if there is set an id
Deprecation: legacy from frontend controllers
public exists ( ) : boolean
Résultat boolean

formatMessage() protected méthode

Method used to format message from comments
protected formatMessage ( string $str ) : string
$str string
Résultat string

getCommenter() public méthode

Get commenter
public getCommenter ( ) : Commenter
Résultat Newscoop\Entity\Comment\Commenter

getCommenterEmail() public méthode

Get commenter email
public getCommenterEmail ( ) : string
Résultat string

getCommenterName() public méthode

Get commenter name
public getCommenterName ( ) : string
Résultat string

getDislikes() public méthode

Get the dislikes count
public getDislikes ( ) : integer
Résultat integer

getEmail() public méthode

Get the commenter's email
public getEmail ( ) : string
Résultat string

getForum() public méthode

Get forum
public getForum ( ) : Newscoop\Entity\Publication
Résultat Newscoop\Entity\Publication

getId() public méthode

Get id
public getId ( ) : integer
Résultat integer

getIndexed() public méthode

Get indexed
public getIndexed ( ) : DateTim\DateTime
Résultat DateTim\DateTime

getIp() public méthode

Get comment ip address
public getIp ( ) : string
Résultat string

getLanguage() public méthode

Get Language
public getLanguage ( ) : Newscoop\Entity\Language
Résultat Newscoop\Entity\Language

getLikes() public méthode

Get the likes count
public getLikes ( ) : integer
Résultat integer

getMessage() public méthode

Get comment message.
public getMessage ( ) : string
Résultat string

getName() public méthode

Get the commenter's name
public getName ( ) : string
Résultat string

getParent() public méthode

Get Parent
public getParent ( ) : Newscoop\Entity\Comment
Résultat Newscoop\Entity\Comment

getParentId() public méthode

Get Parent Id
public getParentId ( ) : Newscoop\Entity\Comment
Résultat Newscoop\Entity\Comment

getProperty() public méthode

Get an enity property
Deprecation: legacy from frontend controllers
public getProperty ( $key ) : mixed
$key
Résultat mixed

getRealName() public méthode

Get username witch should be the real name
Deprecation: legacy from frontend controllers
public getRealName ( ) : string
Résultat string

getRecommended() public méthode

Get comment recommended
public getRecommended ( ) : string
Résultat string

getSource() public méthode

Get comment source
public getSource ( ) : string
Résultat string

getStatus() public méthode

Get status string
public getStatus ( ) : string
Résultat string

getSubject() public méthode

Get comment subject.
public getSubject ( ) : string
Résultat string

getThread() public méthode

Get thread
public getThread ( ) : integer
Résultat integer

getThreadLevel() public méthode

Get thread level
public getThreadLevel ( ) : integer
Résultat integer

getThreadOrder() public méthode

Get thread level
public getThreadOrder ( ) : integer
Résultat integer

getTimeCreated() public méthode

Get creation time.
public getTimeCreated ( ) : DateTim\DateTime
Résultat DateTim\DateTime

getTimeUpdated() public méthode

Get creation time.
public getTimeUpdated ( ) : DateTim\DateTime
Résultat DateTim\DateTime

setCommenter() public méthode

Set commenter
public setCommenter ( Commenter $commenter ) : Newscoop\Entity\Comment
$commenter Newscoop\Entity\Comment\Commenter
Résultat Newscoop\Entity\Comment

setForum() public méthode

Set forum
public setForum ( Publication $forum ) : Newscoop\Entity\Comment
$forum Publication
Résultat Newscoop\Entity\Comment

setId() public méthode

Set id
public setId ( integer $id ) : Newscoop\Entity\Comment
$id integer
Résultat Newscoop\Entity\Comment

setIndexed() public méthode

Set indexed
public setIndexed ( DateTim\DateTime $indexed = null ) : self
$indexed DateTim\DateTime
Résultat self

setIp() public méthode

Set comment ip address
public setIp ( string $ip ) : Newscoop\Entity\Comment
$ip string
Résultat Newscoop\Entity\Comment

setLanguage() public méthode

Set Language
public setLanguage ( Language $language ) : Newscoop\Entity\Comment
$language Language
Résultat Newscoop\Entity\Comment

setMessage() public méthode

Set comment message.
public setMessage ( string $message ) : Newscoop\Entity\Comment
$message string
Résultat Newscoop\Entity\Comment

setParent() public méthode

Set Parent
public setParent ( Comment $parent = null ) : Newscoop\Entity\Comment
$parent Comment
Résultat Newscoop\Entity\Comment

setRecommended() public méthode

Set recommended
public setRecommended ( string $recommended ) : Newscoop\Entity\Comment
$recommended string
Résultat Newscoop\Entity\Comment

setSource() public méthode

Set comment source
public setSource ( string $source ) : string
$source string
Résultat string

setStatus() public méthode

Set status string
public setStatus ( $status ) : Newscoop\Entity\Comment
Résultat Newscoop\Entity\Comment

setSubject() public méthode

Set comment subject.
public setSubject ( string $subject ) : Newscoop\Entity\Comment
$subject string
Résultat Newscoop\Entity\Comment

setThread() public méthode

Set thread
public setThread ( $thread ) : Newscoop\Entity\Comment
Résultat Newscoop\Entity\Comment

setThreadLevel() public méthode

Set thread level
public setThreadLevel ( $level ) : Newscoop\Entity\Comment
Résultat Newscoop\Entity\Comment

setThreadOrder() public méthode

Set thread order
public setThreadOrder ( $order ) : Newscoop\Entity\Comment
Résultat Newscoop\Entity\Comment

setTimeCreated() public méthode

Set timecreated
public setTimeCreated ( DateTime $datetime ) : Newscoop\Entity\Comment
$datetime DateTime
Résultat Newscoop\Entity\Comment

setTimeUpdated() public méthode

Set time updated
public setTimeUpdated ( DateTime $datetime ) : Newscoop\Entity\Comment
$datetime DateTime
Résultat Newscoop\Entity\Comment

Property Details

$allowedEmpty protected_oe property

protected $allowedEmpty

$allowedTags protected_oe property

protected $allowedTags

$commenter protected_oe property

protected Commenter,Newscoop\Entity\Comment $commenter
Résultat Newscoop\Entity\Comment\Commenter

$dislikes protected_oe property

protected int $dislikes
Résultat integer

$forum protected_oe property

protected Newscoop\Entity\Publication $forum
Résultat Newscoop\Entity\Publication

$id protected_oe property

protected int $id
Résultat integer

$indexed protected_oe property

protected DateTime,DateTim $indexed
Résultat DateTim\DateTime

$ip protected_oe property

protected int $ip
Résultat integer

$language protected_oe property

protected Newscoop\Entity\Language $language
Résultat Newscoop\Entity\Language

$likes protected_oe property

protected int $likes
Résultat integer

$message protected_oe property

protected text $message
Résultat text

$parent protected_oe property

protected Newscoop\Entity\Comment $parent
Résultat Newscoop\Entity\Comment

$source protected_oe property

protected string $source
Résultat string

$status protected_oe property

protected int $status
Résultat integer

$status_enum static_oe public_oe property

to code mapper for status
static public $status_enum

$subject protected_oe property

protected string $subject
Résultat string

$thread protected_oe property

protected int $thread
Résultat integer

$thread_level protected_oe property

protected int $thread_level
Résultat integer

$thread_order protected_oe property

protected int $thread_order
Résultat integer

$time_created protected_oe property

protected DateTime,DateTim $time_created
Résultat DateTim\DateTime

$time_updated protected_oe property

protected DateTime,DateTim $time_updated
Résultat DateTim\DateTime