3 class ConversationNoticeStream extends CachingNoticeStream
5 function __construct($id)
7 parent::__construct(new RawConversationNoticeStream($id),
8 'notice:conversation_ids:'.$id);
12 class RawConversationNoticeStream extends NoticeStream
16 function __construct($id)
21 function getNoticeIds($offset, $limit, $since_id, $max_id)
23 $notice = new Notice();
25 $notice->selectAdd(); // clears it
26 $notice->selectAdd('id');
28 $notice->conversation = $this->id;
30 $notice->orderBy('created DESC, id DESC');
32 if (!is_null($offset)) {
33 $notice->limit($offset, $limit);
36 Notice::addWhereSinceId($notice, $since_id);
37 Notice::addWhereMaxId($notice, $max_id);
41 if ($notice->find()) {
42 while ($notice->fetch()) {