PHP Class Newscoop\Entity\Repository\RatingRepository

Inheritance: extends Doctrine\ORM\EntityRepository
Exibir arquivo Open project: sourcefabric/newscoop

Public Methods

Method Description
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

Method Details

countBy() public method

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

flush() public method

Flush method
public flush ( )

getArticleRating() public method

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

getPrototype() public method

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

save() public method

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

totalRatingBy() public method

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

update() public method

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