예제 #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);
 }
예제 #2
0
파일: Tax.php 프로젝트: relue/magento2
 /**
  * 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);
 }