action.php
changeset 0 11a7dcc4af7a
child 1 347546fd9315
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/action.php	Fri Sep 12 07:01:55 2014 +0200
@@ -0,0 +1,35 @@
+<?php
+/**
+ * DokuWiki Plugin datapopup (Action Component)
+ *
+ * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
+ * @author  Andreas Boehler <dev@aboehler.at>
+ */
+
+// must be run within Dokuwiki
+if (!defined('DOKU_INC')) die();
+
+if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
+
+require_once(DOKU_PLUGIN.'action.php');
+
+class action_plugin_datapopup extends DokuWiki_Action_Plugin {
+
+    var $dthlp = null;
+
+    function action_plugin_datapopup() {
+        $this->dthlp =& plugin_load('helper', 'data');
+    }
+
+    function register(&$controller) {
+        global $JSINFO;
+        $JSINFO['plugin']['datapopup']['registered_types'] = $this->getConf('registered_types');
+    }
+
+    function getFields($link, $name) {
+        return $this->dthlp->_resolveSummary($link, $name);
+    }
+
+}
+
+// vim:ts=4:sw=4:et:enc=utf-8: