method setPreferences documentation in bbn\Ide\Directories

Sets user's preferences for a file.

function($id_user, $id_file, $md5, array $cfg = NULL, bbn\User\Preferences $pref = NULL) { $change['md5'] = $md5; if ( !empty($cfg['selections']) ){ $change['selections'] = $cfg['selections']; } if ( isset($cfg, $cfg['marks']) ){ $change['marks'] = $cfg['marks']; } if ( !empty($change) ){ $id_option = $this->optionId($id_file); if ( $pref->set($id_option, $change, $id_user) ){ return true; } } } return false; }

Sets user's preferences for a file. 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.