From d2a421e3cbaa782748840fc19afad4ac65f044b8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 25 Dec 2012 10:02:08 +0400 Subject: more work on user-selectable plugins; properly process system and user plugins --- classes/plugin.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'classes/plugin.php') diff --git a/classes/plugin.php b/classes/plugin.php index 59cb64f53..e655a2062 100644 --- a/classes/plugin.php +++ b/classes/plugin.php @@ -3,9 +3,22 @@ class Plugin { private $link; private $host; - function __construct($host) { + function init($host) { $this->link = $host->get_link(); $this->host = $host; } + + function about() { + // version, name, description, author, is_system + return array(1.0, "plugin", "No description", "No author", false); + } + + function get_js() { + return ""; + } + + function get_prefs_js() { + return ""; + } } ?> -- cgit v1.2.3-54-g00ecf