List of instances

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(\Adapter $adapter, array $instances = null) : void

Parameters

$adapter

\Adapter

$instances

array

Return number of instances

count() : integer

Implement Countable::count()

Returns

integer

Return the current element

current() : \Instance

Implement Iterator::current()

Returns

\Instance

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) : \Instance

Implement ArrayAccess::offsetGet()

Parameters

$offset

integer

Exceptions

\Zend_Cloud_Infrastructure_Exception

Returns

\Instance

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 instance

addInstance(\Zend_Cloud_Infrastructure_Instance $instance) : \InstanceList

Parameters

$instance

Returns

\InstanceList

Transforms the Array to array of Instances

constructFromArray(array $list) : void

Parameters

$list

array

 Properties

 

$adapter

$adapter : \Zend_Cloud_Infrastructure_Adapter

Default

 

Array of Zend_Cloud_Infrastructure_Instance

$instances : array

Default

array()
 

Iterator key

$iteratorKey : integer

Default

0