Beispiel #1
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gd') . ':' . 'fullName':
             $entry = new Zend_Gdata_Entry();
             $entry->transferFromDOM($child);
             $this->_names['full_name'] = $entry->getText();
             break;
         case $this->lookupNamespace('gd') . ':' . 'givenName':
             $entry = new Zend_Gdata_Entry();
             $entry->transferFromDOM($child);
             $this->_names['first_name'] = $entry->getText();
             break;
         case $this->lookupNamespace('gd') . ':' . 'familyName':
             $entry = new Zend_Gdata_Entry();
             $entry->transferFromDOM($child);
             $this->_names['last_name'] = $entry->getText();
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }