PHP Class Newscoop\Entity\Comment\Commenter

Show file Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property 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

Public Methods

Method 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 method

public __construct ( )

__toString() public method

public __toString ( )

getComments() public method

public getComments ( )

getEmail() public method

Get commenter email address
public getEmail ( ) : string
return string

getId() public method

Get user id
public getId ( ) : string
return string

getIp() public method

Get client ip
public getIp ( ) : string
return string

getName() public method

Get commenter name
public getName ( ) : string
return string

getTimeCreated() public method

Get creation time.
public getTimeCreated ( ) : DateTime
return DateTime

getTimeUpdated() public method

Get updated time.
public getTimeUpdated ( ) : DateTime
return DateTime

getUrl() public method

Get comment user url
public getUrl ( ) : string
return string

getUser() public method

Get user
public getUser ( ) : User
return Newscoop\Entity\User

getUserId() public method

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

getUserName() public method

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

setEmail() public method

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

setId() public method

Set commenter id
public setId ( integer $id ) : Newscoop\Entity\Comment\Commenter
$id integer
return Newscoop\Entity\Comment\Commenter

setIp() public method

Set ip
public setIp ( string $ip ) : Newscoop\Entity\Comment\Commenter
$ip string
return Newscoop\Entity\Comment\Commenter

setName() public method

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

setTimeCreated() public method

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

setTimeUpdated() public method

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

setUrl() public method

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

setUser() public method

Set user
public setUser ( User $user ) : Newscoop\Entity\Comment\Commenter
$user Newscoop\Entity\User
return Newscoop\Entity\Comment\Commenter

Property Details

$comments protected property

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

$email protected property

protected string $email
return string

$id protected property

protected int $id
return integer

$ip protected property

protected int $ip
return integer

$name protected property

protected string $name
return string

$time_created protected property

protected DateTime $time_created
return DateTime

$url protected property

protected string $url
return string

$user protected property

protected User,Newscoop\Entity $user
return Newscoop\Entity\User