function AkamaiCacheControlClient::__construct in Akamai 6.2
Same name and namespace in other branches
- 8 akamai.class.inc \AkamaiCacheControlClient::__construct()
- 8.2 akamai.class.inc \AkamaiCacheControlClient::__construct()
- 7.3 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
array $options: An array of parameter options for the Akamae Cache Control Web Service. These will override the defaults.
File
- ./
akamai.class.inc, line 44 - akamai.class.inc
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", ""),
'email' => variable_get("akamai_email", ""),
);
$this->parameters = array_merge($this->defaults, $options);
}