protected function EasyRdf_Parser_RdfXml::endState2 in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/RdfXml.php \EasyRdf_Parser_RdfXml::endState2()
@ignore
1 call to EasyRdf_Parser_RdfXml::endState2()
- EasyRdf_Parser_RdfXml::endElementHandler in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ RdfXml.php - @ignore
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ RdfXml.php, line 596
Class
- EasyRdf_Parser_RdfXml
- A pure-php class to parse RDF/XML.
Code
protected function endState2($t) {
/* expecting a prop, getting a close */
if ($s = $this
->getParentS()) {
$hasClosingTag = isset($s['hasClosingTag']) && !$s['hasClosingTag'] ? 0 : 1;
$this
->popS();
$this->state = 5;
if ($s = $this
->getParentS()) {
/* new s */
if (!isset($s['p']) || !$s['p']) {
/* p close after collection|parseType=Resource|node close after p close */
$this->state = $this->sCount ? 4 : 1;
if (!$hasClosingTag) {
$this->state = 2;
}
}
elseif (!$hasClosingTag) {
$this->state = 2;
}
}
}
}