method getByBit documentation in bbn\User\Preferences

Gets a preference row from a bit ID

function(string $id) { $t =& $this; if (\bbn\Str::isUid($id)) { return $this->db->rselect( [ 'table' => $this->class_cfg['table'], 'fields' => array_map( function ($v) use ($t) { return $t->db->cfn($v, $t->class_cfg['table']); }, array_values($this->class_cfg['arch']['user_options']) ), 'join' => [[ 'table' => $this->class_cfg['tables']['user_options_bits'], 'on' => [ 'conditions' => [[ 'field' => $this->class_cfg['arch']['user_options_bits']['id_user_option'], 'exp' => $this->class_cfg['table'] . '.' . $this->fields['id'] ]] ] ]], 'where' => [ $this->class_cfg['tables']['user_options_bits'] . '.' . $this->class_cfg['arch']['user_options_bits']['id'] => $id ] ] ); } return null; }

Gets a preference row from a bit 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.