Lines Matching defs:id

157  * Determine basic information for a request of $id
159 * @param string $id pageid
161 * @return array with info for a request of $id
167 function basicinfo($id, $htmlClient = true)
179 $info['perm'] = auth_quickaclcheck($id);
194 $info['perm'] = auth_aclcheck($id, '', null);
198 $info['namespace'] = getNS($id);
228 $info['id'] = $ID;
323 $JSINFO['id'] = $ID;
463 * @param string $id pageid being filtered
469 function idfilter($id, $ue = true)
475 $id = (string)$id;
478 $id = strtr($id, ':', '/');
484 $id = strtr($id, ':', ';');
487 $id = rawurlencode($id);
488 $id = str_replace('%3A', ':', $id); //keep as colon
489 $id = str_replace('%3B', ';', $id); //keep as semicolon
490 $id = str_replace('%2F', '/', $id); //keep as slash
492 return $id;
500 * @param string $id page id, defaults to start page
508 function wl($id = '', $urlParameters = '', $absolute = false, $separator = '&')
520 if ($id === '') {
521 $id = $conf['start'];
523 $id = idfilter($id);
531 $xlink .= DOKU_SCRIPT . '/' . $id;
534 $xlink .= $id;
536 } elseif ($id !== '') {
537 $xlink .= DOKU_SCRIPT . '?id=' . $id;
552 * @param string $id page id, defaults to start page
560 function exportlink($id = '', $format = 'raw', $urlParameters = '', $abs = false, $sep = '&')
570 $id = idfilter($id);
578 $xlink .= DOKU_SCRIPT . '/' . $id . '?do=export_' . $format;
581 $xlink .= '_export/' . $format . '/' . $id;
584 $xlink .= DOKU_SCRIPT . '?do=export_' . $format . $sep . 'id=' . $id;
599 * @param string $id the media file id or URL
606 function ml($id = '', $more = '', $direct = true, $sep = '&', $abs = false)
609 $isexternalimage = media_isexternal($id);
611 $id = cleanID($id);
619 $more['tok'] = media_get_token($id, $w, $h);
625 if (isset($more['id']) && $direct) unset($more['id']);
636 $more .= 'tok=' . media_get_token($id, $resize['w'], $resize['h']);
653 $xlink .= $sep . 'media=' . rawurlencode($id);
657 $id = idfilter($id);
674 $xlink .= $script . '/' . $id;
678 $xlink .= $sep . 'media=' . $id;
680 $xlink .= $script . '?media=' . $id;
919 * @param string $id page id
924 function checklock($id)
930 $lock = wikiLockFN($id);
953 * @param string $id page id to lock
957 function lock($id)
967 $lock = wikiLockFN($id);
978 * @param string $id page id to unlock
983 function unlock($id)
988 $lock = wikiLockFN($id);
1042 * @param string $id page id
1048 function rawLocale($id, $ext = 'txt')
1050 return io_readFile(localeFN($id, $ext));
1056 * @param string $id page id
1062 function rawWiki($id, $rev = '')
1064 return io_readWikiPage(wikiFN($id, $rev), $id, $rev);
1071 * @param string $id the id of the page to be created
1076 function pageTemplate($id)
1080 if (is_array($id)) $id = $id[0];
1084 'id' => $id, // the id of the page to be created
1096 $path = dirname(wikiFN($id));
1134 * @var string $id the id of the page to be created
1147 $file = noNS($id);
1171 $id,
1172 getNS($id),
1173 curNS($id),
1174 PhpString::ucfirst(curNS($id)),
1175 PhpString::ucwords(curNS($id)),
1176 PhpString::strtoupper(curNS($id)),
1211 * @param string $id page id
1217 function rawWikiSlices($range, $id, $rev = '')
1219 $text = io_readWikiPage(wikiFN($id, $rev), $id, $rev);
1275 * wiki, triggered in @param string $id the page ID
1280 function detectExternalEdit($id)
1283 (new PageFile($id))->detectExternalEdit();
1290 * @param string $id page id
1298 function saveWikiText($id, $text, $summary, $minor = false)
1302 $data = (new PageFile($id))->saveWikiText($text, $summary, $minor);
1307 notify($id, 'admin', $rev, $summary, $minor, $new_rev);
1308 notify($id, 'subscribers', $rev, $summary, $minor, $new_rev);
1312 $pages = ft_backlinks($id, true);
1323 * @param string $id page id
1329 function saveOldRevision($id)
1332 return (new PageFile($id))->saveOldRevision();
1338 * @param string $id The changed page
1349 function notify($id, $who, $rev = '', $summary = '', $minor = false, $replace = [], $current_rev = false)
1363 $data = ['id' => $id, 'addresslist' => '', 'self' => false, 'replacements' => $replace];
1378 return $subscription->sendPageDiff($to, $tpl, $id, $rev, $summary, $current_rev);