You are here

class RecordingCacheControlClient in Akamai 7.3

Same name and namespace in other branches
  1. 8 akamai.class.inc \RecordingCacheControlClient
  2. 8.2 akamai.class.inc \RecordingCacheControlClient
  3. 6.2 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
Sets up a Drupal site for running functional and integration tests.
AkamaiHookTestCase::setUp in ./akamai.test
Sets up a Drupal site for running functional and integration tests.
AkamaiTestCase::setUp in ./akamai.test
Sets up a Drupal site for running functional and integration tests.

File

./akamai.class.inc, line 147
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 (object) 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.