method has documentation in bbn\User\Preferences
Returns true if the current user can access a preference, false otherwise.
Example
$pref->has('9439491824ef11eca47652540000cfbe');
// (bool) = true;
function(string $id_option = NULL, bool $force = false)
{
if (!$force && $this->user->isDev()) {
return true;
}
return (bool)$this->retrieveIds($id_option);
}
Returns true if the current user can access a preference, false otherwise. 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