function AkamaiCacheControlClient::__construct in Akamai 7.3
Same name and namespace in other branches
- 8 akamai.class.inc \AkamaiCacheControlClient::__construct()
- 8.2 akamai.class.inc \AkamaiCacheControlClient::__construct()
- 6.2 akamai.class.inc \AkamaiCacheControlClient::__construct()
- 7 akamai.class.inc \AkamaiCacheControlClient::__construct()
- 7.2 akamai.class.inc \AkamaiCacheControlClient::__construct()
Constructs an instance of the Akamai Cache Control facade.
Valid parameters are specified in the options array as key/value pairs with the parameter name being the key and the parameter setting being the value
Parameters
options An array of parameter options for the Akamae Cache Control: Web Service. These will override the defaults.
File
- ./
akamai.class.inc, line 40 - akamai.class.inc Akamai is a registered trademark of Akamai Technologies, Inc. This class is an abstraction around the Akamai Cache Control API.
Class
- AkamaiCacheControlClient
- Default implementation of the AkamaiCacheControl interface
Code
function __construct($options = array()) {
$this->defaults = array(
'basepath' => variable_get("akamai_basepath", ""),
'name' => variable_get("akamai_username", ""),
'pwd' => variable_get("akamai_password", ""),
'action' => variable_get("akamai_action", ""),
'type' => "arl",
'domain' => variable_get("akamai_domain", ""),
'restapi' => variable_get("akamai_restapi", ""),
'timeout' => variable_get("akamai_timeout", "5"),
);
$this->parameters = array_merge($this->defaults, $options);
}