You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by ro...@apache.org on 2014/11/12 02:15:17 UTC
[12/45] incubator-usergrid git commit: fixed iterator had typo .
fixed iterator had typo .
Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/5ba6f0be
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/5ba6f0be
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/5ba6f0be
Branch: refs/heads/master
Commit: 5ba6f0bef0a17089b67e2500b565619d8f4a14dd
Parents: bf7aaba
Author: Jason Kristian <ja...@apps4u.com.au>
Authored: Sun Oct 26 15:58:07 2014 +1000
Committer: Jason Kristian <ja...@apps4u.com.au>
Committed: Sun Oct 26 15:58:07 2014 +1000
----------------------------------------------------------------------
sdks/php5/apache-usergrid/src/Api/ResourceIterator.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/5ba6f0be/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
----------------------------------------------------------------------
diff --git a/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php b/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
index 9eb9065..e26f38f 100644
--- a/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
+++ b/sdks/php5/apache-usergrid/src/Api/ResourceIterator.php
@@ -39,7 +39,7 @@ class ResourceIterator extends BaseIterator
{
parent::__construct($command, $data);
- $this->pageSize = 100;
+ $this->pageSize = 20;
}
/**
@@ -61,7 +61,7 @@ class ResourceIterator extends BaseIterator
$lastItem = end($data);
- $this->nextToken = $result['has_more'] ? $lastItem['uuid'] : false;
+ $this->nextToken = $result['cursor'] ? $lastItem['cursor'] : false;
return $data;
}