Lines Matching refs:index
115 $index = new SI_Index($fpaths, $fpids);
116 return $index;
148 private $index; variable in SI_Indexer
150 function __construct(SI_Index $index = null) { argument
151 if ($index === null) {
152 $this->index = SI_Utils::get_index();
154 $this->index = $index;
162 $this->_remove_invalid_entries($this->index, $all_pages);
179 $page_index = $this->index->filtered(null, null, $pid);
191 $this->index->add($matched_path, $pid);
197 $this->index->remove($key);
202 $this->index->sort();
209 SI_Utils::save_index($this->index);
218 * @param SI_Index $index The SI entry index
221 private function _remove_invalid_entries(SI_Index $index, $all_pages) { argument
223 foreach ($index->pids as $key => $pid) {
233 $index->remove($key);
271 $index = new SI_Index($paths, $pids);
273 self::save_index($index);
277 $index = unserialize($data);
279 $index = new SI_Index();
282 return $index;
299 static function save_index(SI_Index $index) { argument
300 file_put_contents(SUBJ_IDX_FILE, serialize($index));