Lines Matching refs:type

85  * string $type  - Type either 'd' for directory or 'f' for file
94 * one deeper nested) also make sure to check the file type (for example
106 * @param string $type
112 function search_qsearch(&$data, $base, $file, $type, $lvl, $opts)
119 return search_universal($data, $base, $file, $type, $lvl, $opts);
132 * @param string $type
138 function search_index(&$data, $base, $file, $type, $lvl, $opts)
151 return search_universal($data, $base, $file, $type, $lvl, $opts);
162 * @param string $type
168 function search_namespaces(&$data, $base, $file, $type, $lvl, $opts)
171 return search_universal($data, $base, $file, $type, $lvl, $opts);
187 * @param string $type
193 function search_media(&$data, $base, $file, $type, $lvl, $opts)
197 if ($type == 'd') {
255 * @param string $type
261 function search_mediafiles(&$data, $base, $file, $type, $lvl, $opts)
265 if ($type == 'd') {
303 * @param string $type
309 function search_list(&$data, $base, $file, $type, $lvl, $opts)
312 if ($type == 'd') return false;
335 * @param string $type
341 function search_pagename(&$data, $base, $file, $type, $lvl, $opts)
344 if ($type == 'd') return true;
374 * @param string $type
380 function search_allpages(&$data, $base, $file, $type, $lvl, $opts)
385 ($type == 'd' && count($parts) >= $opts['depth'])
386 || ($type != 'd' && count($parts) > $opts['depth'])
393 if ($type == 'd') {
493 * @param string $type - Type either 'd' for directory or 'f' for file
501 function search_universal(&$data, $base, $file, $type, $lvl, $opts)
507 $item['id'] = pathID($file, ($type == 'd' || !empty($opts['keeptxt'])));
516 if ($type == 'd') {
539 if ($type == 'd') {
549 if ($type == 'd') {
565 $item['type'] = $type;
578 if ($type == 'f') {