示例#1
0
 static function getStream($tag, $offset = 0, $limit = 20, $sinceId = 0, $maxId = 0)
 {
     $stream = new TagNoticeStream($tag);
     return $stream->getNotices($offset, $limit, $sinceId, $maxId);
 }
 /**
  * Get notices
  *
  * @return array notices
  */
 function getNotices()
 {
     $notices = array();
     $stream = new TagNoticeStream($this->tag);
     $notice = $stream->getNotices(($this->page - 1) * $this->count, $this->count, $this->since_id, $this->max_id);
     while ($notice->fetch()) {
         $notices[] = clone $notice;
     }
     return $notices;
 }