method fMerge documentation in bbn\User\Permissions

function(&$target, $src, $path) { $parts = explode('/', $path); foreach ($parts as $p){ if (!empty($p)) { foreach ($target as $i => $a){ if (($a['code'] === $p.'/') && !empty($target[$i]['items'])) { self::fMerge($target[$i]['items'], $src, substr($path, \strlen($p) + 1)); return; } } array_push( $target, [ 'code' => $p.'/', 'text' => $p, 'items' => $src ] ); } } }

BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.