PHP 클래스 Newscoop\Entity\Repository\RatingRepository

상속: extends Doctrine\ORM\EntityRepository
파일 보기 프로젝트 열기: sourcefabric/newscoop

공개 메소드들

메소드 설명
countBy ( array $criteria ) : integer Get rating count
flush ( ) Flush method
getArticleRating ( $articleId ) : array Get rating stats for one article
getPrototype ( ) : Rating Get new instance of the rating
save ( Rating $entity, array $values ) : Rating Method for saving a rating
totalRatingBy ( array $criteria ) : integer Get total rating score
update ( Rating $entity, array $values ) : Rating Method for updating a rating

메소드 상세

countBy() 공개 메소드

Get rating count
public countBy ( array $criteria ) : integer
$criteria array
리턴 integer

flush() 공개 메소드

Flush method
public flush ( )

getArticleRating() 공개 메소드

Get rating stats for one article
public getArticleRating ( $articleId ) : array
리턴 array

getPrototype() 공개 메소드

Get new instance of the rating
public getPrototype ( ) : Rating
리턴 Newscoop\Entity\Rating

save() 공개 메소드

Method for saving a rating
public save ( Rating $entity, array $values ) : Rating
$entity Newscoop\Entity\Rating
$values array
리턴 Newscoop\Entity\Rating $entity

totalRatingBy() 공개 메소드

Get total rating score
public totalRatingBy ( array $criteria ) : integer
$criteria array
리턴 integer

update() 공개 메소드

Method for updating a rating
public update ( Rating $entity, array $values ) : Rating
$entity Newscoop\Entity\Rating
$values array
리턴 Newscoop\Entity\Rating $entity