Lines Matching defs:id
208 return !in_array($item['id'], $excludes);
216 if (strpos($item['id'], $ns . ':') === 0) {
234 $list[] = $item['id'];
372 * Returns the parsed Wikitext in dw2pdf for the given id and revision
374 * @param string $id page id
379 protected function wikiToDW2PDF($id, $rev = '', $date_at = '')
381 $file = wikiFN($id, $rev);
387 //ensure $id is in global $ID (needed for parsing)
390 $ID = $id;
394 $ret = p_render('dw2pdf', p_get_instructions(io_readWikiPage($file, $id, $rev)), $info, $date_at);
396 $ret = p_cached_output($file, 'dw2pdf', $id);
701 * @param string $id pageid
704 protected function pageDependReplacements($raw, $id)
711 $url = hsc(wl($id, '', '&', true));
720 $replace['@ID@'] = $id;
721 $replace['@UPDATE@'] = dformat(filemtime(wikiFN($id, $REV)));
729 $replace['@PAGEURL@'] = wl($id, $params, true, "&");
735 $evdata = ['id' => $id, 'replace' => &$replace, 'content' => &$content];
898 return strcmp($b['id'], $a['id']);
902 * usort callback to sort by page id
911 $partsA = explode(':', $a['id']);
913 $partsB = explode(':', $b['id']);
950 return strnatcmp($a['id'], $b['id']);