|
eZ Publish
[4.2]
|
Handles RSS Import in eZ Publish. More...
Inheritance diagram for eZRSSImport:
Collaboration diagram for eZRSSImport:Public Member Functions | |
| classAttributes () | |
| destinationPath () | |
| eZRSSImport ($row) | |
| importDescription () | |
| modifier () | |
| objectOwner () | |
| setImportDescription ($definition=array()) | |
| store ($fieldFilters=null) | |
Static Public Member Functions | |
| static | arrayMergeRecursive ($arr1, $arr2) |
| static | create ($userID=false) |
| static | definition () |
| static | fetch ($id, $asObject=true, $status=eZRSSImport::STATUS_VALID) |
| static | fetchActiveList ($asObject=true) |
| static | fetchList ($asObject=true, $status=eZRSSImport::STATUS_VALID) |
| static | fieldMap ($version= '2.0') |
| static | getRSSVersion ($url) |
| static | objectAttributeList () |
| static | recursiveFieldMap ($definitionArray, $globalKey, $value, &$returnArray, $count) |
| static | rssFieldDefinition ($version= '2.0') |
Public Attributes | |
| const | STATUS_DRAFT = 0 |
| const | STATUS_VALID = 1 |
Handles RSS Import in eZ Publish.
RSSImport is used to create RSS feeds from published content. See kernel/rss for more files.
Definition at line 41 of file ezrssimport.php.
| static eZRSSImport::arrayMergeRecursive | ( | $ | arr1, |
| $ | arr2 | ||
| ) | [static] |
Definition at line 496 of file ezrssimport.php.
Referenced by fieldMap().
| eZRSSImport::classAttributes | ( | ) |
Definition at line 263 of file ezrssimport.php.
| static eZRSSImport::create | ( | $ | userID = false | ) | [static] |
Creates a new RSS Import
| User | ID |
Definition at line 155 of file ezrssimport.php.
| static eZRSSImport::definition | ( | ) | [static] |
The definition array is an associative array consists of these keys:
asc or desc.Example:
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 54 of file ezrssimport.php.
Referenced by fetch(), fetchActiveList(), and fetchList().
| eZRSSImport::destinationPath | ( | ) |
Definition at line 276 of file ezrssimport.php.
| eZRSSImport::eZRSSImport | ( | $ | row | ) |
| static eZRSSImport::fetch | ( | $ | id, |
| $ | asObject = true, |
||
| $ | status = eZRSSImport::STATUS_VALID |
||
| ) | [static] |
Fetches the RSS Import by ID.
| RSS | Import ID |
Definition at line 204 of file ezrssimport.php.
Referenced by classAttributes(), destinationPath(), modifier(), and objectOwner().
| static eZRSSImport::fetchActiveList | ( | $ | asObject = true | ) | [static] |
Fetches complete list of active RSS Imports.
Definition at line 233 of file ezrssimport.php.
| static eZRSSImport::fetchList | ( | $ | asObject = true, |
| $ | status = eZRSSImport::STATUS_VALID |
||
| ) | [static] |
Fetches complete list of RSS Imports.
Definition at line 217 of file ezrssimport.php.
| static eZRSSImport::fieldMap | ( | $ | version = '2.0' | ) | [static] |
| RSS | version |
Definition at line 422 of file ezrssimport.php.
| static eZRSSImport::getRSSVersion | ( | $ | url | ) | [static] |
Analize RSS import, and get RSS version number
| URL |
Definition at line 314 of file ezrssimport.php.
| eZRSSImport::importDescription | ( | ) |
| eZRSSImport::modifier | ( | ) |
Definition at line 254 of file ezrssimport.php.
| static eZRSSImport::objectAttributeList | ( | ) | [static] |
Object attribute list
Definition at line 354 of file ezrssimport.php.
| eZRSSImport::objectOwner | ( | ) |
Definition at line 245 of file ezrssimport.php.
| static eZRSSImport::recursiveFieldMap | ( | $ | definitionArray, |
| $ | globalKey, | ||
| $ | value, | ||
| &$ | returnArray, | ||
| $ | count | ||
| ) | [static] |
Recursivly build field map
| array |
Definition at line 449 of file ezrssimport.php.
Referenced by fieldMap().
| static eZRSSImport::rssFieldDefinition | ( | $ | version = '2.0' | ) | [static] |
Return default RSS field definition
| RSS | version |
Definition at line 369 of file ezrssimport.php.
Referenced by fieldMap().
| eZRSSImport::setImportDescription | ( | $ | definition = array() | ) |
Set import description
Import definition must be set as an multidimentional array.
Example : array( 'rss_version' => <version>, 'object_attributes' => array( ... ), 'class_attributes' => array( <content class="" attribute="" id>=""> => <RSS import="" field>="">, ... ) )
Definition at line 476 of file ezrssimport.php.
| eZRSSImport::store | ( | $ | fieldFilters = null | ) |
Store Object to database
Reimplemented from eZPersistentObject.
Definition at line 188 of file ezrssimport.php.
| const eZRSSImport::STATUS_DRAFT = 0 |
Definition at line 44 of file ezrssimport.php.
| const eZRSSImport::STATUS_VALID = 1 |
Definition at line 43 of file ezrssimport.php.