You are here

function AkamaiCacheControl::__construct in Akamai 6

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 22
akamai.class.inc Akamai is a registered trademark of Akamai Technologies, Inc. This class is an abstraction around the Akamai Cache Control API.

Class

AkamaiCacheControl
@file akamai.class.inc Akamai is a registered trademark of Akamai Technologies, Inc. This class is an abstraction around the Akamai Cache Control API.

Code

function __construct($options = array()) {
  $this->defaults = array(
    'basepath' => variable_get("AkamaiCC_basepath", ""),
    'name' => variable_get("AkamaiCC_name", ""),
    'pwd' => variable_get("AkamaiCC_pwd", ""),
    'action' => variable_get("AkamaiCC_action", ""),
    'type' => "arl",
    'domain' => variable_get("AkamaiCC_domain", ""),
    'soap_wsdl' => variable_get("AkamaiCC_soap_wsdl", ""),
    'email' => variable_get("AkamaiCC_email", ""),
  );
  $this->parameters = array_merge($this->defaults, $options);
}