|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (ResourceIteratorInterface $iterator, $callback) | |
| apply ($perBatch=50) | |
| getBatchCount () | |
| getIteratedCount () | |
Public Member Functions inherited from Guzzle\Common\AbstractHasDispatcher | |
| addSubscriber (EventSubscriberInterface $subscriber) | |
| dispatch ($eventName, array $context=array()) | |
| getEventDispatcher () | |
| setEventDispatcher (EventDispatcherInterface $eventDispatcher) | |
Static Public Member Functions | |
| static | getAllEvents () |
Protected Attributes | |
| $batches = 0 | |
| $callback | |
| $iterated = 0 | |
| $iterator | |
Protected Attributes inherited from Guzzle\Common\AbstractHasDispatcher | |
| $eventDispatcher | |
Apply a callback to the contents of a {
Definition at line 16 of file ResourceIteratorApplyBatched.php.
| Guzzle\Service\Resource\ResourceIteratorApplyBatched::__construct | ( | ResourceIteratorInterface | $iterator, |
| $callback | |||
| ) |
| ResourceIteratorInterface | $iterator | Resource iterator to apply a callback to |
| array | callable | $callback | Callback method accepting the resource iterator and an array of the iterator's current resources |
Definition at line 59 of file ResourceIteratorApplyBatched.php.
References Guzzle\Service\Resource\ResourceIteratorApplyBatched\$callback, Guzzle\Service\Resource\ResourceIteratorApplyBatched\$iterator, and Guzzle\Common\Version\warn().
| Guzzle\Service\Resource\ResourceIteratorApplyBatched::apply | ( | $perBatch = 50 | ) |
Apply the callback to the contents of the resource iterator
| int | $perBatch | The number of records to group per batch transfer |
Definition at line 73 of file ResourceIteratorApplyBatched.php.
References Guzzle\Service\Resource\ResourceIteratorApplyBatched\$batches, Guzzle\Service\Resource\ResourceIteratorApplyBatched\$callback, Guzzle\Service\Resource\ResourceIteratorApplyBatched\$iterated, Guzzle\Service\Resource\ResourceIteratorApplyBatched\$iterator, Guzzle\Common\AbstractHasDispatcher\dispatch(), and Guzzle\Batch\BatchBuilder\factory().
|
static |
Get a list of all of the events emitted from the class
Reimplemented from Guzzle\Common\AbstractHasDispatcher.
Definition at line 42 of file ResourceIteratorApplyBatched.php.
| Guzzle\Service\Resource\ResourceIteratorApplyBatched::getBatchCount | ( | ) |
Get the total number of batches sent
Definition at line 109 of file ResourceIteratorApplyBatched.php.
References Guzzle\Service\Resource\ResourceIteratorApplyBatched\$batches.
| Guzzle\Service\Resource\ResourceIteratorApplyBatched::getIteratedCount | ( | ) |
Get the total number of iterated resources
Definition at line 119 of file ResourceIteratorApplyBatched.php.
References Guzzle\Service\Resource\ResourceIteratorApplyBatched\$iterated.
|
protected |
Total number of sent batches
Definition at line 34 of file ResourceIteratorApplyBatched.php.
Referenced by Guzzle\Service\Resource\ResourceIteratorApplyBatched\apply(), and Guzzle\Service\Resource\ResourceIteratorApplyBatched\getBatchCount().
|
protected |
Definition at line 22 of file ResourceIteratorApplyBatched.php.
Referenced by Guzzle\Service\Resource\ResourceIteratorApplyBatched\__construct(), and Guzzle\Service\Resource\ResourceIteratorApplyBatched\apply().
|
protected |
Total number of iterated resources
Definition at line 40 of file ResourceIteratorApplyBatched.php.
Referenced by Guzzle\Service\Resource\ResourceIteratorApplyBatched\apply(), and Guzzle\Service\Resource\ResourceIteratorApplyBatched\getIteratedCount().
|
protected |
Definition at line 28 of file ResourceIteratorApplyBatched.php.
Referenced by Guzzle\Service\Resource\ResourceIteratorApplyBatched\__construct(), and Guzzle\Service\Resource\ResourceIteratorApplyBatched\apply().