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])
Mostra file Open project: horde/horde

Protected Properties

Property 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.

Public Methods

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

Protected Methods

Method Description
_parse ( array $data )

Method Details

__construct() public method

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

_parse() abstract protected method

abstract protected _parse ( array $data )
$data array

parse() public method

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

Property Details

$_cloudTypes protected_oe property

CloudType map
protected array $_cloudTypes
return array

$_clouds protected_oe property

Cloud cover code map.
protected array $_clouds
return array

$_conditions protected_oe property

Conditions map
protected array $_conditions
return array

$_sensors protected_oe property

Sensors map
protected array $_sensors
return array

$_unitMap protected_oe property

Built using self::_units
protected array $_unitMap
return array

$_units protected_oe property

The type of units to convert to.
protected $_units