PHP Class Zfplanet_FeedController, ZFPlanet

.. We've enabled static file caching here so the feeds are saved as actual XML files served directly by Apache (see .htaccess). Apache should handle conditional GETs out of the box. The intention is to make this behaviour configurable (not done yet). If static caching disabled, the code below will always dynamically generate the feed, AND handle conditional GET requests also (saving us from actually generating the feed all the time - costing a single DB query to grab the latest dateModified value).
Inheritance: extends Zend_Controller_Action
Show file Open project: padraic/ZFPlanet

Protected Properties

Property Type Description
$_feed

Public Methods

Method Description
atomAction ( )
init ( )
rssAction ( )

Protected Methods

Method Description
_generateFeedContainer ( )
_getBaseUri ( )
_handleConditionalGet ( $lastModified )

Method Details

_generateFeedContainer() protected method

protected _generateFeedContainer ( )

_getBaseUri() protected method

protected _getBaseUri ( )

_handleConditionalGet() protected method

protected _handleConditionalGet ( $lastModified )

atomAction() public method

public atomAction ( )

init() public method

public init ( )

rssAction() public method

public rssAction ( )

Property Details

$_feed protected property

protected $_feed