Service/Rackspace/Servers/ServerList.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service_Rackspace
- Subpackage
- Servers
\Zend_Service_Rackspace_Servers_ServerList
Package: Zend_Service_Rackspace\Servers
Returns
Returns
Throws
Throws
Throws
List of servers of Rackspace
- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- Uses
- Uses
- Uses
- Uses
Properties
array $servers = array()
of Zend_Service_Rackspace_Servers_Server
Default value
array()
Details- Type
- array
Methods
__construct(\Zend_Service_Rackspace_Servers $service, array $list = array()) : void
Construct
Parameters
Name | Type | Description |
---|---|---|
$service | \Zend_Service_Rackspace_Servers | |
$list | array |
addServer(\Zend_Service_Rackspace_Servers_Server $server) : \Zend_Service_Rackspace_Servers_ServerList
Add a server
Parameters
Returns
Name | Type | Description |
---|---|---|
$server | \Zend_Service_Rackspace_Servers_Server |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_ServerList |
constructFromArray(array $list) : void
Transforms the array to array of Server
Parameters
Name | Type | Description |
---|---|---|
$list | array |
current() : \Zend_Service_Rackspace_Servers_Server
Return the current element
Implement Iterator::current()
ReturnsType | Description |
---|---|
\Zend_Service_Rackspace_Servers_Server |
offsetExists(int $offset) : bool
Whether the offset exists
Implement ArrayAccess::offsetExists()
ParametersName | Type | Description |
---|---|---|
$offset | int |
Type | Description |
---|---|
bool |
offsetGet(int $offset) : \Zend_Service_Rackspace_Servers_Server
Return value at given offset
Implement ArrayAccess::offsetGet()
ParametersName | Type | Description |
---|---|---|
$offset | int |
Type | Description |
---|---|
\Zend_Service_Rackspace_Servers_Server |
Exception | Description |
---|---|
\Zend_Service_Rackspace_Servers_Exception |
offsetSet(int $offset, string $value) : void
Throws exception because all values are read-only
Implement ArrayAccess::offsetSet()
ParametersName | Type | Description |
---|---|---|
$offset | int | |
$value | string |
Exception | Description |
---|---|
\Zend_Service_Rackspace_Servers_Exception |
offsetUnset(int $offset) : void
Throws exception because all values are read-only
Implement ArrayAccess::offsetUnset()
ParametersName | Type | Description |
---|---|---|
$offset | int |
Exception | Description |
---|---|
\Zend_Service_Rackspace_Servers_Exception |