Cloud/Infrastructure/ImageList.php

Show: PublicProtectedPrivateinherited
Table of Contents
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Cloud  
Subpackage
Infrastructure  

\Zend_Cloud_Infrastructure_ImageList

Package: Zend_Cloud\Infrastructure
List of images
Implements
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedobject $adapter
The Image adapter (if exists)
Details
Type
object
>VPropertyprotectedarray $images = array()

Array of Zend_Cloud_Infrastructure_Image

Default valuearray()Details
Type
array
>VPropertyprotectedint $iteratorKey = 0

Iterator key

Default value0Details
Type
int

Methods

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

Constructor

Parameters
NameTypeDescription
$images
$adapternull | object
Returns
TypeDescription
boolean
methodprotectedaddImage( $image) : \ImageList

Add an image

Parameters
NameTypeDescription
$image
Returns
TypeDescription
\ImageList
methodprotectedconstructFromArray(array $list) : void

Transforms the Array to array of Instances

Parameters
NameTypeDescription
$listarray
methodpubliccount() : int

Return number of images

Implement Countable::count()
Returns
TypeDescription
int
methodpubliccurrent() : \Image

Return the current element

Implement Iterator::current()
Returns
TypeDescription
\Image
methodpublickey() : int

Return the key of the current element

Implement Iterator::key()
Returns
TypeDescription
int
methodpublicnext() : void

Move forward to next element

Implement Iterator::next()
methodpublicoffsetExists(int $offset) : bool

Whether the offset exists

Implement ArrayAccess::offsetExists()
Parameters
NameTypeDescription
$offsetint
Returns
TypeDescription
bool
methodpublicoffsetGet(int $offset) : \Image

Return value at given offset

Implement ArrayAccess::offsetGet()
Parameters
NameTypeDescription
$offsetint
Returns
TypeDescription
\Image
Throws
ExceptionDescription
\Zend_Cloud_Infrastructure_Exception
methodpublicoffsetSet(int $offset, string $value) : void

Throws exception because all values are read-only

Implement ArrayAccess::offsetSet()
Parameters
NameTypeDescription
$offsetint
$valuestring
Throws
ExceptionDescription
\Zend_Cloud_Infrastructure_Exception
methodpublicoffsetUnset(int $offset) : void

Throws exception because all values are read-only

Implement ArrayAccess::offsetUnset()
Parameters
NameTypeDescription
$offsetint
Throws
ExceptionDescription
\Zend_Cloud_Infrastructure_Exception
methodpublicrewind() : void

Rewind the Iterator to the first element

Implement Iterator::rewind()
methodpublicvalid() : bool

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

Implement Iterator::valid()
Returns
TypeDescription
bool
Documentation was generated by phpDocumentor 2.2.0 .