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 license@zend.com 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
- Subpackage
- Rackspace
\Zend_Service_Rackspace_Abstract
Package: Zend_Service
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)
ParametersName | Type | Description |
---|---|---|
$user | string | |
$key | string | |
$authUrl | string |
getHttpClient() : \Zend_Http_Client
get the HttpClient instance
Returns
Type | Description |
---|---|
\Zend_Http_Client |
getManagementUrl() : string | boolean
Get the management server URL
Returns
Type | Description |
---|---|
string | boolean |
httpCall(string $url, string $method, array $headers = array(), $data = array(), string $body = null) : \Zend_Http_Response
HTTP call
Parameters
Returns
Name | Type | Description |
---|---|---|
$url | string | |
$method | string | |
$headers | array | |
$data | ||
$body | string |
Type | Description |
---|---|
\Zend_Http_Response |
setServiceNet(boolean $useServiceNet = true) : void
Sets whether to use ServiceNet
ServiceNet is Rackspace's internal network. Bandwidth on ServiceNet is
not charged.
ParametersName | Type | Description |
---|---|---|
$useServiceNet | boolean |