Lines Matching refs:dir
94 * @param string $dir Where the extension code is currently located
99 public static function createFromDirectory($dir, $type = null, $base = null) argument
102 $extension->initFromDirectory($dir, $type, $base);
106 protected function initFromDirectory($dir, $type = null, $base = null) argument
108 if (!is_dir($dir)) throw new RuntimeException('Directory not found: ' . $dir);
109 $this->currentDir = fullpath($dir);
113 file_exists($dir . '/template.info.txt') ||
114 file_exists($dir . '/style.ini') ||
115 file_exists($dir . '/main.php') ||
116 file_exists($dir . '/detail.php') ||
117 file_exists($dir . '/mediamanager.php')
132 $this->base = $this->getBaseFromClass($dir) ?: basename($dir);
233 $dir = dirname(tpl_incdir()) . '/' . $this->base;
235 $dir = DOKU_PLUGIN . $this->base;
238 return fullpath($dir);
789 * @param string $dir The directory where the extension is located
792 protected function getBaseFromClass($dir) argument
795 $file = $dir . '/' . $type . '.php';