You are here

public function purl_domain::parse in Persistent URL 7

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

Simply match our 'q' (aka domain) against an allowed value.

Overrides purl_processor::parse

File

includes/purl_domain.inc, line 38

Class

purl_domain
Full domain handling.

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);
}