]>
git.wh0rd.org - tt-rss.git/blob - plugins/example_vfeed/init.php
2 class Example_VFeed
extends Plugin
{
4 // Demonstrates how to create a dummy special feed and chain
5 // headline generation to queryFeedHeadlines();
7 // Not implemented yet: stuff for 3 panel mode
15 "Example vfeed plugin",
20 function init($host) {
21 $this->link
= $host->get_link();
24 $this->dummy_id
= $host->add_feed(-1, 'Dummy feed', 'images/pub_set.svg', $this);
27 function get_unread($feed_id) {
31 function get_headlines($feed_id, $options) {
32 $qfh_ret = queryFeedHeadlines($this->link
, -4,
34 $options['view_mode'], $options['cat_view'],
36 $options['search_mode'],
37 $options['override_order'],
39 $options['owner_uid'],
42 $options['include_children']);
44 $qfh_ret[1] = 'Dummy feed';