/** * Given a child DOMNode, tries to determine how to map the data into * object instance members. If no mapping is defined, Extension_Element * objects are created and stored in an array. * * @param DOMNode $child The DOMNode needed to be handled */ protected function takeChildFromDOM($child) { if ($child->nodeType == XML_ELEMENT_NODE) { $this->_shippingInfo[$child->localName] = $child->textContent; } parent::takeChildFromDOM($child); }
/** * Given a child DOMNode, tries to determine how to map the data into * object instance members. If no mapping is defined, Extension_Element * objects are created and stored in an array. * * @param DOMNode $child The DOMNode needed to be handled */ protected function takeChildFromDOM($child) { if ($child->nodeType == XML_ELEMENT_NODE) { $name = 'attribute' == $child->localName ? $child->getAttribute('name') : $child->localName; $this->_taxInfo[$name] = $child->textContent; } parent::takeChildFromDOM($child); }