- $notice = new Notice();
-
- $notice->selectAdd(); // clears it
- $notice->selectAdd('id');
-
- $notice->conversation = $this->id;
-
- $notice->orderBy('created DESC, id DESC');
-
- if (!is_null($offset)) {
- $notice->limit($offset, $limit);
- }
-
- Notice::addWhereSinceId($notice, $since_id);
- Notice::addWhereMaxId($notice, $max_id);
+ $all = Memcached_DataObject::listGet('Notice', 'conversation', array($this->id));
+ $notices = $all[$this->id];
+ // Re-order in reverse-chron
+ usort($notices, array('RawConversationNoticeStream', '_reverseChron'));
+ // FIXME: handle since and max
+ $wanted = array_slice($notices, $offset, $limit);
+ return new ArrayWrapper($wanted);
+ }