Lines Matching refs:base

18  * @param   string    $base Where to start the search
27 function search(&$data,$base,$func,$opts,$dir='',$lvl=1,$sort='natural'){ argument
33 if($base == '' || $base == '/') {
38 $dh = @opendir($base.'/'.$dir);
42 if(is_dir($base.'/'.$dir.'/'.$file)){
47 $filepaths[] = $base.'/'.$dir.'/'.$file;
61 if (call_user_func_array($func, array(&$data,$base,$dir,'d',$lvl,$opts))){
62 search($data,$base,$func,$opts,$dir,$lvl+1,$sort);
67 call_user_func_array($func, array(&$data,$base,$file,'f',$lvl,$opts));
100 * @param string $base
108 function search_qsearch(&$data,$base,$file,$type,$lvl,$opts){ argument
114 return search_universal($data,$base,$file,$type,$lvl,$opts);
125 * @param string $base
133 function search_index(&$data,$base,$file,$type,$lvl,$opts){ argument
145 return search_universal($data, $base, $file, $type, $lvl, $opts);
154 * @param string $base
162 function search_namespaces(&$data,$base,$file,$type,$lvl,$opts){ argument
166 return search_universal($data,$base,$file,$type,$lvl,$opts);
180 * @param string $base
188 function search_media(&$data,$base,$file,$type,$lvl,$opts){ argument
218 $info['size'] = filesize($base.'/'.$file);
219 $info['mtime'] = filemtime($base.'/'.$file);
220 $info['writable'] = is_writable($base.'/'.$file);
223 $info['meta'] = new JpegMeta($base.'/'.$file);
247 * @param string $base
255 function search_mediafiles(&$data,$base,$file,$type,$lvl,$opts){ argument
294 * @param string $base
302 function search_list(&$data,$base,$file,$type,$lvl,$opts){ argument
325 * @param string $base
333 function search_pagename(&$data,$base,$file,$type,$lvl,$opts){ argument
363 * @param string $base
371 function search_allpages(&$data,$base,$file,$type,$lvl,$opts){ argument
394 $item['rev'] = filemtime($base.'/'.$file);
396 $item['size'] = filesize($base.'/'.$file);
477 * @param string $base - Base usually $conf['datadir']
487 function search_universal(&$data,$base,$file,$type,$lvl,$opts){ argument
556 $item['size'] = filesize($base.'/'.$file);
557 $item['mtime'] = filemtime($base.'/'.$file);
559 $item['writable'] = is_writable($base.'/'.$file);
560 $item['executable'] = is_executable($base.'/'.$file);
564 if(!empty($opts['hash'])) $item['hash'] = md5(io_readFile($base.'/'.$file,false));