private function Braintree_ResourceCollection::_getPage in Commerce Braintree 7
requests the next page of results for the collection
Return value
none
2 calls to Braintree_ResourceCollection::_getPage()
- Braintree_ResourceCollection::firstItem in braintree_php/
lib/ Braintree/ ResourceCollection.php - returns the first item in the collection
- Braintree_ResourceCollection::_getNextPage in braintree_php/
lib/ Braintree/ ResourceCollection.php
File
- braintree_php/
lib/ Braintree/ ResourceCollection.php, line 133
Class
- Braintree_ResourceCollection
- ResourceCollection is a container object for result data
Code
private function _getPage($ids) {
$className = $this->_pager['className'];
$classMethod = $this->_pager['classMethod'];
$methodArgs = array();
foreach ($this->_pager['methodArgs'] as $arg) {
array_push($methodArgs, $arg);
}
array_push($methodArgs, $ids);
return call_user_func_array(array(
$className,
$classMethod,
), $methodArgs);
}