- $inbox = Inbox::staticGet('user_id', $user_id);
-
- if (empty($inbox)) {
- $inbox = Inbox::fromNoticeInbox($user_id);
- if (empty($inbox)) {
- return array();
- } else {
- $inbox->encache();
- }
- }
-
- $ids = unpack('N*', $inbox->notice_ids);
-
- // XXX: handle since_id
- // XXX: handle max_id
-
- $ids = array_slice($ids, $offset, $limit);