Horde_Xml_Element::offsetGet PHP Method

offsetGet() public method

Required by the ArrayAccess interface.
public offsetGet ( $offset )
    public function offsetGet($offset)
    {
        if (strpos($offset, ':') !== false) {
            list($ns, $attr) = explode(':', $offset, 2);
            return $this->_element->getAttributeNS(Horde_Xml_Element::lookupNamespace($ns), $attr);
        } else {
            return $this->_element->getAttribute($offset);
        }
    }