Horde_Xml_Element::offsetUnset PHP Method

offsetUnset() public method

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