Class ResourceIterator
Class that holds an event dispatcher
- Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
- Guzzle\Service\Resource\ResourceIterator implements Guzzle\Service\Resource\ResourceIteratorInterface
Direct known subclasses
Guzzle\Tests\Service\Mock\Model\MockCommandIteratorNamespace: Guzzle\Service\Resource
Located at src/Guzzle/Service/Resource/ResourceIterator.php
public static
array
|
|
public
|
|
public
array
|
|
public
|
|
public
|
#
setPageSize( integer $pageSize )
Attempt to limit the total number of resources retrieved per request by the iterator. |
public
mixed|null
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
integer
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
protected
integer
|
#
calculatePageSize( )
Returns the value that should be specified for the page size for a request that will maintain any hard limits, but still honor the specified pageSize if the number of items retrieved + pageSize < hard limit |
protected
|
|
abstract protected
array
|
#
sendRequest( )
Send a request to retrieve the next page of results. Hook for subclasses to implement. |
addSubscriber(),
dispatch(),
getEventDispatcher(),
setEventDispatcher()
|
protected
|
$command
Command used to send requests |
|
protected
|
$originalCommand
First sent command |
|
protected
array
|
$resources
Currently loaded resources |
|
protected
integer
|
$retrievedCount
Total number of resources that have been retrieved |
#
0
|
protected
integer
|
$iteratedCount
Total number of resources that have been iterated |
#
0
|
protected
string
|
$nextToken
NextToken/Marker for a subsequent request |
#
false
|
protected
integer
|
$pageSize
Maximum number of resources to fetch per request |
|
protected
integer
|
$limit
Maximum number of resources to retrieve in total |
|
protected
integer
|
$requestCount
Number of requests sent |
#
0
|
protected
array
|
$data
Initial data passed to the constructor |
#
array()
|
protected
boolean
|
$invalid
Whether or not the current value is known to be invalid |
$eventDispatcher
|