Beispiel #1
0
 public function activity()
 {
     $this->setTitle('Activity Log');
     $collection = Activity::getStream();
     $per_page = 20;
     $page = $collection->putWithinBounds($this->args('page'), $per_page);
     $this->set('per_page', $per_page);
     $this->set('total', $collection->count());
     $this->set('page', $page);
     $this->set('activities', $collection->getPage($page, $per_page));
 }
Beispiel #2
0
 public function getActivityStream()
 {
     return Activity::getStream($this);
 }
Beispiel #3
0
 public function getActivityStream()
 {
     return Activity::getStream(User::$me);
 }