Back to CollectionAdapter class

Method _endElement

protected void
_endElement
(mixed $parser, mixed $name)
Closing an XML element Note: This is a protected function though has to be exposed externally as a callback
Parameters
  • object $parser Parser object
  • string $name Name of the element closing
Returns
  • void
Since
  • 1.7.0

Method _endElement - Source code

/**
 * Closing an XML element
 * Note: This is a protected function though has to be exposed externally as a callback
 *
 * @param   object  $parser  Parser object
 * @param   string  $name    Name of the element closing
 *
 * @return  void
 *
 * @since   1.7.0
 */
protected function _endElement($parser, $name)
{
    array_pop($this->stack);
    if ($name === 'CATEGORY' && $this->pop_parent) {
        $this->pop_parent = 0;
        array_pop($this->parent);
    }
}