PHP Class Newscoop\Entity\Repository\Comment\AcceptanceRepository

Inheritance: extends Newscoop\Datatable\Source
Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
ban ( $p_forum, array $p_params ) Method that adds ban for a user
checkBanned ( mixed $p_params, $p_forum ) Method that checks for if a commenter is banned
checkParamsBanned ( $p_name, $p_email, $p_ip, $p_forum ) : boolean Method that search for if a params are banned
delete ( Newscoop\Entity\Comment\Acceptance $p_acceptance ) : void Delete user
flush ( ) Flush mechanism
isBanned ( $p_commenter, $p_forum ) : array Method that search for if a commenter is banned
matched ( array $p_params )
save ( Newscoop\Entity\Comment\Acceptance $p_acceptance, array $p_values ) : void Save a acceptance criteria
saveBanned ( Commenter $p_commenter, $p_forum, $p_values ) Method that save banned for a commenter
unban ( $p_forum, array $p_params ) Method that removes ban for a user

Private Methods

Method Description
setEntity ( array $p_params ) : array Get the setters for the entity

Method Details

ban() public method

Method that adds ban for a user
public ban ( $p_forum, array $p_params )
$p_params array

checkBanned() public method

Method that checks for if a commenter is banned
public checkBanned ( mixed $p_params, $p_forum )
$p_params mixed

checkParamsBanned() public method

Method that search for if a params are banned
public checkParamsBanned ( $p_name, $p_email, $p_ip, $p_forum ) : boolean
$p_name
$p_email
$p_ip
$p_forum
return boolean

delete() public method

Delete user
public delete ( Newscoop\Entity\Comment\Acceptance $p_acceptance ) : void
$p_acceptance Newscoop\Entity\Comment\Acceptance
return void

flush() public method

Flush mechanism
public flush ( )

isBanned() public method

Method that search for if a commenter is banned
public isBanned ( $p_commenter, $p_forum ) : array
$p_commenter
$p_forum
return array

matched() public method

public matched ( array $p_params )
$p_params array

save() public method

Save a acceptance criteria
public save ( Newscoop\Entity\Comment\Acceptance $p_acceptance, array $p_values ) : void
$p_acceptance Newscoop\Entity\Comment\Acceptance
$p_values array
return void

saveBanned() public method

Method that save banned for a commenter
public saveBanned ( Commenter $p_commenter, $p_forum, $p_values )
$p_commenter Newscoop\Entity\Comment\Commenter

unban() public method

Method that removes ban for a user
public unban ( $p_forum, array $p_params )
$p_params array