Lines Matching defs:ext

118         foreach ($extensions as $ext) {
119 $repo = $this->getSourceRepo($ext);
122 $this->error("could not find a repository for $ext");
123 $errors[] = $ext;
124 } elseif ($this->cloneExtension($ext, $repo)) {
125 $succeeded[] = $ext;
127 $errors[] = $ext;
146 foreach ($extensions as $ext) {
147 $repo = $this->getSourceRepo($ext);
150 $this->info("could not find a repository for $ext");
151 if ($this->downloadExtension($ext)) {
152 $succeeded[] = $ext;
154 $errors[] = $ext;
156 } elseif ($this->cloneExtension($ext, $repo)) {
157 $succeeded[] = $ext;
159 $errors[] = $ext;
214 * @param string $ext
217 private function downloadExtension($ext)
221 if (!$ext) die("extension plugin not available, can't continue");
223 $plugin->setExtension($ext);
227 $this->error("no download URL for $ext");
233 $this->info("installing $ext via download from $url");
240 $this->success("installed $ext via download");
243 $this->success("failed to install $ext via download");
251 * @param string $ext
255 private function cloneExtension($ext, $repo)
257 if (str_starts_with($ext, 'template:')) {
258 $target = fullpath(tpl_incdir() . '../' . substr($ext, 9));
260 $target = DOKU_PLUGIN . $ext;
263 $this->info("cloning $ext from $repo to $target");
267 $this->success("cloning of $ext succeeded");
270 $this->error("cloning of $ext failed");
308 /** @var helper_plugin_extension_extension $ext */
309 $ext = plugin_load('helper', 'extension_extension');
310 if (!$ext) die("extension plugin not available, can't continue");
312 $ext->setExtension($extension);
314 $repourl = $ext->getSourcerepoURL();