List of images

package Zend_Cloud
subpackage Infrastructure
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

__construct($images, null|object $adapter = null) : boolean

Parameters

$images

$adapter

nullobject

Returns

boolean

Return number of images

count() : integer

Implement Countable::count()

Returns

integer

Return the current element

current() : \Image

Implement Iterator::current()

Returns

\Image

Return the key of the current element

key() : integer

Implement Iterator::key()

Returns

integer

Move forward to next element

next() : void

Implement Iterator::next()

Whether the offset exists

offsetExists(integer $offset) : boolean

Implement ArrayAccess::offsetExists()

Parameters

$offset

integer

Returns

boolean

Return value at given offset

offsetGet(integer $offset) : \Image

Implement ArrayAccess::offsetGet()

Parameters

$offset

integer

Exceptions

\Zend_Cloud_Infrastructure_Exception

Returns

\Image

Throws exception because all values are read-only

offsetSet(integer $offset, string $value) 

Implement ArrayAccess::offsetSet()

Parameters

$offset

integer

$value

string

Exceptions

\Zend_Cloud_Infrastructure_Exception

Throws exception because all values are read-only

offsetUnset(integer $offset) 

Implement ArrayAccess::offsetUnset()

Parameters

$offset

integer

Exceptions

\Zend_Cloud_Infrastructure_Exception

Rewind the Iterator to the first element

rewind() : void

Implement Iterator::rewind()

Check if there is a current element after calls to rewind() or next()

valid() : boolean

Implement Iterator::valid()

Returns

boolean

Add an image

addImage(\Zend_Cloud_Infrastructure_Image $image) : \ImageList

Parameters

$image

Returns

\ImageList

Transforms the Array to array of Instances

constructFromArray(array $list) : void

Parameters

$list

array

 Properties

 

The Image adapter (if exists)

$adapter : object

Default

 

Array of Zend_Cloud_Infrastructure_Image

$images : array

Default

array()
 

Iterator key

$iteratorKey : integer

Default

0