_text = $text; $this->_type = $type; } public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) { $element = parent::getDOM($doc, $majorVersion, $minorVersion); if ($this->_type !== null) { $element->setAttribute('type', $this->_type); } return $element; } protected function takeAttributeFromDOM($attribute) { switch ($attribute->localName) { case 'type': $this->_type = $attribute->nodeValue; break; default: parent::takeAttributeFromDOM($attribute); } } /* * @return Zend_Gdata_App_Extension_Type */ public function getType() { return $this->_type; } /* * @param string $value * @return Zend_Gdata_App_Extension_Text Provides a fluent interface */ public function setType($value) { $this->_type = $value; return $this; } }