mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-12-18 17:10:29 +03:00
Updated FeedExpander (markdown)
parent
7dbdef56e7
commit
b03b2dd9d6
1 changed files with 3 additions and 3 deletions
|
@ -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.
|
||||
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.
|
||||
|
||||
**Notice:** The following code sample is just an example. Implementation depends on your requirements!
|
||||
|
@ -33,11 +33,11 @@ protected function parseItem($feedItem){
|
|||
|
||||
### 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
|
||||
---------|------------
|
||||
`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_1_0_Item` | Parses an RSS 1.0 feed item
|
||||
`parseRSS_2_0_Item` | Parses an RSS 2.0 feed item
|
||||
|
|
Loading…
Reference in a new issue