예제 #1
0
파일: User.php 프로젝트: FiftyNine/ScpperDB
 /**     
  * {@inheritDoc}
  */
 public function getActivityOnSite($siteId)
 {
     if (!array_key_exists($siteId, $this->activitiesBySite)) {
         $this->activitiesBySite[$siteId] = $this->activityMapper->findUserActivity($this->getId(), $siteId);
     }
     return $this->activitiesBySite[$siteId];
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function getActivitiesAggregatedValue($siteId, $conditions, QueryAggregateInterface $aggregate)
 {
     $conditions[DbViewUserActivity::SITEID . ' = ?'] = $siteId;
     return $this->activityMapper->getAggregatedValue($conditions, $aggregate);
 }