You are here

class RecordingCacheControlClient in Akamai 8.2

Same name and namespace in other branches
  1. 8 akamai.class.inc \RecordingCacheControlClient
  2. 6.2 akamai.class.inc \RecordingCacheControlClient
  3. 7.3 akamai.class.inc \RecordingCacheControlClient
  4. 7 akamai.class.inc \RecordingCacheControlClient
  5. 7.2 akamai.class.inc \RecordingCacheControlClient

Implementation of the AkamaiCacheControl interface that records what was sent to it. Hint: This is only useful for testing.

Hierarchy

Expanded class hierarchy of RecordingCacheControlClient

3 string references to 'RecordingCacheControlClient'
AkamaiHomepageTestCase::setUp in ./akamai.test
AkamaiHookTestCase::setUp in ./akamai.test
AkamaiTestCase::setUp in ./akamai.test

File

./akamai.class.inc, line 131
akamai.class.inc Akamai is a registered trademark of Akamai Technologies, Inc. This class is an abstraction around the Akamai Cache Control API.

View source
class RecordingCacheControlClient implements AkamaiCacheControl {
  public $paths;
  public $options;

  /**
   * Constructs an instance of the Akamai Cache Control facade.
   */
  function __construct($options = array()) {
    $this->options = $options;
  }

  /**
   * Records the paths passed in.
   */
  function clear_url($paths) {
    if (!is_array($paths)) {
      $paths = array(
        $paths,
      );
    }
    $this->paths = $paths;
    return array(
      'success' => TRUE,
      'code' => '',
      'message' => '',
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RecordingCacheControlClient::$options public property
RecordingCacheControlClient::$paths public property
RecordingCacheControlClient::clear_url function Records the paths passed in. Overrides AkamaiCacheControl::clear_url
RecordingCacheControlClient::__construct function Constructs an instance of the Akamai Cache Control facade.