*/
abstract class NoticeStream
{
- protected $allVerbs = false; // Will only get 'post' activityverbs by default.
+ protected $selectVerbs = null; // must be set to array
+ protected $unselectVerbs = null; // must be set to array
+
+ public function __construct()
+ {
+ if ($this->selectVerbs === null) {
+ $this->selectVerbs = array(ActivityVerb::POST, ActivityUtils::resolveUri(ActivityVerb::POST, true));
+ }
+ if ($this->unselectVerbs === null) {
+ $this->unselectVerbs = array(ActivityVerb::DELETE);
+ }
+ }
abstract function getNoticeIds($offset, $limit, $since_id, $max_id);