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)); }
public function getActivityStream() { return Activity::getStream($this); }
public function getActivityStream() { return Activity::getStream(User::$me); }