]>
git.wh0rd.org - tt-rss.git/blob - plugins/example_feed/example_feed.php
2 class Example_Feed
extends Plugin
{
4 // Demonstrates how to query data from the parsed feed object (SimplePie)
5 // don't enable unless debugging feed through f D hotkey or manually.
12 "Example feed plugin",
17 function __construct($host) {
18 $this->link
= $host->get_link();
21 $host->add_hook($host::HOOK_FEED_PARSED
, $this);
24 function hook_feed_parsed($feed) {
25 _debug("I'm a little feed short and stout, here's my title: " . $feed->get_title());
26 _debug("... here's my link element: " . $feed->get_link());