You are here

protected function EasyRdf_Parser_RdfXml::getParentXLang in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php \EasyRdf_Parser_RdfXml::getParentXLang()

@ignore

1 call to EasyRdf_Parser_RdfXml::getParentXLang()
EasyRdf_Parser_RdfXml::startState1 in vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php
@ignore

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php, line 149

Class

EasyRdf_Parser_RdfXml
A pure-php class to parse RDF/XML.

Code

protected function getParentXLang() {
  if ($p = $this
    ->getParentS()) {
    if (isset($p['p_x_lang']) && $p['p_x_lang']) {
      return $p['p_x_lang'];
    }
    elseif (isset($p['x_lang'])) {
      return $p['x_lang'];
    }
    else {
      return null;
    }
  }
  else {
    return $this->xLang;
  }
}