Class providing parsing and generating of RSS1 feeds.
Specifications: RSS1 Specifications
Source for this file: /Feed/src/processors/rss1.php
ezcFeedProcessor | --ezcFeedRss1
Version: | //autogentag// |
CONTENT_TYPE
= 'application/rss+xml'
|
Defines the feed content type of this processor. |
FEED_TYPE
= 'rss1'
|
Defines the feed type of this processor. |
NAMESPACE_URI
= 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'
|
Defines the namespace for RSS1 (RDF) feeds. |
public static bool |
canParse(
$xml
)
Returns true if the parser can parse the provided XML document object, false otherwise. |
public ezcFeedRss1 |
__construct(
$container
)
Creates a new RSS1 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. |
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. |
Returns true if the parser can parse the provided XML document object, false otherwise.
Name | Type | Description |
---|---|---|
$xml |
DOMDocument | The XML document object to check for parseability |
Method | Description |
---|---|
ezcFeedParser::canParse() |
Returns true if the parser can parse the provided XML document object, false otherwise. |
Creates a new RSS1 processor.
Name | Type | Description |
---|---|---|
$container |
ezcFeed | The feed data container used when generating |
Returns an XML string from the feed information contained in this processor.
Method | Description |
---|---|
ezcFeedProcessor::generate() |
Returns an XML string from the feed information contained in this processor. |
Parses the provided XML document object and returns an ezcFeed object from it.
Name | Type | Description |
---|---|---|
$xml |
DOMDocument | The XML document object to parse |
Type | Description |
---|---|
ezcFeedParseErrorException |
If an error was encountered during parsing. |
Method | Description |
---|---|
ezcFeedParser::parse() |
Parses the provided XML document object and returns an ezcFeed object from it. |