Cloud/Infrastructure/ImageList.php
- 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_ImageList
Package: Zend\Cloud\Infrastructure
Returns
Returns
Parameters
Returns
Parameters
Returns
Throws
Parameters
Throws
Parameters
Throws
List of images
- Implements
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $images = array()
<p>Array of Zend_Cloud_Infrastructure_Image</p>
Default value
array()Details- Type
- array
Methods

__construct( $images, null | object $adapter = null) : booleanConstructor
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $images | ||
| $adapter | null | object |
| Type | Description |
|---|---|
| boolean |

addImage( $image) : \ImageListAdd an image
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $image | Image |
| Type | Description |
|---|---|
| \ImageList |

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

current() : \ImageReturn the current element
Implement Iterator::current()
| Type | Description |
|---|---|
| \Image |

key() : intReturn the key of the current element
Implement Iterator::key()
| Type | Description |
|---|---|
| int |

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

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

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