Lines Matching defs:id
78 foreach ($Indexer->getPages() as $id) {
79 $pages_all[$id] = 0; // base: 0 hit
102 foreach (array_keys($pages) as $id) {
104 'id' => $id,
106 'text' => rawWiki($id)
117 $pages_matched[$id] = 0; // phrase: always 0 hit
126 foreach (array_keys($pages_all) as $id) {
127 if (strpos($id, $ns) === 0) {
128 $pages_matched[$id] = 0; // namespace: always 0 hit
158 foreach (array_keys($docs) as $id) {
159 if (isHiddenPage($id) || auth_quickaclcheck($id) < AUTH_READ || !page_exists($id, '', false)) {
160 unset($docs[$id]);
182 * @param string $id The id for which links shall be returned
186 function ft_backlinks($id, $ignore_perms = false)
188 $result = idx_get_indexer()->lookupKey('relation_references', $id);
216 * @param string $id The media id to look for
220 function ft_mediause($id, $ignore_perms = false)
222 $result = idx_get_indexer()->lookupKey('relation_media', $id);
255 * @param string $id page id
263 function ft_pageLookup($id, $in_ns = false, $in_title = false, $after = null, $before = null)
266 'id' => $id,
285 $id = $data['id'];
287 $parsedQuery = ft_queryParser($Indexer, $id);
290 $id = implode(' ', $parsedQuery['highlight']);
294 $id = implode(' ', $parsedQuery['highlight']);
299 $cleaned = cleanID($id);
305 if ($id !== '' && $cleaned !== '') {
313 foreach ($Indexer->lookupKey('title', $id, '_ft_pageLookupTitleCompare') as $p_id) {
367 foreach (array_keys($results) as $id) {
368 $mTime = filemtime(wikiFN($id));
370 unset($results[$id]);
374 unset($results[$id]);
447 * @param string $id page id
451 function ft_snippet($id, $highlight)
453 $text = rawWiki($id);
457 'id' => $id,
653 foreach (array_keys($args[$i]) as $id) {
654 $result[$id] += $args[$i][$id];
661 * Computes the difference of documents using page id for comparison
678 foreach (array_keys($result) as $id) {
680 if (isset($args[$i][$id])) unset($result[$id]);