Lines Matching refs:pid

41         $pid = $this->getPIDNoLock($page);
42 if ($pid === false) {
60 $index[$wid] = $this->updateTuple($idx, $pid, $freq);
71 $pageword_idx = $this->getIndexKey('pageword', '', $pid);
86 $index[$wid] = $this->updateTuple($index[$wid], $pid, 0);
93 if (!$this->saveIndexKey('pageword', '', $pid, $pageword_idx)) {
182 $pid = $this->getPIDNoLock($page);
183 if ($pid === false) {
194 $this->saveIndexKey('title', '', $pid, $value);
207 $val_idx = $this->getIndexKey($metaname . '_p', '', $pid);
242 $metaidx[$id] = $this->updateTuple($metaidx[$id], $pid, 0);
246 $metaidx[$id] = $this->updateTuple($metaidx[$id], $pid, 1);
254 $this->saveIndexKey($metaname . '_p', '', $pid, $val_idx);
304 // reset the pid cache
405 $pid = $this->getPIDNoLock($page);
406 if ($pid === false) {
411 $pageword_idx = $this->getIndexKey('pageword', '', $pid);
425 $index[$wid] = $this->updateTuple($index[$wid], $pid, 0);
431 if (!$this->saveIndexKey('pageword', '', $pid, "")) {
435 $this->saveIndexKey('title', '', $pid, "");
438 $val_idx = explode(':', $this->getIndexKey($metaname . '_p', '', $pid));
442 $meta_idx[$id] = $this->updateTuple($meta_idx[$id], $pid, 0);
445 $this->saveIndexKey($metaname . '_p', '', $pid, '');
482 // clear the pid cache
558 $pid = $this->getPIDNoLock($page);
559 if ($pid === false) {
565 return $pid;
579 $pid = $this->addIndexKey('page', '', $page);
583 $this->pidCache[$page] = $pid;
584 return $pid;
590 * @param int $pid The PID to get the page id for
593 public function getPageFromPID($pid)
595 return $this->getIndexKey('page', '', $pid);
730 foreach ($value_ids as $pid => $val_list) {
731 $page = $page_idx[$pid];
1242 [/* pid */, $cnt] = explode('*', $tuple);