registerAllNamespaces(Zend_Gdata_Contacts::$namespaces); parent::__construct(); } protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { default: parent::takeChildFromDOM($child); break; } } /** * Extracts XML attributes from the DOM and converts them to the * appropriate object members. * * @param DOMNode $attribute The DOMNode attribute to be handled. */ protected function takeAttributeFromDOM($attribute) { switch ($attribute->localName) { case 'when': $this->_value = $attribute->nodeValue; break; default: parent::takeAttributeFromDOM($attribute); } } public function getBirthday() { return $this->_value; } }