diff options
author | Andrew Dolgov <[email protected]> | 2013-05-07 10:09:38 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-05-07 10:09:38 +0400 |
commit | 2c967d60237c5890549b9c9fa680ee7adec10e6a (patch) | |
tree | e59a6791d97715b17bd08129f309227178999655 /plugins/example_vfeed/init.php | |
parent | d88922a5d31062196da6e69ab109079cda8867b2 (diff) |
move example plugins to -contrib
Diffstat (limited to 'plugins/example_vfeed/init.php')
-rw-r--r-- | plugins/example_vfeed/init.php | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/plugins/example_vfeed/init.php b/plugins/example_vfeed/init.php deleted file mode 100644 index 31076190f..000000000 --- a/plugins/example_vfeed/init.php +++ /dev/null @@ -1,52 +0,0 @@ -<?php -class Example_VFeed extends Plugin { - - // Demonstrates how to create a dummy special feed and chain - // headline generation to queryFeedHeadlines(); - - // Not implemented yet: stuff for 3 panel mode - - private $host; - private $dummy_id; - - function about() { - return array(1.0, - "Example vfeed plugin", - "fox", - false); - } - - function init($host) { - $this->host = $host; - - $this->dummy_id = $host->add_feed(-1, 'Dummy feed', 'images/pub_set.svg', $this); - } - - function get_unread($feed_id) { - return 1234; - } - - function get_headlines($feed_id, $options) { - $qfh_ret = queryFeedHeadlines(-4, - $options['limit'], - $options['view_mode'], $options['cat_view'], - $options['search'], - $options['search_mode'], - $options['override_order'], - $options['offset'], - $options['owner_uid'], - $options['filter'], - $options['since_id'], - $options['include_children']); - - $qfh_ret[1] = 'Dummy feed'; - - return $qfh_ret; - } - - function api_version() { - return 2; - } - -} -?> |