Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Attributes | List of all members
Zend_Service_Rackspace_Servers_SharedIpGroup Class Reference

Public Member Functions

 __construct ($service, $data)
 Construct.
 
 getName ()
 Get the name of the shared IP group.
 
 getId ()
 Get the id of the shared IP group.
 
 getServersId ()
 Get the server's array of the shared IP group.
 
 getServer ($id)
 Get the server.
 
 createServer (array $data, $metadata=array(), $files=array())
 Create a server in the shared Ip Group.
 
 toArray ()
 To Array.
 

Public Attributes

const ERROR_PARAM_CONSTRUCT = 'You must pass a Zend_Service_Rackspace_Servers object and an array'
 
const ERROR_PARAM_NO_NAME = 'You must pass the image\'s name in the array (name)'
 
const ERROR_PARAM_NO_ID = 'You must pass the image\'s id in the array (id)'
 
const ERROR_PARAM_NO_SERVERS = 'The servers parameter must be an array of Ids'
 

Protected Attributes

 $name
 
 $id
 
 $serversId = array()
 
 $service
 

Constructor & Destructor Documentation

__construct (   $service,
  $data 
)

Construct.

Parameters
Zend_Service_Rackspace_Servers$service
array$data
Returns
void

Member Function Documentation

createServer ( array  $data,
  $metadata = array(),
  $files = array() 
)

Create a server in the shared Ip Group.

Parameters
array$data
array$metadata
array$files
Returns
Zend_Service_Rackspace_Servers_Server|boolean
getId ( )

Get the id of the shared IP group.

Returns
string
getName ( )

Get the name of the shared IP group.

Returns
string
getServer (   $id)

Get the server.

Parameters
integer$id
Returns
Zend_Service_Rackspace_Servers_Server|boolean
getServersId ( )

Get the server's array of the shared IP group.

Returns
string
toArray ( )

To Array.

Returns
array

Member Data Documentation

$id
protected
$name
protected
$serversId = array()
protected
$service
protected
const ERROR_PARAM_CONSTRUCT = 'You must pass a Zend_Service_Rackspace_Servers object and an array'
const ERROR_PARAM_NO_ID = 'You must pass the image\'s id in the array (id)'
const ERROR_PARAM_NO_NAME = 'You must pass the image\'s name in the array (name)'
const ERROR_PARAM_NO_SERVERS = 'The servers parameter must be an array of Ids'