|
eZ Publish
[trunk]
|
Handles RSS Export in eZ Publish. More...
Inheritance diagram for eZRSSExport:
Collaboration diagram for eZRSSExport:Public Member Functions | |
| eZRSSExport ($row) | |
| fetchItems ($id=false, $status=eZRSSExport::STATUS_VALID) | |
| fetchRSS1_0 () | |
| Get a RSS xml document based on the RSS 1.0 standard based on the RSS Export settings defined by this object. | |
| fetchRSS2_0 () | |
| Get a RSS xml document based on the RSS 2.0 standard based on the RSS Export settings defined by this object. | |
| generateFeed ($type) | |
| Generates an RSS feed document with type $type and returns it as a string. | |
| getObjectListFilter () | |
| imageNode () | |
| imagePath () | |
| itemList () | |
| modifier () | |
| removeThis () | |
| rssXml () | |
| Generates an RSS feed document based on the rss_version attribute. | |
| rssXmlContent () | |
| Generates an RSS feed document based on the rss_version attribute. | |
| store ($storeAsValid=false) | |
Static Public Member Functions | |
| static | create ($user_id) |
| static | definition () |
| Returns the definition for the object, the default implementation is to return an empty array. | |
| static | fetch ($id, $asObject=true, $status=eZRSSExport::STATUS_VALID) |
| static | fetchByName ($access_url, $asObject=true) |
| static | fetchList ($asObject=true) |
Public Attributes | |
| const | STATUS_DRAFT = 0 |
| const | STATUS_VALID = 1 |
Private Member Functions | |
| fetchImageURL () | |
| urlEncodePath ($url) | |
Handles RSS Export in eZ Publish.
RSSExport is used to create RSS feeds from published content. See kernel/rss for more files.
Definition at line 18 of file ezrssexport.php.
| static eZRSSExport::create | ( | $ | user_id | ) | [static] |
Creates a new RSS Export
| User | ID |
Definition at line 128 of file ezrssexport.php.
Referenced by eZContentOperationCollection\createFeedForNode(), and eZSiteInstaller\setRSSExport().
| static eZRSSExport::definition | ( | ) | [static] |
Returns the definition for the object, the default implementation is to return an empty array.
It's upto each inheriting class to return a proper definition array.
The definition array is an associative array consists of these keys:
Example: public static function definition() { return array( "fields" => array( "id" => "ID", "version" => "Version", "name" => "Name" ), "keys" => array( "id", "version" ), "function_attributes" => array( "current" => "currentVersion", "class_name" => "className" ), "increment_key" => "id", "class_name" => "eZContentClass", "sort" => array( "id" => "asc" ), "name" => "ezcontentclass" ); }
Reimplemented from eZPersistentObject.
Definition at line 31 of file ezrssexport.php.
Referenced by eZRSSFunctionCollection\exportByNode(), fetch(), fetchByName(), fetchList(), and eZContentOperationCollection\removeFeedForNode().
| eZRSSExport::eZRSSExport | ( | $ | row | ) |
| static eZRSSExport::fetch | ( | $ | id, |
| $ | asObject = true, |
||
| $ | status = eZRSSExport::STATUS_VALID |
||
| ) | [static] |
Fetches the RSS Export by ID.
| RSS | Export ID |
Definition at line 206 of file ezrssexport.php.
Referenced by generateFeed(), imageNode(), imagePath(), modifier(), and eZRSSEditFunction\storeRSSExport().
| static eZRSSExport::fetchByName | ( | $ | access_url, |
| $ | asObject = true |
||
| ) | [static] |
Fetches the RSS Export by feed access url and is active.
| RSS | Export access url |
Definition at line 221 of file ezrssexport.php.
| eZRSSExport::fetchImageURL | ( | ) | [private] |
Fetch Image from current ezrss export object. If non exist, or invalid, return false
Definition at line 1116 of file ezrssexport.php.
Referenced by fetchRSS1_0(), fetchRSS2_0(), and generateFeed().
| eZRSSExport::fetchItems | ( | $ | id = false, |
| $ | status = eZRSSExport::STATUS_VALID |
||
| ) |
Fetches RSS Items related to this RSS Export. The RSS Export Items contain information about which nodes to export information from
| RSSExport | ID (optional). Uses current RSSExport's ID as default |
Definition at line 373 of file ezrssexport.php.
Referenced by itemList(), and removeThis().
| static eZRSSExport::fetchList | ( | $ | asObject = true | ) | [static] |
Fetches complete list of RSS Exports.
Definition at line 235 of file ezrssexport.php.
Get a RSS xml document based on the RSS 1.0 standard based on the RSS Export settings defined by this object.
Definition at line 632 of file ezrssexport.php.
Referenced by rssXml().
Get a RSS xml document based on the RSS 2.0 standard based on the RSS Export settings defined by this object.
Definition at line 417 of file ezrssexport.php.
Referenced by rssXml().
| eZRSSExport::generateFeed | ( | $ | type | ) |
Generates an RSS feed document with type $type and returns it as a string.
It uses the Feed component from eZ Components.
Supported types: 'rss1', 'rss2', 'atom'.
| string | $type | One of 'rss1', 'rss2' and 'atom' |
Definition at line 821 of file ezrssexport.php.
Referenced by rssXmlContent().
Definition at line 395 of file ezrssexport.php.
Referenced by fetchRSS1_0(), fetchRSS2_0(), and generateFeed().
Definition at line 247 of file ezrssexport.php.
Definition at line 256 of file ezrssexport.php.
Definition at line 242 of file ezrssexport.php.
Definition at line 283 of file ezrssexport.php.
Remove the RSS Export.
Definition at line 186 of file ezrssexport.php.
Generates an RSS feed document based on the rss_version attribute.
Definition at line 298 of file ezrssexport.php.
Generates an RSS feed document based on the rss_version attribute.
It uses the Feed component from eZ Components.
Supported types: 'rss1', 'rss2', 'atom'.
Definition at line 331 of file ezrssexport.php.
| eZRSSExport::store | ( | $ | storeAsValid = false | ) |
Store Object to database
Reimplemented from eZPersistentObject.
Definition at line 154 of file ezrssexport.php.
| eZRSSExport::urlEncodePath | ( | $ | url | ) | [private] |
Performs rawurlencode() on the path part of the URL. The rest is not touched.
Definition at line 1156 of file ezrssexport.php.
Referenced by fetchRSS1_0(), fetchRSS2_0(), and generateFeed().
| const eZRSSExport::STATUS_DRAFT = 0 |
Definition at line 21 of file ezrssexport.php.
Referenced by eZRSSExportItem\create(), and eZRSSEditFunction\storeRSSExport().
| const eZRSSExport::STATUS_VALID = 1 |
Definition at line 20 of file ezrssexport.php.
Referenced by eZContentOperationCollection\createFeedForNode(), eZRSSFunctionCollection\exportByNode(), eZRSSFunctionCollection\hasExportByNode(), eZContentOperationCollection\removeFeedForNode(), store(), and eZRSSEditFunction\storeRSSExport().