Esempio n. 1
0
 /**     
  * {@inheritDoc}
  */
 public function getActivities()
 {
     if (!isset($this->activities)) {
         $this->activities = $this->activityMapper->findUserActivities($this->getId());
         $this->activities = iterator_to_array($this->activities);
         foreach ($this->activities as $activity) {
             $this->activitiesBySite[$activity->getSiteId()] = $activity;
         }
     }
     return $this->activities;
 }