You are here

class PurgeDomainDrupal in Purge 7.2

Class definition for the Drupal domain item.

Hierarchy

Expanded class hierarchy of PurgeDomainDrupal

File

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

View source
class PurgeDomainDrupal extends PurgeDomain implements PurgeCacheable {

  /**
   * Set the domain to the base urls domain.
   */
  public function cache() {
    $base_url = $GLOBALS['base_url'];
    $this->domains = array(
      parse_url($base_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
PurgeDomainDrupal::cache public function Set the domain to the base urls domain. Overrides PurgeCacheable::cache