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