method getFullBits documentation in bbn\User\Preferences

Returns the hierarchical bits list of a preference

function(string $id_user_option, string $id_parent = NULL, bool $with_config = true) { if ($this->isAuthorized($id_user_option)) { $c = $this->class_cfg['arch']['user_options_bits']; $t = $this; return array_map( function ($b) use ($t, $c, $id_user_option, $with_config) { if (!empty($with_config)) { $b = $t->explodeBitCfg($b); } $b['items'] = $t->getFullBits($id_user_option, $b[$c['id']], $with_config); return $b; }, $this->db->rselectAll( [ 'table' => $this->class_cfg['tables']['user_options_bits'], 'fields' => [], 'where' => [ 'conditions' => [[ 'field' => $c['id_user_option'], 'value' => $id_user_option ], [ 'field' => $c['id_parent'], empty($id_parent) ? 'operator' : 'value' => $id_parent ?: 'isnull' ]] ], 'order' => [$c['num'] => 'ASC'] ] ) ); } return []; }

Returns the hierarchical bits list of a preference 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.