Horde_Xml_Wbxml_Decoder::parseTag PHP Method

parseTag() public method

public parseTag ( $input, $tag, $hasAttributes, $hasContent )
    public function parseTag($input, $tag, $hasAttributes, $hasContent)
    {
        $attrs = array();
        if ($hasAttributes) {
            $attrs = $this->getAttributes($input);
        }
        $this->_ch->startElement($this->getCurrentURI(), $tag, $attrs);
        if ($hasContent) {
            // FIXME I forgot what does this does. Not sure if this is
            // right?
            $this->_tagStack[] = $tag;
        } else {
            $this->_ch->endElement($this->getCurrentURI(), $tag);
        }
    }