You are here

public function purl_subdomain::parse in Persistent URL 6

Same name and namespace in other branches
  1. 7 includes/purl_subdomain.inc \purl_subdomain::parse()

Detects processor in the passed 'value'.

Parameters

$valid_values:

$value:

Return value

an array of purl_path_element objects

Overrides purl_processor::parse

File

includes/purl_subdomain.inc, line 36

Class

purl_subdomain
Subdomain prefixing.

Code

public function parse($valid_values, $q) {
  $parsed = array();
  if (isset($valid_values[$q])) {
    $parsed[$q] = $valid_values[$q];
  }
  return purl_path_elements($this, $parsed);
}