PHP 클래스 Newscoop\Entity\Comment\Commenter

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$comments Bidirectional - One-To-Many (INVERSE SIDE)
$email string
$id integer
$ip integer
$name string
$time_created DateTime
$url string
$user Newscoop\Entity\User

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( )

__toString() 공개 메소드

public __toString ( )

getComments() 공개 메소드

public getComments ( )

getEmail() 공개 메소드

Get commenter email address
public getEmail ( ) : string
리턴 string

getId() 공개 메소드

Get user id
public getId ( ) : string
리턴 string

getIp() 공개 메소드

Get client ip
public getIp ( ) : string
리턴 string

getName() 공개 메소드

Get commenter name
public getName ( ) : string
리턴 string

getTimeCreated() 공개 메소드

Get creation time.
public getTimeCreated ( ) : DateTime
리턴 DateTime

getTimeUpdated() 공개 메소드

Get updated time.
public getTimeUpdated ( ) : DateTime
리턴 DateTime

getUrl() 공개 메소드

Get comment user url
public getUrl ( ) : string
리턴 string

getUser() 공개 메소드

Get user
public getUser ( ) : User
리턴 Newscoop\Entity\User

getUserId() 공개 메소드

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

getUserName() 공개 메소드

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

setEmail() 공개 메소드

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

setId() 공개 메소드

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

setIp() 공개 메소드

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

setName() 공개 메소드

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

setTimeCreated() 공개 메소드

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

setTimeUpdated() 공개 메소드

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

setUrl() 공개 메소드

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

setUser() 공개 메소드

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

프로퍼티 상세

$comments 보호되어 있는 프로퍼티

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

$email 보호되어 있는 프로퍼티

protected string $email
리턴 string

$id 보호되어 있는 프로퍼티

protected int $id
리턴 integer

$ip 보호되어 있는 프로퍼티

protected int $ip
리턴 integer

$name 보호되어 있는 프로퍼티

protected string $name
리턴 string

$time_created 보호되어 있는 프로퍼티

protected DateTime $time_created
리턴 DateTime

$url 보호되어 있는 프로퍼티

protected string $url
리턴 string

$user 보호되어 있는 프로퍼티

protected User,Newscoop\Entity $user
리턴 Newscoop\Entity\User