]>
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
14 "Example vfeed plugin",
19 function init($host) {
22 $this->dummy_id
= $host->add_feed(-1, 'Dummy feed', 'images/pub_set.svg', $this);
25 function get_unread($feed_id) {
29 function get_headlines($feed_id, $options) {
30 $qfh_ret = queryFeedHeadlines( -4,
32 $options['view_mode'], $options['cat_view'],
34 $options['search_mode'],
35 $options['override_order'],
37 $options['owner_uid'],
40 $options['include_children']);
42 $qfh_ret[1] = 'Dummy feed';