_content != null) { $element->appendChild($this->_content->getDOM($element->ownerDocument)); } if ($this->_published != null) { $element->appendChild($this->_published->getDOM($element->ownerDocument)); } if ($this->_source != null) { $element->appendChild($this->_source->getDOM($element->ownerDocument)); } if ($this->_summary != null) { $element->appendChild($this->_summary->getDOM($element->ownerDocument)); } if ($this->_control != null) { $element->appendChild($this->_control->getDOM($element->ownerDocument)); } return $element; } protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { case $this->lookupNamespace('atom') . ':' . 'content': $content = new Zend_Gdata_App_Extension_Content(); $content->transferFromDOM($child); $this->_content = $content; break; case $this->lookupNamespace('atom') . ':' . 'published': $published = new Zend_Gdata_App_Extension_Published(); $published->transferFromDOM($child); $this->_published = $published; break; case $this->lookupNamespace('atom') . ':' . 'source': $source = new Zend_Gdata_App_Extension_Source(); $source->transferFromDOM($child); $this->_source = $source; break; case $this->lookupNamespace('atom') . ':' . 'summary': $summary = new Zend_Gdata_App_Extension_Summary(); $summary->transferFromDOM($child); $this->_summary = $summary; break; case $this->lookupNamespace('app') . ':' . 'control': $control = new Zend_Gdata_App_Extension_Control(); $control->transferFromDOM($child); $this->_control = $control; break; default: parent::takeChildFromDOM($child); break; } } /** * Uploads changes in this entry to the server using Zend_Gdata_App * * @return Zend_Gdata_App_Entry The updated entry * @throws Zend_Gdata_App_Exception */ public function save() { $service = new Zend_Gdata_App($this->getHttpClient()); return $service->updateEntry($this); } /** * Deletes this entry to the server using the referenced * Zend_Http_Client to do a HTTP DELETE to the edit link stored in this * entry's link collection. * * @return void * @throws Zend_Gdata_App_Exception */ public function delete() { $service = new Zend_Gdata_App($this->getHttpClient()); $service->delete($this); } /** * @return Zend_Gdata_App_Extension_Content */ public function getContent() { return $this->_content; } /** * @param Zend_Gdata_App_Extension_Content $value * @return Zend_Gdata_App_Entry Provides a fluent interface */ public function setContent($value) { $this->_content = $value; return $this; } /** * @return Zend_Gdata_App_Extension_Published */ public function getPublished() { return $this->_published; } /** * @param Zend_Gdata_App_Extension_Published $value * @return Zend_Gdata_App_Entry Provides a fluent interface */ public function setPublished($value) { $this->_published = $value; return $this; } /** * @return Zend_Gdata_App_Extension_Source */ public function getSource() { return $this->_source; } /** * @param Zend_Gdata_App_Extension_Source $value * @return Zend_Gdata_App_Entry Provides a fluent interface */ public function setSource($value) { $this->_source = $value; return $this; } /** * @return Zend_Gdata_App_Extension_Summary */ public function getSummary() { return $this->_summary; } /** * @param Zend_Gdata_App_Extension_Summary $value * @return Zend_Gdata_App_Entry Provides a fluent interface */ public function setSummary($value) { $this->_summary = $value; return $this; } /** * @return Zend_Gdata_App_Extension_Control */ public function getControl() { return $this->_control; } /** * @param Zend_Gdata_App_Extension_Control $value * @return Zend_Gdata_App_Entry Provides a fluent interface */ public function setControl($value) { $this->_control = $value; return $this; } }