function ARC_sparql_parser::parse_Collection in Taxonomy import/export via XML 6.2
Same name and namespace in other branches
- 5.2 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_Collection()
- 5 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_Collection()
- 6 arc/ARC_sparql_parser.php \ARC_sparql_parser::parse_Collection()
1 call to ARC_sparql_parser::parse_Collection()
File
- arc/
ARC_sparql_parser.php, line 1090
Class
Code
function parse_Collection($val = "") {
if (preg_match("/^(\\(.*)\$/s", $val, $matches)) {
$bracket_data = $this
->extract_bracket_data($matches[1]);
/* just return the plain string for the moment */
return array(
"type" => "collection",
"val" => trim($bracket_data),
"unparsed_val" => trim(substr($val, strlen($bracket_data) + 2)),
);
}
/* else */
return false;
}