Lines Matching refs:snip_data
49 $snip_data=unserialize(io_readFile($this->metafn,false));
50 if(!array_key_exists($INFO['id'],$snip_data['doc'])) return;
187 …$snip_data=unserialize(io_readFile($this->metafn,false)); …
189 if(!array_key_exists($page_id,$snip_data['doc'])) return;
190 $snippets = $snip_data['doc'][$page_id];
195 $snip_data['doc'][$page_id] = $intersect;
196 io_saveFile($this->metafn,serialize($snip_data));
221 $snip_data=unserialize(io_readFile($this->metafn,false));
222 if(!array_key_exists($snipid,$snip_data['snip'])) return;
231 $page_ids = $snip_data['snip'][$snipid];
290 … $snip_data=unserialize(io_readFile($this->metafn,false));
291 … if(!array_key_exists($curpage,$snip_data['doc'])) { // insert $curpage into doc array
292 …$snip_data['doc'][$curpage] = array($id); // and put current snippet into its list …
294 elseif(!in_array($id,$snip_data['doc'][$curpage])) {
296 $snip_data['doc'][$curpage][]= $id;
298 …if(!array_key_exists($id,$snip_data['snip'])) { // do the same as above but in reverse for snip…
299 $snip_data['snip'][$id] = array($curpage);
301 elseif(!in_array($curpage,$snip_data['snip'][$id])) {
302 $snip_data['snip'][$id][] = $curpage;
304 … io_saveFile($this->metafn,serialize($snip_data));