12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <?php
- if (!defined('STATUSNET')) {
-
-
- exit(1);
- }
- abstract class NoticeStream
- {
-
- protected $selectVerbs = array();
- public function __construct()
- {
- $this->selectVerbs = array(ActivityVerb::POST, ActivityUtils::resolveUri(ActivityVerb::POST, true));
- }
- abstract function getNoticeIds($offset, $limit, $since_id, $max_id);
- function getNotices($offset, $limit, $sinceId = null, $maxId = null)
- {
- $ids = $this->getNoticeIds($offset, $limit, $sinceId, $maxId);
- $notices = self::getStreamByIds($ids);
- return $notices;
- }
- static function getStreamByIds($ids)
- {
- return Notice::multiGet('id', $ids);
- }
- }
|