aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/plugins/action.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plugins/action.php')
-rw-r--r--lib/plugins/action.php16
1 files changed, 5 insertions, 11 deletions
diff --git a/lib/plugins/action.php b/lib/plugins/action.php
index 23d94a509..496c56926 100644
--- a/lib/plugins/action.php
+++ b/lib/plugins/action.php
@@ -2,24 +2,18 @@
/**
* Action Plugin Prototype
*
- * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
- * @author Christopher Smith <chris@jalakai.co.uk>
- */
-// must be run within Dokuwiki
-if(!defined('DOKU_INC')) die();
-
-/**
* All DokuWiki plugins to interfere with the event system
* need to inherit from this class
+ *
+ * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author Christopher Smith <chris@jalakai.co.uk>
*/
-class DokuWiki_Action_Plugin extends DokuWiki_Plugin {
+abstract class DokuWiki_Action_Plugin extends DokuWiki_Plugin {
/**
* Registers a callback function for a given event
*
* @param Doku_Event_Handler $controller
*/
- public function register(Doku_Event_Handler $controller) {
- trigger_error('register() not implemented in '.get_class($this), E_USER_WARNING);
- }
+ abstract public function register(Doku_Event_Handler $controller);
}