summaryrefslogtreecommitdiff
path: root/action.php
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2011-10-22 01:41:35 +0200
committerYves Fischer <yvesf-git@xapek.org>2011-10-22 02:11:47 +0200
commitfc87f3d31d50ec60fdf4edc3eda68ad77e86e11c (patch)
tree1a5e053016f3f751f8e84221a1b775bdaba972fe /action.php
parenteccaa6b2507b4217809b2cd955c0014bd043fe59 (diff)
downloaddokuwiki-plugin-treenav-fc87f3d31d50ec60fdf4edc3eda68ad77e86e11c.tar.gz
dokuwiki-plugin-treenav-fc87f3d31d50ec60fdf4edc3eda68ad77e86e11c.zip
prefix global function/class
Diffstat (limited to 'action.php')
-rw-r--r--action.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/action.php b/action.php
index da0fb22..1edea7b 100644
--- a/action.php
+++ b/action.php
@@ -12,7 +12,7 @@ require_once DOKU_PLUGIN.'action.php';
*
* like search_namespaces but with limited depth to 1
*/
-function search_namespaces1(&$data,$base,$file,$type,$lvl,$opts){
+function treenav_search_namespaces(&$data,$base,$file,$type,$lvl,$opts){
$opts['listdirs'] = true;
$opts['depth'] = 1;
return search_universal($data,$base,$file,$type,$lvl,$opts);
@@ -21,7 +21,7 @@ function search_namespaces1(&$data,$base,$file,$type,$lvl,$opts){
/**
* Helper class to list Pages and Namespaces
*/
-class NamespaceNode {
+class treenav_NamespaceNode {
public $name;
public $level;
public function __construct($name, $level) {
@@ -40,9 +40,9 @@ class NamespaceNode {
global $conf;
$data = array();
$childs = array();
- search($data,$conf['datadir'], 'search_namespaces1', array(), str_replace(':', '/', $this->name));
+ search($data,$conf['datadir'], 'treenav_search_namespaces', array(), str_replace(':', '/', $this->name));
foreach ($data as $ns) {
- $childs[] = new NamespaceNode($ns['id'], $this->level+1);
+ $childs[] = new treenav_NamespaceNode($ns['id'], $this->level+1);
}
return $childs;
}
@@ -71,7 +71,7 @@ class action_plugin_treenav extends DokuWiki_Action_Plugin {
$doc = $cache->retrieveCache(false);
} else {
$deps = array('files' => array());
- $root = new NamespaceNode('',0);
+ $root = new treenav_NamespaceNode('',0);
$renderer =& p_get_renderer('xhtml');
$renderer->listu_open();