method options documentation in bbn\User\Permissions

Returns the result of Option::Options filtered through current user's permissions.

function(string $id_option = NULL, string $type = 'access') { if (($id_option = $this->_get_id_option($id_option, $type)) && ($os = $this->opt->options($id_option)) ) { $res = []; foreach ($os as $id => $o){ if ($this->pref->has($id)) { $res[$id] = $o; } } return $res; } return null; }

Returns the result of Option::Options filtered through current user's permissions. 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.