diff options
Diffstat (limited to 'wiki/lib/plugins/action.php')
-rw-r--r-- | wiki/lib/plugins/action.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/wiki/lib/plugins/action.php b/wiki/lib/plugins/action.php new file mode 100644 index 0000000..23d94a5 --- /dev/null +++ b/wiki/lib/plugins/action.php @@ -0,0 +1,25 @@ +<?php +/** + * 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 + */ +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); + } +} |