PHP Class Newscoop\Entity\Comment\Commenter

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

Protected Properties

Свойство Type Description
$comments Bidirectional - One-To-Many (INVERSE SIDE)
$email string
$id integer
$ip integer
$name string
$time_created DateTime
$url string
$user Newscoop\Entity\User

Méthodes publiques

Méthode Description
__construct ( )
__toString ( )
getComments ( )
getEmail ( ) : string Get commenter email address
getId ( ) : string Get user id
getIp ( ) : string Get client ip
getName ( ) : string Get commenter name
getTimeCreated ( ) : DateTime Get creation time.
getTimeUpdated ( ) : DateTime Get updated time.
getUrl ( ) : string Get comment user url
getUser ( ) : User Get user
getUserId ( ) : string Get id of the linked user if there is one
getUserName ( ) : string Get name of the linked user if there is one
setEmail ( string $email ) : Newscoop\Entity\Comment\Commenter Set commenter email address
setId ( integer $id ) : Newscoop\Entity\Comment\Commenter Set commenter id
setIp ( string $ip ) : Newscoop\Entity\Comment\Commenter Set ip
setName ( string $name ) : Newscoop\Entity\Comment\Commenter Set commenter full name
setTimeCreated ( DateTime $datetime ) : Newscoop\Entity\Comment\Commenter Set time created
setTimeUpdated ( DateTime $datetime ) : Newscoop\Entity\Comment\Commenter Set time updated
setUrl ( string $url ) : Newscoop\Entity\Comment\Commenter Set comment user url
setUser ( User $user ) : Newscoop\Entity\Comment\Commenter Set user

Method Details

__construct() public méthode

public __construct ( )

__toString() public méthode

public __toString ( )

getComments() public méthode

public getComments ( )

getEmail() public méthode

Get commenter email address
public getEmail ( ) : string
Résultat string

getId() public méthode

Get user id
public getId ( ) : string
Résultat string

getIp() public méthode

Get client ip
public getIp ( ) : string
Résultat string

getName() public méthode

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

getTimeCreated() public méthode

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

getTimeUpdated() public méthode

Get updated time.
public getTimeUpdated ( ) : DateTime
Résultat DateTime

getUrl() public méthode

Get comment user url
public getUrl ( ) : string
Résultat string

getUser() public méthode

Get user
public getUser ( ) : User
Résultat Newscoop\Entity\User

getUserId() public méthode

Get id of the linked user if there is one
public getUserId ( ) : string
Résultat string

getUserName() public méthode

Get name of the linked user if there is one
public getUserName ( ) : string
Résultat string

setEmail() public méthode

Set commenter email address
public setEmail ( string $email ) : Newscoop\Entity\Comment\Commenter
$email string
Résultat Newscoop\Entity\Comment\Commenter

setId() public méthode

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

setIp() public méthode

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

setName() public méthode

Set commenter full name
public setName ( string $name ) : Newscoop\Entity\Comment\Commenter
$name string
Résultat Newscoop\Entity\Comment\Commenter

setTimeCreated() public méthode

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

setTimeUpdated() public méthode

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

setUrl() public méthode

Set comment user url
public setUrl ( string $url ) : Newscoop\Entity\Comment\Commenter
$url string
Résultat Newscoop\Entity\Comment\Commenter

setUser() public méthode

Set user
public setUser ( User $user ) : Newscoop\Entity\Comment\Commenter
$user Newscoop\Entity\User
Résultat Newscoop\Entity\Comment\Commenter

Property Details

$comments protected_oe property

Bidirectional - One-To-Many (INVERSE SIDE)
protected $comments

$email protected_oe property

protected string $email
Résultat string

$id protected_oe property

protected int $id
Résultat integer

$ip protected_oe property

protected int $ip
Résultat integer

$name protected_oe property

protected string $name
Résultat string

$time_created protected_oe property

protected DateTime $time_created
Résultat DateTime

$url protected_oe property

protected string $url
Résultat string

$user protected_oe property

protected User,Newscoop\Entity $user
Résultat Newscoop\Entity\User