function ARC_rdfxml_parser::calc_base in Taxonomy import/export via XML 6
Same name and namespace in other branches
- 5.2 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::calc_base()
- 5 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::calc_base()
- 6.2 arc/ARC_rdfxml_parser.php \ARC_rdfxml_parser::calc_base()
4 calls to ARC_rdfxml_parser::calc_base()
File
- arc/
ARC_rdfxml_parser.php, line 256
Class
Code
function calc_base($path = "") {
if (strpos($path, ":") !== false) {
/* is abs uri */
return $path;
}
elseif (strpos($path, "//") === 0) {
/* net path */
return "http:" . $path;
}
/* relative base */
$s = $this->s_count ? $this->subjs[$this->s_count - 1] : false;
$cur_base = $this
->get_cur_xml_base($s);
$cur_base = $this
->get_clean_base($cur_base);
return $this
->calc_abs_path($path, $cur_base);
}