Changeset 2055

Show
Ignore:
Timestamp:
07/17/2007 12:27:20 PM (18 months ago)
Author:
xue
Message:

updated UPGRADE instruction.

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/UPGRADE

    r1942 r2055  
    11 
    2          Upgrading Instructions for PRADO Framework v3.1.0 
     2         Upgrading Instructions for PRADO Framework v3.1.1 
    33         ================================================= 
    44 
     
    99version B between A and C, you need to following the instructions 
    1010for both A and B. 
     11 
     12Upgrading from v3.1.0 
     13--------------------- 
     14- IFeedContentProvider adds a new method getContentType(). This affects any 
     15  class implementing this interface. 
    1116 
    1217Upgrading from v3.1b 
  • trunk/framework/Web/Services/TFeedService.php

    r2054 r2055  
    4545{ 
    4646        private $_feeds=array(); 
    47         private $_contentType='text/xml'; 
    4847 
    4948        /** 
     
    9493                                        $content=$feed->getFeedContent(); 
    9594                                    //$this->getResponse()->setContentType('application/rss+xml'); 
    96                                     $this->getResponse()->setContentType($this->getContentType()); 
     95                                    $this->getResponse()->setContentType($feed->getContentType()); 
    9796                                    $this->getResponse()->write($content); 
    9897                                } 
     
    105104                else 
    106105                        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+xml 
    121          * RSS 2.0 feed: application/rss+xml or application/xml or text/xml 
    122          * ATOM feed: application/atom+xml 
    123          * @param string the content type for the feed content. 
    124          */ 
    125         public function setContentType($type) 
    126         { 
    127                 $this->_contentType=$type; 
    128106        } 
    129107} 
     
    154132         */ 
    155133        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(); 
    156144} 
    157145