-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathREADME
More file actions
24 lines (17 loc) · 659 Bytes
/
README
File metadata and controls
24 lines (17 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
RSSParser library - Production ready - CI 2.1.0 compatible
====================================================================
A simple library to pass RSS feeds.
Usage:
------
$this->load->library('rssparser');
$this->rssparser->set_feed_url('http://example.com/feed');
$this->rssparser->set_cache_life(30);
$rss = $this->rssparser->getFeed(6); // Get six items from the feed
Other functions:
// Using a callback function to parse addictional XML fields
$this->load->library('rssparser', array($this, 'parseFile')); // parseFile method of current class
function parseFile($data, $item)
{
$data['summary'] = (string)$item->summary;
return $data;
}