NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class ListObjectsIterator

Iterator for an S3 ListObjects command

This iterator includes the following additional options:

- return_prefixes: Set to true to receive both prefixes and objects in results
- sort_results: Set to true to sort mixed (object/prefix) results
- names_only: Set to true to receive only the object/prefix names

  Guzzle\Common\AbstractHasDispatcher implements Guzzle\Common\HasDispatcherInterface
  Guzzle\Service\Resource\ResourceIterator implements Guzzle\Service\Resource\ResourceIteratorInterface
  Aws\Common\Iterator\AwsResourceIterator
  Aws\S3\Iterator\ListObjectsIterator

Namespace: Aws\S3\Iterator
Located at Aws/S3/Iterator/ListObjectsIterator.php

## Methods summary

- `protected` `handleResults ( Guzzle\Service\Resource\Model $result )`

## Methods detail

# `protected`
`handleResults( `Guzzle\Service\Resource\Model` $result )`

#### Overrides

`Aws\Common\Iterator\AwsResourceIterator::handleResults`

### Methods inherited from Aws\Common\Iterator\AwsResourceIterator

`applyNextToken()`, `determineNextToken()`, `getLastResult()`, `getValueFromResult()`, `prepareRequest()`, `sendRequest()`

### Methods inherited from Guzzle\Service\Resource\ResourceIterator

`__construct()`, `calculatePageSize()`, `count()`, `current()`, `get()`, `getAllEvents()`, `getNextToken()`, `getRequestCount()`, `key()`, `next()`, `resetState()`, `rewind()`, `set()`, `setLimit()`, `setPageSize()`, `toArray()`, `valid()`

### Methods inherited from Guzzle\Common\AbstractHasDispatcher

`addSubscriber()`, `dispatch()`, `getEventDispatcher()`, `setEventDispatcher()`

### Magic methods summary

## Properties summary

### Properties inherited from Aws\Common\Iterator\AwsResourceIterator

`$lastResult`

### Properties inherited from Guzzle\Service\Resource\ResourceIterator

`$command`, `$data`, `$invalid`, `$iteratedCount`, `$limit`, `$nextToken`, `$originalCommand`, `$pageSize`, `$requestCount`, `$resources`, `$retrievedCount`

### Properties inherited from Guzzle\Common\AbstractHasDispatcher

`$eventDispatcher`