summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-12-25 10:02:08 +0400
committerAndrew Dolgov <[email protected]>2012-12-25 10:02:08 +0400
commitd2a421e3cbaa782748840fc19afad4ac65f044b8 (patch)
treefed3583a4f855c5c0c7c7a9d6c3f8effc94932d6 /plugins
parentde612e7a3850d3053c7038e94098c0681d46983b (diff)
more work on user-selectable plugins; properly process system and user plugins
Diffstat (limited to 'plugins')
-rw-r--r--plugins/digest/digest.php8
-rw-r--r--plugins/example/example.php4
-rw-r--r--plugins/example_feed/example_feed.php4
-rw-r--r--plugins/example_routing/example_routing.php4
-rw-r--r--plugins/flattr/flattr.php4
-rw-r--r--plugins/googleplus/googleplus.php4
-rw-r--r--plugins/identica/identica.php4
-rw-r--r--plugins/import_export/import_export.php4
-rw-r--r--plugins/instances/instances.php4
-rw-r--r--plugins/mail/mail.php4
-rw-r--r--plugins/note/note.php4
-rw-r--r--plugins/pinterest/pinterest.php4
-rw-r--r--plugins/pocket/pocket.php4
-rw-r--r--plugins/redditimgur/redditimgur.php4
-rw-r--r--plugins/share/share.php4
-rw-r--r--plugins/updater/updater.php4
16 files changed, 32 insertions, 36 deletions
diff --git a/plugins/digest/digest.php b/plugins/digest/digest.php
index cb906e3c1..621e4258a 100644
--- a/plugins/digest/digest.php
+++ b/plugins/digest/digest.php
@@ -4,22 +4,18 @@ class Digest extends Plugin implements IHandler {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Digest mode for tt-rss (tablet friendly UI)",
"fox",
true);
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
$host->add_handler("digest", "*", $this);
-
- //$host->add_handler("rpc", "digestinit", $this);
- //$host->add_handler("rpc", "digestupdate", $this);
- //$host->add_handler("rpc", "digestgetcontents", $this);
}
function index() {
diff --git a/plugins/example/example.php b/plugins/example/example.php
index be6a48551..eef604b4f 100644
--- a/plugins/example/example.php
+++ b/plugins/example/example.php
@@ -6,14 +6,14 @@ class Example extends Plugin {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Example plugin #1",
"fox",
true);
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/example_feed/example_feed.php b/plugins/example_feed/example_feed.php
index a0d6d19c7..af14d3ff3 100644
--- a/plugins/example_feed/example_feed.php
+++ b/plugins/example_feed/example_feed.php
@@ -7,14 +7,14 @@ class Example_Feed extends Plugin {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Example feed plugin",
"fox",
true);
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/example_routing/example_routing.php b/plugins/example_routing/example_routing.php
index f15951e08..31c5b6f28 100644
--- a/plugins/example_routing/example_routing.php
+++ b/plugins/example_routing/example_routing.php
@@ -15,14 +15,14 @@ class Example_Routing extends Plugin implements IHandler {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Example routing plugin",
"fox",
true);
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/flattr/flattr.php b/plugins/flattr/flattr.php
index e5042632c..3ab7ebd85 100644
--- a/plugins/flattr/flattr.php
+++ b/plugins/flattr/flattr.php
@@ -3,14 +3,14 @@ class Flattr extends Plugin {
private $link;
private $host;
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
}
- function _about() {
+ function about() {
return array(1.0,
"Share on Flattr plugin",
"Nic Honing");
diff --git a/plugins/googleplus/googleplus.php b/plugins/googleplus/googleplus.php
index a100573de..11e58de2e 100644
--- a/plugins/googleplus/googleplus.php
+++ b/plugins/googleplus/googleplus.php
@@ -3,14 +3,14 @@ class GooglePlus extends Plugin {
private $link;
private $host;
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
}
- function _about() {
+ function about() {
return array(1.0,
"Share on Google+ plugin",
"homolibere");
diff --git a/plugins/identica/identica.php b/plugins/identica/identica.php
index 67ca6ae2c..7d5e71310 100644
--- a/plugins/identica/identica.php
+++ b/plugins/identica/identica.php
@@ -3,14 +3,14 @@ class Identica extends Plugin {
private $link;
private $host;
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
}
- function _about() {
+ function about() {
return array(1.0,
"Share on Identi.ca",
"fox");
diff --git a/plugins/import_export/import_export.php b/plugins/import_export/import_export.php
index 68597978b..823976565 100644
--- a/plugins/import_export/import_export.php
+++ b/plugins/import_export/import_export.php
@@ -4,7 +4,7 @@ class Import_Export extends Plugin implements IHandler {
private $link;
private $host;
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
@@ -12,7 +12,7 @@ class Import_Export extends Plugin implements IHandler {
$host->add_command("xml-import", "USER FILE: import articles from XML", $this);
}
- function _about() {
+ function about() {
return array(1.0,
"Imports and exports user data using a neutral XML format",
"fox");
diff --git a/plugins/instances/instances.php b/plugins/instances/instances.php
index 2836bce5a..3acb163cc 100644
--- a/plugins/instances/instances.php
+++ b/plugins/instances/instances.php
@@ -10,14 +10,14 @@ class Instances extends Plugin implements IHandler {
2 => "Invalid object received",
16 => "Access denied" );
- function _about() {
+ function about() {
return array(1.0,
"Support for linking tt-rss instances together and sharing popular feeds.",
"fox",
true);
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/mail/mail.php b/plugins/mail/mail.php
index 648148cd3..ed65ca021 100644
--- a/plugins/mail/mail.php
+++ b/plugins/mail/mail.php
@@ -4,13 +4,13 @@ class Mail extends Plugin {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Adds a share article via email button",
"fox");
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/note/note.php b/plugins/note/note.php
index c6c1ef903..560796a69 100644
--- a/plugins/note/note.php
+++ b/plugins/note/note.php
@@ -3,13 +3,13 @@ class Note extends Plugin {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Adds support for setting article notes",
"fox");
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/pinterest/pinterest.php b/plugins/pinterest/pinterest.php
index c42549170..f93b62ff9 100644
--- a/plugins/pinterest/pinterest.php
+++ b/plugins/pinterest/pinterest.php
@@ -3,13 +3,13 @@ class Pinterest extends Plugin {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Share article via Pinterest",
"?");
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/pocket/pocket.php b/plugins/pocket/pocket.php
index 6b5ccddec..b17597568 100644
--- a/plugins/pocket/pocket.php
+++ b/plugins/pocket/pocket.php
@@ -4,13 +4,13 @@ class Pocket extends Plugin {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Share article via Pocket (formerly Read It Later)",
"?");
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/redditimgur/redditimgur.php b/plugins/redditimgur/redditimgur.php
index 177647538..ca6554a75 100644
--- a/plugins/redditimgur/redditimgur.php
+++ b/plugins/redditimgur/redditimgur.php
@@ -4,13 +4,13 @@ class RedditImgur extends Plugin {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Inline image links in Reddit RSS feeds",
"fox");
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/share/share.php b/plugins/share/share.php
index 254b68bca..e1151849b 100644
--- a/plugins/share/share.php
+++ b/plugins/share/share.php
@@ -3,13 +3,13 @@ class Share extends Plugin {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Share article by unique URL",
"fox");
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;
diff --git a/plugins/updater/updater.php b/plugins/updater/updater.php
index 2148e3c01..1dbd5ab66 100644
--- a/plugins/updater/updater.php
+++ b/plugins/updater/updater.php
@@ -4,14 +4,14 @@ class Updater extends Plugin {
private $link;
private $host;
- function _about() {
+ function about() {
return array(1.0,
"Updates tt-rss installation to latest version.",
"fox",
true);
}
- function __construct($host) {
+ function init($host) {
$this->link = $host->get_link();
$this->host = $host;