IP2Location.php
public function getFields($asNames = false) {
    $result = array_keys(array_filter(self::$columns, function ($field) {
              return 0 !== $field[$this->type];
            }));
    if ($asNames) {
      $return = [];
      foreach ($result as $field) {
        $return[] = self::$names[$field];
      }
      return $return;
    } else {
      return $result;
    }
  }
public function getFields($asNames = false) {
    $result = array_keys(array_filter(self::$columns, function ($field) {
              return 0 !== $field[$this->type];
            }));
    if ($asNames) {
      $return = [];
      foreach ($result as $field) {
        $return[] = self::$names[$field];
      }
      return $return;
    } else {
      return $result;
    }
  }
public function getFields ( $ asNames = false ) { $ result = array_keys ( array_filter ( self :: $ columns , function ( $ field ) { return 0 !== $ field [ $ this -> type ] ; } ) ) ; if ( $ asNames ) { $ return = [ ] ; foreach ( $ result as $ field ) { $ return [ ] = self :: $ names [ $ field ] ; } return $ return ; } else { return $ result ; } }
Return this database's available fields

@access public
@param boolean $asNames  Whether to return the mapped names intead of numbered constants
@return array
Return this database s available fields