src/bbn/user/preferences.php
public function get_id_by_bit(string $id): ?string
  {
    if ( \bbn\str::is_uid($id) && ($p = $this->get_by_bit($id)) ){
      return $p[$this->fields['id']];
    }
    return null;
  }
public function get_id_by_bit(string $id): ?string
  {
    if ( \bbn\str::is_uid($id) && ($p = $this->get_by_bit($id)) ){
      return $p[$this->fields['id']];
    }
    return null;
  }
public function get_id_by_bit ( string $ id ) : ? string { if ( \ bbn \ str :: is_uid ( $ id ) && ( $ p = $ this -> get_by_bit ( $ id ) ) ) { return $ p [ $ this -> fields [ 'id' ] ] ; } return null ; }
Gets the preference's ID from a bit ID

@param string $id The bit's ID
@return string
Gets the preference s ID from a bit ID