Horde_Xml_Element::_cacheChildren PHP Method

_cacheChildren() protected method

Build a cache of child nodes.
protected _cacheChildren ( )
    protected function _cacheChildren()
    {
        foreach ($this->_element->childNodes as $child) {
            if (!isset($this->_children[$child->localName])) {
                $this->_children[$child->localName] = array();
            }
            $this->_children[$child->localName][] = $child;
            if ($child->prefix) {
                if (!isset($this->_children[$child->prefix . ':' . $child->localName])) {
                    $this->_children[$child->prefix . ':' . $child->localName] = array();
                }
                $this->_children[$child->prefix . ':' . $child->localName][] = $child;
            }
        }
    }