Example #1
0
 /**
  * {@inheritDoc}
  */
 public function getAggregatedForPage($pageId, $aggregates, $onlyClean = false)
 {
     $conditions = array(DbViewVotes::PAGEID . ' = ?' => $pageId);
     if ($onlyClean) {
         $conditions[] = DbViewVotes::FROMMEMBER . ' = 1';
     }
     return $this->mapper->getAggregatedValues($conditions, $aggregates);
 }