public function purl_extension::parse in Persistent URL 7
Same name and namespace in other branches
- 6 includes/purl_extension.inc \purl_extension::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_extension.inc, line 26
Class
- purl_extension
- File extension style. Like ".csv"
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);
}