action.php
author Andreas Boehler <andreas@aboehler.at>
Fri, 12 Sep 2014 07:01:55 +0200
changeset 0 11a7dcc4af7a
child 1 347546fd9315
permissions -rw-r--r--
Initial import of datapopup
<?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: