Service/Rackspace/Abstract.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-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- Rackspace
\Zend_Service_Rackspace_Abstract
Constants
Properties
Methods


__construct(string $user, string $key, string $authUrl = self::US_AUTH_URL) : void
Constructor
You must pass the account and the Rackspace authentication key. Optional: the authentication url (default is US)
Name | Type | Description |
---|---|---|
$user | string | |
$key | string | |
$authUrl | string |


getHttpClient() : \Zend_Http_Client
get the HttpClient instance
Type | Description |
---|---|
\Zend_Http_Client |


getManagementUrl() : string | boolean
Get the management server URL
Type | Description |
---|---|
string | boolean |


httpCall(string $url, string $method, array $headers = array(), $data = array(), string $body = null) : \Zend_Http_Response
HTTP call
Name | Type | Description |
---|---|---|
$url | string | |
$method | string | |
$headers | array | |
$data | ||
$body | string |
Type | Description |
---|---|
\Zend_Http_Response |


isSuccessful() : boolean
Return true is the last call was successful
Type | Description |
---|---|
boolean |


setAuthUrl(string $url) : void
Set the Authentication URL
Name | Type | Description |
---|---|---|
$url | string |


setServiceNet(boolean $useServiceNet = true) : void
Sets whether to use ServiceNet
ServiceNet is Rackspace's internal network. Bandwidth on ServiceNet is not charged.
Name | Type | Description |
---|---|---|
$useServiceNet | boolean |