action.php
changeset 0 11a7dcc4af7a
child 1 347546fd9315
equal deleted inserted replaced
-1:000000000000 0:11a7dcc4af7a
       
     1 <?php
       
     2 /**
       
     3  * DokuWiki Plugin datapopup (Action Component)
       
     4  *
       
     5  * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
       
     6  * @author  Andreas Boehler <dev@aboehler.at>
       
     7  */
       
     8 
       
     9 // must be run within Dokuwiki
       
    10 if (!defined('DOKU_INC')) die();
       
    11 
       
    12 if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
       
    13 
       
    14 require_once(DOKU_PLUGIN.'action.php');
       
    15 
       
    16 class action_plugin_datapopup extends DokuWiki_Action_Plugin {
       
    17 
       
    18     var $dthlp = null;
       
    19 
       
    20     function action_plugin_datapopup() {
       
    21         $this->dthlp =& plugin_load('helper', 'data');
       
    22     }
       
    23 
       
    24     function register(&$controller) {
       
    25         global $JSINFO;
       
    26         $JSINFO['plugin']['datapopup']['registered_types'] = $this->getConf('registered_types');
       
    27     }
       
    28 
       
    29     function getFields($link, $name) {
       
    30         return $this->dthlp->_resolveSummary($link, $name);
       
    31     }
       
    32 
       
    33 }
       
    34 
       
    35 // vim:ts=4:sw=4:et:enc=utf-8: