/**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     $gdNamespacePrefix = $this->lookupNamespace('gd') . ':';
     switch ($absoluteNodeName) {
         case $gdNamespacePrefix . 'formattedAddress':
             $formattedAddress = new Zend_Gdata_Contacts_Extension_FormattedAddress();
             $formattedAddress->transferFromDOM($child);
             $this->_formattedAddress = $formattedAddress;
             break;
         case $gdNamespacePrefix . 'street':
             $street = new Zend_Gdata_Contacts_Extension_Street();
             $street->transferFromDOM($child);
             $this->_street = $street;
             break;
     }
 }
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     $gdNamespacePrefix = $this->lookupNamespace('gd') . ':';
     switch ($absoluteNodeName) {
         case $gdNamespacePrefix . 'formattedAddress':
             $formattedAddress = new Zend_Gdata_Contacts_Extension_FormattedAddress();
             $formattedAddress->transferFromDOM($child);
             $this->_formattedAddress = $formattedAddress;
             break;
         case $gdNamespacePrefix . 'street':
             $street = new Zend_Gdata_Contacts_Extension_Street();
             $street->transferFromDOM($child);
             $this->_street = $street;
             break;
         case $gdNamespacePrefix . 'pobox':
             $pobox = new Zend_Gdata_Contacts_Extension_Pobox();
             $pobox->transferFromDOM($child);
             $this->_pobox = $pobox;
             break;
         case $gdNamespacePrefix . 'city':
             $city = new Zend_Gdata_Contacts_Extension_City();
             $city->transferFromDOM($child);
             $this->_city = $city;
             break;
         case $gdNamespacePrefix . 'country':
             $country = new Zend_Gdata_Contacts_Extension_Country();
             $country->transferFromDOM($child);
             $this->_country = $country;
             break;
         case $gdNamespacePrefix . 'region':
             $region = new Zend_Gdata_Contacts_Extension_Region();
             $region->transferFromDOM($child);
             $this->_region = $region;
             break;
         case $gdNamespacePrefix . 'postcode':
             $postcode = new Zend_Gdata_Contacts_Extension_Postcode();
             $postcode->transferFromDOM($child);
             $this->_postcode = $postcode;
             break;
     }
 }