PHP Class PrivateBin\Model\Comment

Model of a PrivateBin comment.
Inheritance: extends AbstractModel
Afficher le fichier Open project: privatebin/privatebin Class Usage Examples

Méthodes publiques

Méthode Description
delete ( ) : void Delete the comment.
exists ( ) : boolean Test if comment exists in store.
get ( ) : stdClass Get comment data.
getParentId ( ) : string Get parent ID.
getPaste ( ) : Paste Get paste.
setNickname ( string $nickname ) : void Set nickname.
setParentId ( string $id ) : void Set parent ID.
setPaste ( Paste $paste ) : void Set paste.
store ( ) : void Store the comment's data.

Method Details

delete() public méthode

Delete the comment.
public delete ( ) : void
Résultat void

exists() public méthode

Test if comment exists in store.
public exists ( ) : boolean
Résultat boolean

get() public méthode

Get comment data.
public get ( ) : stdClass
Résultat stdClass

getParentId() public méthode

Get parent ID.
public getParentId ( ) : string
Résultat string

getPaste() public méthode

Get paste.
public getPaste ( ) : Paste
Résultat Paste

setNickname() public méthode

Set nickname.
public setNickname ( string $nickname ) : void
$nickname string
Résultat void

setParentId() public méthode

Set parent ID.
public setParentId ( string $id ) : void
$id string
Résultat void

setPaste() public méthode

Set paste.
public setPaste ( Paste $paste ) : void
$paste Paste
Résultat void

store() public méthode

Store the comment's data.
public store ( ) : void
Résultat void