RssHelper Class Reference

Inheritance diagram for RssHelper:

XmlHelper AppHelper Helper Helper Overloadable Overloadable Object Object Object Object List of all members.

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'

Detailed Description

Definition at line 35 of file rss.php.


Member Function Documentation

RssHelper::channel ( attrib = array(),
elements = array(),
content = null 
)

Returns an RSS <channel> element

Parameters:
array $attrib <channel> tag attributes
mixed $elements Named array elements which are converted to tags
mixed $content Content ('s belonging to this channel
Returns:
string An RSS <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

Parameters:
array $attrib <rss> tag attributes
Returns:
string An RSS document

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

Parameters:
array $attrib The attributes of the element
array $elements The list of elements contained in this
Returns:
string An RSS element

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

Parameters:
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
Returns:
string A set of RSS elements

Definition at line 169 of file rss.php.

References $out, and item().

RssHelper::time ( time  ) 

Converts a time in any format to an RSS time

Parameters:
mixed $time
Returns:
string An RSS-formatted timestamp
See also:
TimeHelper::toRSS

Definition at line 273 of file rss.php.

Referenced by item().


Member Data Documentation

RssHelper::$action = null

Reimplemented from Helper.

Definition at line 70 of file rss.php.

RssHelper::$base = null

Reimplemented from Helper.

Definition at line 49 of file rss.php.

RssHelper::$data = null

Reimplemented from Helper.

Definition at line 77 of file rss.php.

Referenced by channel().

RssHelper::$field = null

Definition at line 91 of file rss.php.

RssHelper::$helpers = array('Time')

Reimplemented from Helper.

Definition at line 42 of file rss.php.

RssHelper::$here = null

Reimplemented from Helper.

Definition at line 56 of file rss.php.

RssHelper::$model = null

Definition at line 84 of file rss.php.

RssHelper::$params = array()

Reimplemented from Helper.

Definition at line 63 of file rss.php.

RssHelper::$version = '2.0'

Definition at line 98 of file rss.php.


The documentation for this class was generated from the following file:
Generated on Sun Nov 22 00:30:56 2009 for CakePHP 1.2.x.x (v1.2.4.8284) by doxygen 1.4.7