Exemplo n.º 1
0
 /**     
  * {@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];
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getActivitiesAggregatedValue($siteId, $conditions, QueryAggregateInterface $aggregate)
 {
     $conditions[DbViewUserActivity::SITEID . ' = ?'] = $siteId;
     return $this->activityMapper->getAggregatedValue($conditions, $aggregate);
 }