예제 #1
0
파일: Page.php 프로젝트: FiftyNine/ScpperDB
 /**
  * {@inheritDoc}
  */
 public function getVotes()
 {
     if (!isset($this->votes)) {
         $this->votes = $this->voteMapper->findVotesOnPage($this->getId());
     }
     return $this->votes;
 }
예제 #2
0
 /**
  * {@inheritDoc}
  */
 public function getAggregatedVotesOnUser($userId, $siteId, $aggregates, $order = null, $paginated = false)
 {
     return $this->mapper->getAggregatedVotesOnUser($userId, $siteId, $aggregates, $order, $paginated);
 }