Changeset 2055
- Timestamp:
- 07/17/2007 12:27:20 PM (18 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
UPGRADE (modified) (2 diffs)
-
framework/Web/Services/TFeedService.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/UPGRADE
r1942 r2055 1 1 2 Upgrading Instructions for PRADO Framework v3.1. 02 Upgrading Instructions for PRADO Framework v3.1.1 3 3 ================================================= 4 4 … … 9 9 version B between A and C, you need to following the instructions 10 10 for both A and B. 11 12 Upgrading from v3.1.0 13 --------------------- 14 - IFeedContentProvider adds a new method getContentType(). This affects any 15 class implementing this interface. 11 16 12 17 Upgrading from v3.1b -
trunk/framework/Web/Services/TFeedService.php
r2054 r2055 45 45 { 46 46 private $_feeds=array(); 47 private $_contentType='text/xml';48 47 49 48 /** … … 94 93 $content=$feed->getFeedContent(); 95 94 //$this->getResponse()->setContentType('application/rss+xml'); 96 $this->getResponse()->setContentType($ this->getContentType());95 $this->getResponse()->setContentType($feed->getContentType()); 97 96 $this->getResponse()->write($content); 98 97 } … … 105 104 else 106 105 throw new THttpException(404,'feedservice_feed_unknown',$id); 107 }108 109 /**110 * @return string the content type for the feed content. Defaults to 'text/xml'.111 */112 public function getContentType()113 {114 return $this->_contentType;115 }116 117 /**118 * Sets the content type of the feed content to be sent.119 * Some examples are:120 * RSS 1.0 feed: application/rdf+xml121 * RSS 2.0 feed: application/rss+xml or application/xml or text/xml122 * ATOM feed: application/atom+xml123 * @param string the content type for the feed content.124 */125 public function setContentType($type)126 {127 $this->_contentType=$type;128 106 } 129 107 } … … 154 132 */ 155 133 public function getFeedContent(); 134 /** 135 * Sets the content type of the feed content to be sent. 136 * Some examples are: 137 * RSS 1.0 feed: application/rdf+xml 138 * RSS 2.0 feed: application/rss+xml or application/xml or text/xml 139 * ATOM feed: application/atom+xml 140 * @return string the content type for the feed content. 141 * @since 3.1.1 142 */ 143 public function getContentType(); 156 144 } 157 145
