+ var $streamProfile;
+ var $userProfile;
+
+ function __construct($profile, $userProfile = -1)
+ {
+ if (is_int($userProfile) && $userProfile == -1) {
+ $userProfile = Profile::current();
+ }
+ $this->streamProfile = $profile;
+ $this->userProfile = $userProfile;
+ parent::__construct(new CachingNoticeStream(new RawProfileNoticeStream($profile),
+ 'profile:notice_ids:' . $profile->id),
+ $userProfile);
+ }
+
+ function getNoticeIds($offset, $limit, $since_id=null, $max_id=null)
+ {
+ if ($this->impossibleStream()) {
+ return array();
+ } else {
+ return parent::getNoticeIds($offset, $limit, $since_id, $max_id);
+ }
+ }
+
+ function getNotices($offset, $limit, $since_id=null, $max_id=null)