Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 46) sorted by relevance

12

/dokuwiki/inc/
H A DTaskRunner.php107 $fn = ($media_changes ? $conf['media_changelog'] : $conf['changelog']);
114 file_exists($fn) &&
115 (@filemtime($fn . '.trimmed') + 86400) < time() &&
116 !file_exists($fn . '_tmp')
118 @touch($fn . '.trimmed');
119 io_lock($fn);
120 $lines = file($fn);
123 io_unlock($fn);
128 io_saveFile($fn . '_tmp', ''); // presave tmp as 2nd lock
150 @unlink($fn . '_tmp');
[all …]
H A Dpageutils.php350 $fn = $conf['datadir'] . '/' . utf8_encodeFN($id) . '.txt';
352 $fn = $conf['olddir'] . '/' . utf8_encodeFN($id) . '.' . $rev . '.txt';
355 if (file_exists($fn . '.gz')) {
356 $fn .= '.gz';
357 } elseif (file_exists($fn . '.bz2')) {
358 $fn .= '.bz2';
361 $fn .= '.' . $conf['compression'];
369 $cache[$id][$rev] = $fn;
370 return $fn;
403 $fn = $conf['metadir'] . '/' . utf8_encodeFN($id) . $ext;
[all …]
H A Dmedia.php463 $fn = mediaFN($id);
468 static fn($q) => preg_quote($q, "/"),
474 if (!preg_match('/\.(' . $regex . ')$/i', $fn)) {
479 $overwrite = file_exists($fn);
497 $data[1] = $fn;
533 * @param string $fn
540 function media_upload_finish($fn_tmp, $fn, $id, $imime, $overwrite, $move = 'move_uploaded_file') argument
546 $old = @filemtime($fn);
547 if (!file_exists(mediaFN($id, $old)) && file_exists($fn)) {
555 $filesize_old = file_exists($fn) ? filesize($fn) : 0;
[all …]
H A Dconfutils.php301 * @param callback $fn the function used to process the configuration file into an array
310 function retrieveConfig($type, $fn, $params = null, $combine = 'array_merge') argument
322 $config = call_user_func_array($fn, array_merge([$file], $params));
H A Ddeprecated.php261 $fn = $conf['indexdir'] . '/' . $idx . $suffix . '.idx';
262 if (!file_exists($fn)) return [];
263 return file($fn);
H A DMailUtils.php159 static fn(array $matches): string => sprintf("=%02X", ord($matches[0])),
H A Dchangelog.php367 $fn = (($flags & RECENTS_MEDIA_CHANGES) ? mediaFN($recent['id']) : wikiFN($recent['id']));
368 if (!file_exists($fn)) return false;
H A Dfetch.functions.php125 static fn($match) => rawurlencode($match[0]),
/dokuwiki/lib/scripts/
H A Dbehaviour.js8 jQuery.fn.dw_hide = function(fn, noaria) { argument
10 return this.slideUp('fast', fn);
20 jQuery.fn.dw_show = function(fn, noaria) { argument
22 return this.slideDown('fast', fn);
32 jQuery.fn.dw_toggle = function(state, fn, noaria) { argument
38 $this[state ? "dw_show" : "dw_hide" ](fn, noaria);
H A Dtree.js1 jQuery.fn.dw_tree = function(overrides) {
/dokuwiki/lib/tpl/dokuwiki/css/
H A D_footnotes.css24 .dokuwiki div.footnotes div.fn {
26 .dokuwiki div.footnotes div.fn div.content {
29 .dokuwiki div.footnotes div.fn sup a.fn_bot {
/dokuwiki/inc/Search/Query/
H A DNamespacePredicate.php38 fn($id) => str_starts_with($id, $this->prefix),
51 fn($id) => !str_starts_with($id, $this->prefix),
/dokuwiki/lib/plugins/extension/
H A Dremote.php37 static fn($extension) => new ExtensionApiResponse($extension),
65 static fn($extension) => new ExtensionApiResponse($extension),
125 static fn($status) => (
H A DNotice.php117 implode(', ', array_map(static fn(Extension $dep) => $dep->getId(true), $missing))
137 implode(', ', array_map(static fn(Extension $dep) => $dep->getId(true), $found))
/dokuwiki/inc/Search/
H A DIndexer.php100 static fn($v) => $v !== '' && (!$existsFilter || page_exists($v, '', false))
320 $fn = $conf['indexdir'] . '/metadata.idx';
321 if (!file_exists($fn)) return [];
322 $keys = file($fn, FILE_IGNORE_NEW_LINES);
336 $fn = $conf['indexdir'] . '/metadata.idx';
337 $existing = file_exists($fn) ? file($fn, FILE_IGNORE_NEW_LINES) : [];
349 io_saveFile($fn, implode("\n", $existing) . "\n");
H A DLegacyIndexer.php223 implode(':', array_filter($keyline, fn($v) => $v !== ''))
286 …$filtered = array_filter($freqs, fn($page) => page_exists($page, '', false), ARRAY_FILTER_USE_KEY);
/dokuwiki/_test/tests/Parsing/Lexer/
H A DLexerTest.php188 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught'));
210 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught'));
232 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught'));
254 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught'));
276 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught'));
299 $caught = array_values(array_filter($handler->recorded, fn($c) => $c[0] === 'caught'));
/dokuwiki/inc/Ui/
H A DSearch.php219 'and' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['and']),
220 'not' => array_map(static fn($term) => trim($term, '*'), $this->parsedQuery['not']),
224 … 'and' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['and']),
225 … 'not' => array_map(static fn($term) => trim($term, '*') . '*', $this->parsedQuery['not']),
229 … 'and' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['and']),
230 … 'not' => array_map(static fn($term) => '*' . trim($term, '*'), $this->parsedQuery['not']),
234 … 'and' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['and']),
235 … 'not' => array_map(static fn($term) => '*' . trim($term, '*') . '*', $this->parsedQuery['not']),
H A DMediaRevisions.php120 static fn($n) => media_managerURL(['first' => $n], '&', false, true)
H A DPageRevisions.php116 … echo $this->navigation($first, $hasNext, static fn($n) => ['do' => 'revisions', 'first' => $n]);
/dokuwiki/inc/Menu/
H A DAbstractMenu.php49 fn($item) => $item instanceof AbstractItem && $item->visibleInContext($this->context)
/dokuwiki/inc/Parsing/ParserMode/
H A DAbstractFormatting.php30 static fn($mode) => $mode !== $self
/dokuwiki/inc/TreeBuilder/
H A DAbstractBuilder.php165 return array_filter($this->getAll(), fn($page) => !$page->getChildren());
176 return array_filter($this->getAll(), fn($page) => (bool) $page->getChildren());
/dokuwiki/inc/Utf8/
H A DConversion.php86 static fn($c) => Unicode::toUtf8([ord($c[0])]),
/dokuwiki/inc/Form/
H A DDropdownElement.php192 static fn($html, OptGroup $optGroup) => $html . $optGroup->toHTML(),

12