3 class ReplyNoticeStream extends CachingNoticeStream
5 function __construct($userId)
7 parent::__construct(new RawReplyNoticeStream($userId),
8 'reply:stream:' . $userId);
12 class RawReplyNoticeStream extends NoticeStream
16 function __construct($userId)
18 $this->userId = $userId;
21 function getNoticeIds($offset, $limit, $since_id, $max_id)
24 $reply->profile_id = $this->userId;
26 Notice::addWhereSinceId($reply, $since_id, 'notice_id', 'modified');
27 Notice::addWhereMaxId($reply, $max_id, 'notice_id', 'modified');
29 $reply->orderBy('modified DESC, notice_id DESC');
31 if (!is_null($offset)) {
32 $reply->limit($offset, $limit);
38 while ($reply->fetch()) {
39 $ids[] = $reply->notice_id;