getNotices() takes optional last 2 params

This commit is contained in:
Evan Prodromou 2011-04-10 20:16:14 -04:00
parent dad5db25e2
commit 8b54f28330
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ abstract class FilteringNoticeStream extends NoticeStream
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
$total = $offset + $limit;

View File

@ -48,7 +48,7 @@ abstract class NoticeStream
{
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);