Lines Matching refs:opts

24 	function search_callback($func,&$data,$base,$file,$type,$lvl,$opts) {  argument
25 return call_user_func_array($func, array(&$data,$base,$file,$type,$lvl,$opts));
121 $nocookie=$context||in_array('nocookie',$opts);
123 $noscroll=in_array('noscroll',$opts);
125 $navbar=in_array('navbar',$opts);
127 $nons = in_array('nons',$opts);
129 $nopg = in_array('nopg',$opts);
131 $notoc = in_array('notoc',$opts);
133 if (in_array('tsort',$opts)) {
135 } elseif (in_array('dsort',$opts)) {
139 $nsort=in_array('nsort',$opts);
141 if ($msort = in_array('msort',$opts)) {
145 $rsort=in_array('rsort',$opts);
147 if (!$js= in_array('js',$opts)) {
262 $opts = $myns[6];
268 $custsrch=$this->_search($data,$conf['datadir'],array($this,'_search_index'),$opts,$fsdir);
270 search($data,$conf['datadir'],array($this,'_search_index'),$opts,$fsdir);
284 if ($opts['js']) {
286 $output_tmp=$this->_jstree($data,$ns,$js_opts,$js_name,$opts['max']);
486 function _search_index(&$data,$base,$file,$type,$lvl,$opts){ argument
491 $skip_index=$opts['skip_index'];
492 $skip_file=$opts['skip_file'];
493 $headpage=$opts['headpage'];
503 if ($opts['level'] > $lvl || $opts['level'] == -1) $isopen=true;
505 if (!empty($opts['nss'])){
506 $nss=$opts['nss'];
521 if ($opts['nons']) {
523 } elseif ($opts['max'] >0 && !$isopen && $lvl >= $opts['max']) {
529 } elseif ($opts['js']) {
536 if (!$hns && $opts['nopg']) $hns=$id.":".$conf['start'];
539 if ($opts['nopg']) return false;
542 if ($opts['nons']) $lvl=1;
552 if (!$opts['nons'] &&
554 $opts['hide_headpage']) {
643 function _search(&$data,$base,$func,$opts,$dir='',$lvl=1){ argument
665 search_callback($func,$dirs_tmp,$base,$dir,'d',$lvl,$opts);
670 if ($dir['return']) $this->_search($data,$base,$func,$opts,$dir['file'],$lvl+1);
675 …if (search_callback($func,$data,$base,$dir,'d',$lvl,$opts)) $this->_search($data,$base,$func,$opts
680 search_callback($func,$files_tmp,$base,$file,'f',$lvl,$opts);