method setByOption documentation in bbn\User\Preferences

Sets the preference row for the current user by the option's ID

Example

function(string $id_option, array $cfg) { if ($id = $this->retrieveUserIds($id_option, $this->id_user)) { return $this->set($id[0], $cfg); } return $this->_insert($id_option, $cfg); }

Sets the preference row for the current user by the option's ID 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.