PHP Class Newscoop\Entity\Repository\FeedbackRepository

Inheritance: extends Newscoop\Datatable\Source
Datei anzeigen Open project: sourcefabric/newscoop

Public Methods

Method Description
countByUser ( User $user ) : integer Get feedbacks count for user
flush ( ) Flush method
getByUser ( $p_user_id )
getData ( array $params, array $cols ) : Comment[] Get data for table
getPrototype ( ) : Feedback Get new instance of the comment
save ( Feedback $entity, array $values ) : Feedback Method for saving a feedback
setStatus ( array $feedbacks, string $status ) : void Method for setting status

Protected Methods

Method Description
buildFilter ( array $cols, array $filter, $qb, $andx ) : Doctrine\ORM\Query\Expr Build filter condition
buildWhere ( array $cols, string $search, $qb = null, $andx = null ) : Doctrine\ORM\Query\Expr Build where condition

Private Methods

Method Description
setFeedbackStatus ( Feedback $feedback, string $status ) : void Method for setting status for a feedback message

Method Details

buildFilter() protected method

Build filter condition
protected buildFilter ( array $cols, array $filter, $qb, $andx ) : Doctrine\ORM\Query\Expr
$cols array
$filter array
$qb
$andx
return Doctrine\ORM\Query\Expr

buildWhere() protected method

Build where condition
protected buildWhere ( array $cols, string $search, $qb = null, $andx = null ) : Doctrine\ORM\Query\Expr
$cols array
$search string
return Doctrine\ORM\Query\Expr

countByUser() public method

Get feedbacks count for user
public countByUser ( User $user ) : integer
$user Newscoop\Entity\User
return integer

flush() public method

Flush method
public flush ( )

getByUser() public method

public getByUser ( $p_user_id )

getData() public method

Get data for table
public getData ( array $params, array $cols ) : Comment[]
$params array
$cols array
return Comment[]

getPrototype() public method

Get new instance of the comment
public getPrototype ( ) : Feedback
return Newscoop\Entity\Feedback

save() public method

Method for saving a feedback
public save ( Feedback $entity, array $values ) : Feedback
$entity Newscoop\Entity\Feedback
$values array
return Newscoop\Entity\Feedback \Newscoop\Entity\Feedback

setStatus() public method

Method for setting status
public setStatus ( array $feedbacks, string $status ) : void
$feedbacks array Feedback identifiers
$status string
return void