PHP Class Horde_Service_Weather_Parser_Base, horde

Base class for parsing TAF/METAR data. Parsing code adapted from PEAR's Services_Weather_Metar class. Original phpdoc attributes as follows:
Author: Alexander Wirtz ([email protected])
Author: Michael J Rubinsky ([email protected])
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_cloudTypes array CloudType map
$_clouds array Cloud cover code map.
$_conditions array Conditions map
$_sensors array Sensors map
$_unitMap array Built using self::_units
$_units The type of units to convert to.

Méthodes publiques

Méthode Description
__construct ( array $params = [] ) constructor
parse ( string $data ) : array Parse the raw data.

Méthodes protégées

Méthode Description
_parse ( array $data )

Method Details

__construct() public méthode

constructor
public __construct ( array $params = [] )
$params array Parameter array: - units: (integer) The Horde_Service_Weather::UNITS_* constant.

_parse() abstract protected méthode

abstract protected _parse ( array $data )
$data array

parse() public méthode

Parse the raw data.
public parse ( string $data ) : array
$data string The raw TAF or METAR data.
Résultat array The parsed data array.

Property Details

$_cloudTypes protected_oe property

CloudType map
protected array $_cloudTypes
Résultat array

$_clouds protected_oe property

Cloud cover code map.
protected array $_clouds
Résultat array

$_conditions protected_oe property

Conditions map
protected array $_conditions
Résultat array

$_sensors protected_oe property

Sensors map
protected array $_sensors
Résultat array

$_unitMap protected_oe property

Built using self::_units
protected array $_unitMap
Résultat array

$_units protected_oe property

The type of units to convert to.
protected $_units