public function get_bit(string $id, bool $with_config = true): array
  {
    if (
      \bbn\str::is_uid($id) &&
      ($bit = $this->db->rselect($this->class_cfg['tables']['user_options_bits'], [], [
        $this->class_cfg['arch']['user_options_bits']['id'] => $id
      ]))
    ){
      if ( !empty($with_config) ){
        return $this->explode_bit_cfg($bit);
      }
      return $bit;
    }
    return [];
  }
public function get_bit(string $id, bool $with_config = true): array
  {
    if (
      \bbn\str::is_uid($id) &&
      ($bit = $this->db->rselect($this->class_cfg['tables']['user_options_bits'], [], [
        $this->class_cfg['arch']['user_options_bits']['id'] => $id
      ]))
    ){
      if ( !empty($with_config) ){
        return $this->explode_bit_cfg($bit);
      }
      return $bit;
    }
    return [];
  }
public function get_bit ( string $ id , bool $ with_config = true ) : array { if ( \ bbn \ str :: is_uid ( $ id ) && ( $ bit = $ this -> db -> rselect ( $ this -> class_cfg [ 'tables' ] [ 'user_options_bits' ] , [ ] , [ $ this -> class_cfg [ 'arch' ] [ 'user_options_bits' ] [ 'id' ] => $ id ] ) ) ) { if ( ! empty ( $ with_config ) ) { return $ this -> explode_bit_cfg ( $ bit ) ; } return $ bit ; } return [ ] ; }
Returns a single preference's bit

@param string $id The bit's ID
@return array
Returns a single preference s bit