# Class CollectionIterator

A collection object. All collection classes must inherit this. It provides methods to lookup, serialize and put contents in a collection. Collections can represent any extended class where any of those listed in models. does not have an implemention for @class Media

  Catapult\CollectionObject
  Catapult\CollectionIterator

Namespace: Catapult
Class:

CollectionObject. Superset of the collections. Provides auxilary functions to manage, update and get elements within a collection

Located at core/Collections.php

## Methods summary

`public` | # `__construct( collection: & $collection, standardOptions: $standardOptions = array() )` get a collection iterator preserve the options from out our initial collection get a collection iterator preserve the options from out our initial collection #### Parameters $collection collection object $standardOptions used for our first listIterator call these will be used throughout our iteration #### Overrides `Catapult\CollectionObject::__construct`
`public` | # `__invoke( $isPrevious = FALSE )` return either a null or set of data return either a null or set of data #### Return: CollectionSequence
`public` | # `fetchAll( )` fetch all the contents fetch all the contents
`public` | # `next( )` same as __invoke will get our next set of collection same as __invoke will get our next set of collection
`public` | # `previous( )` get a previous sequence get a previous sequence

### Methods inherited from Catapult\CollectionObject

`__toString()`, `add()`, `find()`, `first()`, `get()`, `isEmpty()`, `last()`, `listAll()`, `listIterator()`, `reload()`, `setup()`, `toArray()`