Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /**
  * 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);
 }