1<?php
2/**
3 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
4 * @author     Myron Turner <turnermm03@shaw.ca>
5 */
6
7// must be run within Dokuwiki
8if (!defined('DOKU_INC')) die();
9
10
11class helper_plugin_numbering extends DokuWiki_Plugin {
12   private  $debug = 0;
13
14   function getMethods(){
15    $result = array();
16    $result[] = array(
17      'name'   => 'getConfValue',
18      'desc'   => 'return configuration value',
19      'params' => array('name' => 'string'),
20      'return' => array('value' => 'string'),
21    );
22    return $result;
23  }
24
25   function getConfValue($name) {
26       if($this->debug) $this->_debug($name);
27       return urlencode(trim($this->getConf($name)));
28   }
29
30   function _debug($name) {
31      $val = $this->getConf($name);
32      echo "$name = $val\n";
33   }
34}