/** * Get notices * * @return array notices */ function getNotices() { $notices = array(); $profile = $this->auth_user ? $this->auth_user->getProfile() : null; $stream = new PublicNoticeStream($profile); $notice = $stream->getNotices(($this->page - 1) * $this->count, $this->count, $this->since_id, $this->max_id); $notices = $notice->fetchAll(); NoticeList::prefill($notices); return $notices; }
static function publicStream($offset = 0, $limit = 20, $since_id = null, $max_id = null) { $stream = new PublicNoticeStream(); return $stream->getNotices($offset, $limit, $since_id, $max_id); }