getNotices() takes optional last 2 params

This commit is contained in:
Evan Prodromou 2011-04-10 20:16:14 -04:00
父節點 dad5db25e2
當前提交 8b54f28330
共有 2 個檔案被更改,包括 2 行新增2 行删除

查看文件

@ -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;

查看文件

@ -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);