getNotices() takes optional last 2 params
This commit is contained in:
parent
dad5db25e2
commit
8b54f28330
@ -56,7 +56,7 @@ abstract class FilteringNoticeStream extends NoticeStream
|
|||||||
|
|
||||||
abstract function filter($notice);
|
abstract function filter($notice);
|
||||||
|
|
||||||
function getNotices($offset, $limit, $sinceId, $maxId)
|
function getNotices($offset, $limit, $sinceId=null, $maxId=null)
|
||||||
{
|
{
|
||||||
// "offset" is virtual; we have to get a lot
|
// "offset" is virtual; we have to get a lot
|
||||||
$total = $offset + $limit;
|
$total = $offset + $limit;
|
||||||
|
@ -48,7 +48,7 @@ abstract class NoticeStream
|
|||||||
{
|
{
|
||||||
abstract function getNoticeIds($offset, $limit, $since_id, $max_id);
|
abstract function getNoticeIds($offset, $limit, $since_id, $max_id);
|
||||||
|
|
||||||
function getNotices($offset, $limit, $sinceId, $maxId)
|
function getNotices($offset, $limit, $sinceId = null, $maxId = null)
|
||||||
{
|
{
|
||||||
$ids = $this->getNoticeIds($offset, $limit, $sinceId, $maxId);
|
$ids = $this->getNoticeIds($offset, $limit, $sinceId, $maxId);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user