You are here

public function PurgeDomainPurgeableUrl::process_url in Purge 7.2

Get the domain name from the url and set it as the current domains value.

Overrides PurgeProcessableUrl::process_url

File

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

Class

PurgeDomainPurgeableUrl
Used the domain supplied by the purgeable url.

Code

public function process_url($url) {

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

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