PHP Class Newscoop\Entity\Repository\FeedbackRepository

Inheritance: extends Newscoop\Datatable\Source
Afficher le fichier Open project: sourcefabric/newscoop

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

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

Method Details

buildFilter() protected méthode

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

buildWhere() protected méthode

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

countByUser() public méthode

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

flush() public méthode

Flush method
public flush ( )

getByUser() public méthode

public getByUser ( $p_user_id )

getData() public méthode

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

getPrototype() public méthode

Get new instance of the comment
public getPrototype ( ) : Feedback
Résultat Newscoop\Entity\Feedback

save() public méthode

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

setStatus() public méthode

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