ZMObject
|
+--ZMController
|
+--ZMRssController
public class ZMRssController
extends ZMController
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| ZMRssFeed | getChapterFeed(string key) Generate RSS feed for EZPages chapter. |
| ZMRssFeed | getProductsFeed(string key) Generate RSS feed for products. |
| ZMRssFeed | getReviewsFeed(string key) Generate RSS feed for reviews. |
| ZMView | Process a HTTP GET request. |
| void | Write RSS footer. |
| void | rssHeader(mixed channel, ZMRssChannel The) Write RSS header. |
| void | Generate RSS item. |
| Methods inherited from org.zenmagick.rp.ZMController | |
|---|---|
| exportGlobal, findView, getFormBean, getGlobal, getGlobals, getId, getView, handleRequest, isFormSubmit, process, processGet, processPost, setContentType, setId, setView, validate, validateFormBean | |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMRssController()
Create new instance. /
public ZMRssFeed getChapterFeed(string key)
Generate RSS feed for EZPages chapter.
public ZMRssFeed getProductsFeed(string key)
Generate RSS feed for products.
public ZMRssFeed getReviewsFeed(string key)
Generate RSS feed for reviews.
public ZMView processGet()
Process a HTTP GET request.
This implementation will grab the channel parameter from the request. All further processing is based on that value.
Ideally, the only method that needs to be implemented (if not already there), is one that generates the
feed contents. The method name is generated as: get[ucwords($channel)]Feed. So, for example,
if channel is reviews, the method to be expected would be getReviewsFeed($key).
ZMView that handles presentation or null
* if the controller generates the contents itself.public void rssFooter()
Write RSS footer. /
public void rssHeader(mixed channel, ZMRssChannel The)
Write RSS header.
Required data are:
public void rssItem(ZMRssItem item)
Generate RSS item.
Required data are:
Request controller for RSS feeds.
The
processGet()method is generic and will call an appropriate method for item generation based on the channel request parameter.The item method is expected to return the last modified date of the channel.