You are here

function purl_path_elements in Persistent URL 7

Same name and namespace in other branches
  1. 6 purl.module \purl_path_elements()

Generate a array of purl_path_elements objects from parsed values.

Parameters

$processor: The processor used to parse the string.

$values: Array or values which were detected.

Return value

an array of purl_path_elements

7 calls to purl_path_elements()
purl_domain::parse in includes/purl_domain.inc
Simply match our 'q' (aka domain) against an allowed value.
purl_extension::parse in includes/purl_extension.inc
Detects processor in the passed 'value'.
purl_pair::parse in includes/purl_pair.inc
Tear apart the path and iterate thought it looking for valid values.
purl_path::parse in includes/purl_path.inc
Tear apart the path and iterate thought it looking for valid values.
purl_querystring::parse in includes/purl_querystring.inc
Tear apart the path and iterate thought it looking for valid values.

... See full list

File

./purl.module, line 928

Code

function purl_path_elements($processor, $values) {
  $return = array();
  foreach ($values as $v => $i) {
    $return[$v] = new purl_path_element($processor, $v, $i['provider'], $i['id']);
  }
  return $return;
}