src/bbn/user.php
public function get_fields(string $table = ''): ?array
  {
    if ( !empty($this->class_cfg) ){
      if ( $table ){
        return $this->class_cfg['arch'][$table] ?? null;
      }
      return $this->class_cfg['arch'];
    }
    return null;
  }
public function get_fields(string $table = ''): ?array
  {
    if ( !empty($this->class_cfg) ){
      if ( $table ){
        return $this->class_cfg['arch'][$table] ?? null;
      }
      return $this->class_cfg['arch'];
    }
    return null;
  }
public function get_fields ( string $ table = '' ) : ? array { if ( ! empty ( $ this -> class_cfg ) ) { if ( $ table ) { return $ this -> class_cfg [ 'arch' ] [ $ table ] ?? null ; } return $ this -> class_cfg [ 'arch' ] ; } return null ; }
Returns the list of fields of the given table, and if empty the list of fields for each table.
@param string $table
@return array|null
Returns the list of fields of the given table and if empty the list of fields for each table .