]>
git.wh0rd.org - tt-rss.git/blob - plugins/example_feed/init.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.
11 "Example feed plugin",
16 function init($host) {
19 $host->add_hook($host::HOOK_FEED_PARSED
, $this);
22 function hook_feed_parsed($feed) {
23 _debug("I'm a little feed short and stout, here's my title: " . $feed->get_title());
24 _debug("... here's my link element: " . $feed->get_link());