Home
last modified time | relevance | path

Searched refs:ext (Results 1 – 25 of 27) sorted by path

12

/dokuwiki/bin/
H A Dgittool.php118 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");
215 downloadExtension($ext) global() argument
252 cloneExtension($ext, $repo) global() argument
[all...]
/dokuwiki/inc/Cache/
H A DCache.php16 public $ext = ''; // file ext for cache data, secondary identifier for this item variable in dokuwiki\\Cache\\Cache
32 * @param string $ext file extension
34 public function __construct($key, $ext) argument
37 $this->ext = $ext;
38 $this->cache = getCacheName($key, $ext);
214 if (isset($stats[$this->ext])) {
215 [$ext, $count, $hits] = explode(',', $stats[$this->ext]);
[all...]
H A DCacheImageMod.php17 * @param string $ext Image extension - no leading dot
20 public function __construct($file, $w, $h, $ext, $crop)
24 $fullext .= ".$ext";
21 __construct($file, $w, $h, $ext, $crop) global() argument
/dokuwiki/inc/Extension/
H A DPluginInterface.php77 * @param string $ext The file extension (usually txt)
80 public function localFN($id, $ext = 'txt'); argument
H A DPluginTrait.php24 $ext = $parts[2];
26 if (empty($ext)) {
31 $ext = strtok($ext, '_');
34 'base' => $ext,
38 'name' => $ext . ' plugin',
40 'url' => 'https://www.dokuwiki.org/plugins/' . $ext,
43 $file = DOKU_PLUGIN . '/' . $ext . '/plugin.info.txt';
50 if (empty($raw[$line])) Logger::error(sprintf($msg, $ext, $line, $file));
56 Logger::error(sprintf('Extension %s does not provide a plugin.info.txt in %s', $ext,
107 localFN($id, $ext = 'txt') global() argument
[all...]
/dokuwiki/inc/File/
H A DMediaFile.php14 protected $ext;
32 [$this->ext, $this->mime, $this->downloadable] = mimetype($this->path, false);
73 return (string)$this->ext;
83 $ext = $this->getExtension();
84 if ($ext === '') $ext = 'file';
85 return preg_replace('/[^_\-a-z0-9]+/i', '_', $ext);
13 protected $ext; global() variable in dokuwiki\\File\\MediaFile
/dokuwiki/inc/
H A DMailer.class.php108 [, $ext] = explode('/', $mime);
109 $name = count($this->attach) . ".$ext";
H A Dcache.php14 public function __construct($key, $ext)
17 parent::__construct($key, $ext);
13 __construct($key, $ext) global() argument
H A Dcommon.php1043 * @param string $ext extension of file being read, default 'txt'
1046 function rawLocale($id, $ext = 'txt')
1048 return io_readFile(localeFN($id, $ext));
1044 rawLocale($id, $ext = 'txt') global() argument
H A Dconfutils.php36 $ext = strrpos($file, '.');
37 if ($ext === false) {
40 $ext = strtolower(substr($file, $ext + 1));
41 if (!isset($mtypes[$ext])) {
45 return [$ext, 'application/octet-stream', true];
48 if ($mtypes[$ext][0] == '!') {
49 return [$ext, substr($mtypes[$ext], 1), true];
51 return [$ext,
[all...]
H A Dmedia.php315 [$ext, $mime] = mimetype($id);
329 ['name' => $path, 'mime' => $mime, 'ext' => $ext],
385 'ext' => $iext
446 if (!isset($file['mime']) || !isset($file['ext'])) {
447 [$ext, $mime] = mimetype($id);
451 if (!isset($file['ext'])) {
452 $file['ext'] = $ext;
484 return [sprintf($lang['uploadbadcontent'], '.' . $file['ext']),
1704 media_mod_image($file, $ext, $w, $h = 0, $crop = false) global() argument
1746 media_resize_image($file, $ext, $w, $h = 0) global() argument
1762 media_crop_image($file, $ext, $w, $h = 0) global() argument
1806 media_get_from_URL($url, $ext, $cache) global() argument
1887 media_resize_imageIM($ext, $from, $from_w, $from_h, $to, $to_w, $to_h) global() argument
1923 media_crop_imageIM($ext, $from, $from_w, $from_h, $to, $to_w, $to_h, $ofs_x, $ofs_y) global() argument
1961 media_resize_imageGD($ext, $from, $from_w, $from_h, $to, $to_w, $to_h, $ofs_x = 0, $ofs_y = 0) global() argument
[all...]
H A Dpageutils.php393 * @param string $ext file extension
396 function metaFN($id, $ext)
402 $fn = $conf['metadir'] . '/' . utf8_encodeFN($id) . $ext;
412 * @param string $ext extension of media
415 function mediaMetaFN($id, $ext)
421 $fn = $conf['mediametadir'] . '/' . utf8_encodeFN($id) . $ext;
464 $ext = mimetype($id);
465 $name = substr($id, 0, -1 * strlen($ext[0]) - 1);
466 $fn = $conf['mediaolddir'] . '/' . utf8_encodeFN($name . '.' . ( (int) $rev ) . '.' . $ext[0]);
476 * @param string $ext Th
392 metaFN($id, $ext) global() argument
410 mediaMetaFN($id, $ext) global() argument
475 localeFN($id, $ext = 'txt') global() argument
601 getCacheName($data, $ext = '') global() argument
[all...]
H A Dtemplate.php1546 [$ext] = mimetype($image, false);
1547 $class = preg_replace('/[^_\-a-z0-9]+/i', '_', $ext);
/dokuwiki/inc/parser/
H A Dxhtml.php664 [$ext] = mimetype($filename, false);
665 $class = preg_replace('/[^_\-a-z0-9]+/i', '_', $ext);
1205 [$ext, $mime] = mimetype($src, false);
1221 $class = preg_replace('/[^_\-a-z0-9]+/i', '_', $ext);
1299 [$ext, $mime] = mimetype($src, false);
1302 // if ($ext != 'jpg' && $ext != 'jpeg') $noLink = true;
1308 $class = preg_replace('/[^_\-a-z0-9]+/i', '_', $ext);
1683 [$ext, $mime] = mimetype($src);
1688 } elseif ($ext
[all...]
/dokuwiki/lib/exe/
H A Dcss.php357 foreach (['svg', 'png', 'gif'] as $ext) {
358 $file = 'lib/images/interwiki/' . $iw . '.' . $ext;
396 foreach ($exts as $ext) {
397 $class = preg_replace('/[^_\-a-z0-9]+/', '_', $ext);
399 echo ' background-image: url(' . DOKU_BASE . 'lib/images/fileicons/svg/' . $ext . '.svg)';
520 $ext = unslash($match[4]);
528 $url = 'data:image/' . $ext . ';base64,' . $data;
/dokuwiki/lib/plugins/extension/
H A Daction.php48 $ext = $INPUT->str('ext');
49 if (!$ext) {
57 $extension->setExtension($ext);
H A Dadmin.php
H A Dcli.php119 /* @var helper_plugin_extension_extension $ext */
120 $ext = $this->loadHelper('extension_extension');
125 $ext->setExtension($extname);
126 $date = $ext->getInstalledVersion();
127 $avail = $ext->getLastUpdate();
128 if ($avail && $avail > $date && !$ext->isBundled()) {
145 /* @var helper_plugin_extension_extension $ext */
146 $ext = $this->loadHelper('extension_extension');
150 $ext->setExtension($extname);
151 if (!$ext
[all...]
H A Dscript.js67 ext: extension,
108 ext: $link.data('extid'),
/dokuwiki/lib/plugins/extension/helper/
H A Dextension.php837 foreach (array_keys($installed) as $ext) {
838 if ($this->getID() != $ext) $this->setExtension($ext);
1199 $ext = $this->guessArchiveType($file);
1200 if (in_array($ext, ['tar', 'bz', 'gz'])) {
1210 } elseif ($ext == 'zip') {
H A Dlist.php546 * @param array $ext The extensions
549 public function makeLinkList($ext)
552 foreach ($ext as $link) {
554 $this->gui->tabURL('search', ['q' => 'ext:' . $link]) . '">' .
542 makeLinkList($ext) global() argument
H A Drepository.php45 $request_data['ext'][] = $name;
121 $data = $httpclient->get(self::EXTENSION_REPOSITORY_API . '?fmt=json&ext[]=' . urlencode($name));
167 foreach ($result as $ext) {
168 $name = $ext['plugin'];
170 $cache->storeCache(serialize($ext));
185 $parameters = ['tag' => [], 'mail' => [], 'type' => [], 'ext' => []];
202 if (preg_match_all('/(^|\s)(ext:([\S]+))/', $q, $matches, PREG_SET_ORDER)) {
205 $parameters['ext'][] = $m[3];
/dokuwiki/lib/scripts/
H A Dfileuploader.js452 var ext = (-1 !== fileName.indexOf('.')) ? fileName.replace(/.*[.]/, '').toLowerCase() : ''; variable
458 if (allowed[i].toLowerCase() == ext){ return true;}
H A Dmedia.js13 ext: false, property in dw_mediamanager
237 if ({img: 1, swf: 1}[dw_mediamanager.ext] === 1) {
243 if (dw_mediamanager.link === "3" && dw_mediamanager.ext === 'img') {
245 } else if (dw_mediamanager.link === "2" && dw_mediamanager.ext === 'img') {
255 if (dw_mediamanager.ext === 'swf') {
690 var $link, id, dot, ext; variable
706 dw_mediamanager.ext = false;
714 ext = id.substr(dot);
716 if ({'.jpg': 1, '.jpeg': 1, '.png': 1, '.gif': 1, '.swf': 1}[ext] !== 1) {
725 dw_mediamanager.unforbid('ext');
[all...]
/dokuwiki/vendor/composer/
H A DClassLoader.php489 * @param string $ext
492 private function findFileWithExtension($class, $ext)
495 $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
528 $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
498 findFileWithExtension($class, $ext) global() argument

12