Lines Matching refs:dir
86 $dir = $this->namespacePath($this->namespace);
87 $this->createHierarchy($parent, $dir, $this->maxdepth);
100 * @param string $dir The directory relative to the page directory
104 protected function createHierarchy(AbstractNode $parent, string $dir, int $depth) argument
108 $this->processNamespaces($parent, $dir, $depth);
113 $this->processPages($parent, $dir);
121 * @param string $dir Current directory path
125 protected function processNamespaces(AbstractNode $parent, string $dir, int $depth) argument
130 $dirs = glob($base . $dir . '/*', GLOB_ONLYDIR); // will always ignore hidden dirs
133 $id = pathID($dir . '/' . $subdir);
144 $this->createHierarchy($node, $dir . '/' . $subdir, $depth - 1);
176 * @param string $dir Current directory path
179 protected function processPages(AbstractNode $parent, string $dir) argument
184 $files = glob($base . $dir . '/*.txt');
187 $id = pathID($dir . '/' . $file);
245 $dir = wikiFN($namespace . ':xxx');
246 $dir = substr($dir, strlen($base));
247 $dir = dirname($dir); // remove the 'xxx' part
248 if ($dir === '.') $dir = ''; // dirname returns '.' for root namespace
249 return $dir;