method deleteUserOption documentation in bbn\User\Preferences

Deletes all the given or current user's preferences for the given option

function(string $id_option, string $id_user = NULL) { if ($id_option = $this->_getIdOption($id_option)) { return $this->db->delete( $this->class_cfg['table'], [ $this->fields['id_option'] => $id_option, $this->fields['id_user'] => $id_user ?: $this->id_user ] ); } return null; }

Deletes all the given or current user's preferences for the given option 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.