projects
/
web.Reader
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a682c7d
)
Reader/Api/Reader_read.php
author
Alan Knowles
<alan@roojs.com>
Thu, 12 May 2016 07:10:18 +0000
(15:10 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 12 May 2016 07:10:18 +0000
(15:10 +0800)
Reader/Api/Reader_read.php
patch
|
blob
|
history
diff --git
a/Reader/Api/Reader_read.php
b/Reader/Api/Reader_read.php
index
03e41a0
..
6987162
100644
(file)
--- a/
Reader/Api/Reader_read.php
+++ b/
Reader/Api/Reader_read.php
@@
-52,7
+52,9
@@
class Reader_Api_Reader_read extends Reader
// oldest first..
$read->orderBy('join_article_id_id.published_dt ASC');
-
+ $off = isset($_REQUEST['offset']) ? (int)$_REQUEST['offset'] : 0;
+ $lim = isset($_REQUEST['limit']) ? (int)$_REQUEST['limit'] : 0;
+ $this->limit($off, min(200, $lim));
$this->jdata($read->fetchAll(false,false, 'toPublicArray'));
}
}
\ No newline at end of file