method fullOptions documentation in bbn\User\Permissions

Returns the result of Option::fullOptions 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->fullOptions($id_option)) ) { $res = []; foreach ($os as $o){ /* if ( ($ids = $this->pref->retrieveIds($o['id'])) && ($cfg = $this->pref->get($ids[0])) ){ $res[] = X::mergeArrays($o, $cfg); } */ if ($this->has($o['id'], $type)) { $res[] = X::mergeArrays($o, $this->pref->getByOption($o['id']) ?: []); } } return $res; } return null; }

Returns the result of Option::fullOptions 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.