Cloud/Infrastructure/InstanceList.php
- 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_InstanceList
Package: Zend_Cloud\Infrastructure





Returns

Returns
Throws

Throws

Throws
List of instances
- Implements
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $instances = array()Array of Zend_Cloud_Infrastructure_Instance
Default value
array()Details- Type
- array
Methods

__construct(\Adapter $adapter, array $instances = null) : voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $adapter | \Adapter | |
| $instances | array |

addInstance( $instance) : \InstanceListAdd an instance
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $instance |
| Type | Description |
|---|---|
| \InstanceList |

constructFromArray(array $list) : voidTransforms the Array to array of Instances
Parameters
| Name | Type | Description |
|---|---|---|
| $list | array |

current() : \InstanceReturn the current element
Implement Iterator::current()
Returns| Type | Description |
|---|---|
| \Instance |

offsetExists(int $offset) : boolWhether the offset exists
Implement ArrayAccess::offsetExists()
Parameters| Name | Type | Description |
|---|---|---|
| $offset | int |
| Type | Description |
|---|---|
| bool |

offsetGet(int $offset) : \InstanceReturn value at given offset
Implement ArrayAccess::offsetGet()
Parameters| Name | Type | Description |
|---|---|---|
| $offset | int |
| Type | Description |
|---|---|
| \Instance |
| Exception | Description |
|---|---|
| \Zend_Cloud_Infrastructure_Exception |

offsetSet(int $offset, string $value) : voidThrows exception because all values are read-only
Implement ArrayAccess::offsetSet()
Parameters| Name | Type | Description |
|---|---|---|
| $offset | int | |
| $value | string |
| Exception | Description |
|---|---|
| \Zend_Cloud_Infrastructure_Exception |

offsetUnset(int $offset) : voidThrows exception because all values are read-only
Implement ArrayAccess::offsetUnset()
Parameters| Name | Type | Description |
|---|---|---|
| $offset | int |
| Exception | Description |
|---|---|
| \Zend_Cloud_Infrastructure_Exception |