You are here

function akamai_get_class in Akamai 7

Same name and namespace in other branches
  1. 8 akamai.module \akamai_get_class()
  2. 8.2 akamai.module \akamai_get_class()
  3. 6.2 akamai.module \akamai_get_class()
  4. 7.2 akamai.module \akamai_get_class()

Returns the Akamai Cache Control class. This is abstracted to provide the capability of a no-op or recording class for testing purposes.

2 calls to akamai_get_class()
AkamaiTestCase::testDirectClear in ./akamai.test
Tests clear.
akamai_clear_url in ./akamai.module
Clear a URL from Akamai. Clears node/id and any url aliases.

File

./akamai.module, line 285
akamai.module Integration with the Akamai CDN Cache Control Web Service.

Code

function akamai_get_class($params = array()) {
  module_load_include('inc', 'akamai', 'akamai.class');
  $class = variable_get('akamai_service_class', 'AkamaiCacheControlClient');
  $akamai = new $class($params);
  return $akamai;
}