Cloud/Infrastructure/InstanceList.php

Show: inherited
Table of Contents

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Cloud  
Subpackage
Infrastructure  

\Zend_Cloud_Infrastructure_InstanceList

Package: Zend\Cloud\Infrastructure

List of instances

Implements
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

Propertyprotected\Zend_Cloud_Infrastructure_Adapter $adapter =

Propertyprotectedarray $instances = array()

<p>Array of Zend_Cloud_Infrastructure_Instance</p>
Default valuearray()Details
Type
array
Propertyprotectedint $iteratorKey = 0

<p>Iterator key</p>
Default value0Details
Type
int

Methods

methodpublic__construct(\Adapter $adapter, array $instances = null) : void

Constructor

Parameters
Name Type Description
$adapter \Adapter
$instances array
methodprotectedaddInstance( $instance) : \InstanceList

Add an instance

Parameters
Name Type Description
$instance

Instance

Returns
Type Description
\InstanceList
methodprotectedconstructFromArray(array $list) : void

Transforms the Array to array of Instances

Parameters
Name Type Description
$list array
methodpubliccount() : int

Return number of instances

Implement Countable::count()

Returns
Type Description
int
methodpubliccurrent() : \Instance

Return the current element

Implement Iterator::current()

Returns
Type Description
\Instance
methodpublickey() : int

Return the key of the current element

Implement Iterator::key()

Returns
Type Description
int
methodpublicnext() : void

Move forward to next element

Implement Iterator::next()

methodpublicoffsetExists(int $offset) : bool

Whether the offset exists

Implement ArrayAccess::offsetExists()

Parameters
Name Type Description
$offset int
Returns
Type Description
bool
methodpublicoffsetGet(int $offset) : \Instance

Return value at given offset

Implement ArrayAccess::offsetGet()

Parameters
Name Type Description
$offset int
Returns
Type Description
\Instance
Throws
Exception Description
\Zend_Cloud_Infrastructure_Exception
methodpublicoffsetSet(int $offset, string $value) : void

Throws exception because all values are read-only

Implement ArrayAccess::offsetSet()

Parameters
Name Type Description
$offset int
$value string
Throws
Exception Description
\Zend_Cloud_Infrastructure_Exception
methodpublicoffsetUnset(int $offset) : void

Throws exception because all values are read-only

Implement ArrayAccess::offsetUnset()

Parameters
Name Type Description
$offset int
Throws
Exception Description
\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
Type Description
bool
Documentation was generated by phpDocumentor 2.0.0a8.