Path

ez components / documentation / api reference / 2008.2.1 / feed


eZ Components 2008.2.1

Feed: ezcFeedRss2

[ Tutorial ] [ Specifications ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcFeedRss2

Class providing parsing and generating of RSS2 feeds. [source]

Implemented Interfaces

Specifications: RSS2 Specifications.

Parents

ezcFeedProcessor
   |
   --ezcFeedRss2

Constants

CONTENT_TYPE = 'application/rss+xml' Defines the feed content type of this processor.
FEED_TYPE = 'rss2' Defines the feed type of this processor.

Method Summary

public static bool canParse( $xml )
Returns true if the parser can parse the provided XML document object, false otherwise.
public ezcFeedRss2 __construct( $container )
Creates a new RSS2 processor.
public string generate( )
Returns an XML string from the feed information contained in this processor.
public ezcFeed parse( $xml )
Parses the provided XML document object and returns an ezcFeed object from it.

Inherited Methods

From ezcFeedProcessor :
public abstract string ezcFeedProcessor::generate()
Returns an XML string from the feed information contained in this processor.
public array(ezcFeedModule) ezcFeedProcessor::getModules()
Returns an array with all the modules loaded at feed-level.

Methods

canParse

bool canParse( $xml )
Returns true if the parser can parse the provided XML document object, false otherwise.

Parameters

Name Type Description
$xml DOMDocument The XML document object to check for parseability

__construct

ezcFeedRss2 __construct( ezcFeed $container )
Creates a new RSS2 processor.

Parameters

Name Type Description
$container ezcFeed The feed data container used when generating

generate

string generate( )
Returns an XML string from the feed information contained in this processor.

Redefinition of

Method Description
ezcFeedProcessor::generate() Returns an XML string from the feed information contained in this processor.

parse

ezcFeed parse( $xml )
Parses the provided XML document object and returns an ezcFeed object from it.

Parameters

Name Type Description
$xml DOMDocument The XML document object to parse

Throws

ClassDescription
ezcFeedParseErrorException If an error was encountered during parsing.

Last updated: Mon, 09 Feb 2009