Updated FeedExpander (markdown)

LogMANOriginal 2018-10-30 19:12:35 +01:00
parent 7dbdef56e7
commit b03b2dd9d6

@ -17,7 +17,7 @@ Find a [template](#template) at the end of this file.
This function receives one item from the current feed and should return one **RSS-Bridge** item. This function receives one item from the current feed and should return one **RSS-Bridge** item.
The default function does all the work to get the item data from the feed, whether it is RSS 1.0, The default function does all the work to get the item data from the feed, whether it is RSS 1.0,
RSS 2.0 or ATOM 1.0. If you have to redefine this function in your **RSS-Bridge** for whatever reason, RSS 2.0 or Atom 1.0. If you have to redefine this function in your **RSS-Bridge** for whatever reason,
you should first call the parent function to initialize the item, then apply the changes that you require. you should first call the parent function to initialize the item, then apply the changes that you require.
**Notice:** The following code sample is just an example. Implementation depends on your requirements! **Notice:** The following code sample is just an example. Implementation depends on your requirements!
@ -33,11 +33,11 @@ protected function parseItem($feedItem){
### Helper functions ### Helper functions
The `FeedExpander` already provides a set of functions to parse RSS or ATOM items based on the specifications. Where possible make use of these functions: The `FeedExpander` already provides a set of functions to parse RSS or Atom items based on the specifications. Where possible make use of these functions:
Function | Description Function | Description
---------|------------ ---------|------------
`parseATOMItem` | Parses an ATOM 1.0 feed item `parseATOMItem` | Parses an Atom 1.0 feed item
`parseRSS_0_9_1_Item` | Parses an RSS 0.91 feed item `parseRSS_0_9_1_Item` | Parses an RSS 0.91 feed item
`parseRSS_1_0_Item` | Parses an RSS 1.0 feed item `parseRSS_1_0_Item` | Parses an RSS 1.0 feed item
`parseRSS_2_0_Item` | Parses an RSS 2.0 feed item `parseRSS_2_0_Item` | Parses an RSS 2.0 feed item