PHP Класс Newscoop\Entity\Repository\FeedbackRepository

Наследование: extends Newscoop\Datatable\Source
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
setFeedbackStatus ( Feedback $feedback, string $status ) : void Method for setting status for a feedback message

Описание методов

buildFilter() защищенный метод

Build filter condition
protected buildFilter ( array $cols, array $filter, $qb, $andx ) : Doctrine\ORM\Query\Expr
$cols array
$filter array
$qb
$andx
Результат Doctrine\ORM\Query\Expr

buildWhere() защищенный метод

Build where condition
protected buildWhere ( array $cols, string $search, $qb = null, $andx = null ) : Doctrine\ORM\Query\Expr
$cols array
$search string
Результат Doctrine\ORM\Query\Expr

countByUser() публичный метод

Get feedbacks count for user
public countByUser ( User $user ) : integer
$user Newscoop\Entity\User
Результат integer

flush() публичный метод

Flush method
public flush ( )

getByUser() публичный метод

public getByUser ( $p_user_id )

getData() публичный метод

Get data for table
public getData ( array $params, array $cols ) : Comment[]
$params array
$cols array
Результат Comment[]

getPrototype() публичный метод

Get new instance of the comment
public getPrototype ( ) : Feedback
Результат Newscoop\Entity\Feedback

save() публичный метод

Method for saving a feedback
public save ( Feedback $entity, array $values ) : Feedback
$entity Newscoop\Entity\Feedback
$values array
Результат Newscoop\Entity\Feedback \Newscoop\Entity\Feedback

setStatus() публичный метод

Method for setting status
public setStatus ( array $feedbacks, string $status ) : void
$feedbacks array Feedback identifiers
$status string
Результат void