Lines Matching refs:lvl
248 * @param int $lvl Current recursion depth
270 public function searchIndexmenuItems(&$data, $base, $file, $type, $lvl, $opts) argument
293 if ($opts['level'] > $lvl || $opts['level'] == -1) {
320 } elseif ($opts['max'] > 0 && !$isOpen && $lvl >= $opts['max']) {
343 $lvl = 1;
391 'level' => $lvl,
424 * @param int $lvl Current recursion depth
445 public function searchIndexmenuItemsNew(&$data, $base, $file, $type, $lvl, $opts) argument
469 if ($opts['level'] > $lvl || $opts['level'] == -1) {
512 if ($lvl == $opts['max'] || $isFolderAdjacentToSubNss) {
518 …} elseif ($lvl > $opts['max']) { // deeper lvls only used temporary for checking existance children
545 $lvl = 1;
594 'level' => $lvl,
621 * @param int $lvl Recursion Level
626 public function customSearch(&$data, $base, $func, $opts, $dir = '', $lvl = 1) argument
650 call_user_func_array($func, [&$files_tmp, $base, $file, 'f', $lvl, $opts]);
658 call_user_func_array($func, [&$dirs_tmp, $base, $dir, 'd', $lvl, $opts]);
668 $this->customSearch($data, $base, $func, $opts, $dirOrFile['file'], $lvl + 1);
676 if (call_user_func_array($func, [&$data, $base, $dir, 'd', $lvl, $opts])) {
677 $this->customSearch($data, $base, $func, $opts, $dir, $lvl + 1);