Inheritance diagram for RssHelper:

Public Member Functions | |
| channel ($attrib=array(), $elements=array(), $content=null) | |
| document ($attrib=array(), $content=null) | |
| item ($att=array(), $elements=array()) | |
| items ($items, $callback=null) | |
| time ($time) | |
Public Attributes | |
| $action = null | |
| $base = null | |
| $data = null | |
| $field = null | |
| $helpers = array('Time') | |
| $here = null | |
| $model = null | |
| $params = array() | |
| $version = '2.0' | |
Definition at line 35 of file rss.php.
| RssHelper::channel | ( | $ | attrib = array(), |
|
| $ | elements = array(), |
|||
| $ | content = null | |||
| ) |
Returns an RSS <channel> element
| array | $attrib <channel> tag attributes | |
| mixed | $elements Named array elements which are converted to tags | |
| mixed | $content Content ('s belonging to this channel |
Definition at line 124 of file rss.php.
References $data, XmlHelper::elem(), ClassRegistry::getObject(), and Helper::url().
| RssHelper::document | ( | $ | attrib = array(), |
|
| $ | content = null | |||
| ) |
Returns an RSS document wrapped in <rss> tags
| array | $attrib <rss> tag attributes |
Definition at line 105 of file rss.php.
References XmlHelper::elem().
| RssHelper::item | ( | $ | att = array(), |
|
| $ | elements = array() | |||
| ) |
Converts an array into an element and its contents
| array | $attrib The attributes of the element | |
| array | $elements The list of elements contained in this |
Definition at line 189 of file rss.php.
References XmlHelper::elem(), time(), and Helper::url().
Referenced by items().
| RssHelper::items | ( | $ | items, | |
| $ | callback = null | |||
| ) |
Transforms an array of data using an optional callback, and maps it to a set of tags
| array | $items The list of items to be mapped | |
| mixed | $callback A string function name, or array containing an object and a string method name |
| RssHelper::time | ( | $ | time | ) |
Converts a time in any format to an RSS time
| mixed | $time |
Definition at line 273 of file rss.php.
Referenced by item().
| RssHelper::$data = null |
| RssHelper::$helpers = array('Time') |
1.4.7