protected function EasyRdf_Parser_RdfXml::getParentXLang

@ignore

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

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php, line 150

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;
  }
}