Lines Matching refs:opts

63         $opts = [
69 $this->makeNodes($data, -1, 0, $children, $hasActiveNode, $opts);
87 * @param array $opts <ul>
94 …function makeNodes(&$data, $indexLatestParsedItem, $previousLevel, &$nodes, &$hasActiveNode, $opts) argument
119 if ($opts['currentPage'] == $item['id']) {
147 'currentPage' => $opts['currentPage'],
149 'nopg' => $opts['nopg']
158 if ($opts['isParentLazy']) {
174 $item['hns'] === $opts['currentPage']
175 || $opts['nopg'] && getNS($opts['currentPage']) === $item['id']
202 * @param array $opts<ul>
220 public function search($ns, $opts): array argument
224 if (!empty($opts['tempNew'])) {
234 $this->customSearch($data, $dataDir, $callback, $opts, $fsDir);
236 search($data, $dataDir, $callback, $opts, $fsDir);
249 * @param array $opts Option array as given to search():<ul>
270 public function searchIndexmenuItems(&$data, $base, $file, $type, $lvl, $opts) argument
277 $skipns = $opts['skipnscombined'];
278 $skipfile = $opts['skipfilecombined'];
279 $headpage = $opts['headpage'];
293 if ($opts['level'] > $lvl || $opts['level'] == -1) {
297 if (!empty($opts['subnss'])) {
298 $subnss = $opts['subnss'];
318 if ($opts['nons']) {
320 } elseif ($opts['max'] > 0 && !$isOpen && $lvl >= $opts['max']) {
325 } elseif ($opts['js']) {
333 if ($opts['nopg'] && $hns === false) {
338 if ($opts['nopg']) return false;
342 if ($opts['nons']) {
356 if (!$opts['nons'] && !empty($headpage) && $opts['hide_headpage']) {
425 * @param array $opts Option array as given to search()<ul>
445 public function searchIndexmenuItemsNew(&$data, $base, $file, $type, $lvl, $opts) argument
452 $skipns = $opts['skipnscombined'];
453 $skipfile = $opts['skipfilecombined'];
454 $headpage = $opts['headpage'];
469 if ($opts['level'] > $lvl || $opts['level'] == -1) {
475 if (!empty($opts['subnss'])) {
476 $subnss = $opts['subnss'];
500 if ($opts['max'] > 0) {
508 if ($opts['nons']) {
510 } elseif ($opts['max'] > 0 && !$isOpen) { // note: for Fancytree >=1 is used
512 if ($lvl == $opts['max'] || $isFolderAdjacentToSubNss) {
518 …} elseif ($lvl > $opts['max']) { // deeper lvls only used temporary for checking existance children
534 if ($opts['nopg'] && $hns === false) {
540 if ($opts['nopg']) return false;
544 if ($opts['nons']) {
558 if (!$opts['nons'] && !empty($headpage) && $opts['hide_headpage']) {
619 * @param array $opts List of indexmenu options
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);