aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/Extension/ActionPlugin.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2018-06-15 17:05:16 +0200
committerAndreas Gohr <andi@splitbrain.org>2019-04-20 21:33:23 +0200
commite1d9dcc8b460b6f029ac9c8d5d3b8d23b6e73402 (patch)
tree4f1cb24149db8647346973979844423fb8823308 /inc/Extension/ActionPlugin.php
parent749c002394774d4323466fa0c9370aa913b1849d (diff)
downloaddokuwiki-e1d9dcc8b460b6f029ac9c8d5d3b8d23b6e73402.tar.gz
dokuwiki-e1d9dcc8b460b6f029ac9c8d5d3b8d23b6e73402.zip
First go at moving the plugin classes into their own namespace
Diffstat (limited to 'inc/Extension/ActionPlugin.php')
-rw-r--r--inc/Extension/ActionPlugin.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/inc/Extension/ActionPlugin.php b/inc/Extension/ActionPlugin.php
new file mode 100644
index 000000000..ed6d82038
--- /dev/null
+++ b/inc/Extension/ActionPlugin.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace dokuwiki\Extension;
+
+/**
+ * Action Plugin Prototype
+ *
+ * Handles action hooks within a plugin
+ *
+ * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
+ * @author Christopher Smith <chris@jalakai.co.uk>
+ */
+abstract class ActionPlugin extends Plugin
+{
+
+ /**
+ * Registers a callback function for a given event
+ *
+ * @param \Doku_Event_Handler $controller
+ */
+ abstract public function register(\Doku_Event_Handler $controller);
+}