You are here

class PurgeDomainPurgeableUrl in Purge 7.2

Used the domain supplied by the purgeable url.

Hierarchy

Expanded class hierarchy of PurgeDomainPurgeableUrl

File

includes/purge.class.inc, line 365
Contains all class and interface definitions for Purge.

View source
class PurgeDomainPurgeableUrl extends PurgeDomain implements PurgeProcessableUrl {

  /**
   * Processes the Purgeable URL.
   */
  public function process($purgeable) {
  }

  /**
   * Caches the domain untill the end of this processing.
   */
  public function cache() {
  }

  /**
   * Get the domain name from the url and set it as the current domains value.
   */
  public function process_url($url) {

    // Whipe the current value.
    $this->domains = array();

    // parse the url.
    $this->domain[] = parse_url($url, PHP_URL_HOST);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Purge::$access public property
Purge::$available public property
Purge::$depend public property
Purge::$description public property
Purge::$enabled public property
Purge::$item public property
Purge::$name public property
Purge::$option public property
Purge::__sleep public function Only serialize the static values. 1
PurgeDomain::$domains public property
PurgeDomain::validate public function Validate the domains. Overrides Purge::validate
PurgeDomainPurgeableUrl::cache public function Caches the domain untill the end of this processing.
PurgeDomainPurgeableUrl::process public function Processes the Purgeable URL.
PurgeDomainPurgeableUrl::process_url public function Get the domain name from the url and set it as the current domains value. Overrides PurgeProcessableUrl::process_url