method get documentation in bbn\User\Permissions
Returns an option combined with its sole/first permission
function(string $id_option = NULL, string $type = 'access', bool $force = false)
{
/*
if ( $all = $this->getAll($id_option, $type) ){
$r = [];
foreach ( $all as $a ){
if ( $this->has($a['id'], '', $force) ){
$r[] = $a;
}
}
return $r;
}
*/
if (($id_option = $this->_get_id_option($id_option, $type))
&& $this->has($id_option, $type, $force)
) {
return $this->pref->option($id_option);
}
return null;
}
Returns an option combined with its sole/first permission 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.
© 2011-2025
BBN Solutions