_text = $text; $this->_uri = $uri; $this->_version = $version; } public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) { $element = parent::getDOM($doc, $majorVersion, $minorVersion); if ($this->_uri !== null) { $element->setAttribute('uri', $this->_uri); } if ($this->_version !== null) { $element->setAttribute('version', $this->_version); } return $element; } protected function takeAttributeFromDOM($attribute) { switch ($attribute->localName) { case 'uri': $this->_uri = $attribute->nodeValue; break; case 'version': $this->_version= $attribute->nodeValue; break; default: parent::takeAttributeFromDOM($attribute); } } /** * @return Zend_Gdata_App_Extension_Uri */ public function getUri() { return $this->_uri; } /** * @param Zend_Gdata_App_Extension_Uri $value * @return Zend_Gdata_App_Entry Provides a fluent interface */ public function setUri($value) { $this->_uri = $value; return $this; } /** * @return Zend_Gdata_App_Extension_Version */ public function getVersion() { return $this->_version; } /** * @param Zend_Gdata_App_Extension_Version $value * @return Zend_Gdata_App_Entry Provides a fluent interface */ public function setVersion($value) { $this->_version = $value; return $this; } }