method userHasOption documentation in bbn\User\Manager

function(string $id_user, string $id_option, bool $with_group = true) { if ($with_group && $user = $this->getUser($id_user)) { $id_group = $user[$this->class_cfg['arch']['users']['id_group']]; if ($this->groupHasOption($id_group, $id_option)) { return true; } } if ($pref = Preferences::getPreferences()) { if ($cfg = $pref->getClassCfg()) { return $this->db->count( $cfg['table'], [ $cfg['arch']['user_options']['id_option'] => $id_option, $cfg['arch']['user_options']['id_user'] => $id_user ] ) ? true : false; } } return false; }

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.