class AtomRenderer extends DocumentRenderer

AtomRenderer is a feed that implements the atom specification

Please note that just by using this class you won't automatically produce valid atom files. For example, you have to specify either an editor for the feed or an author for every single feed item.

Methods

__construct( Document $doc)

Class constructor

string
render( string $name = '', array $params = null, string $content = null)

Render the feed.

string
getContentType()

Return the content type of the renderer

Details

__construct( Document $doc)

Class constructor

Parameters

Document $doc A reference to the Document object that instantiated the renderer

string render( string $name = '', array $params = null, string $content = null)

Render the feed.

Parameters

string $name The name of the element to render
array $params Array of values
string $content Override the output of the renderer

Return Value

string The output of the script

See also

DocumentRenderer::render()

string getContentType()

Return the content type of the renderer

Return Value

string The contentType