Horde_Service_Weather_Current_Metar
extends Horde_Service_Weather_Current_Base
in package
Horde_Service_Weather_Current_Metar
Responsible for parsing encoded METAR text and presenting human readable weather data.
Parsing code adapted from PEAR's Services_Weather_Metar class. Original phpdoc attributes as follows:
Tags
Table of Contents
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : Horde_Date
- $ : string
- $ : Horde_Date
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $ : string
- $_map : mixed
- $_properties : array<string|int, mixed>
- Local properties cache. Property names differ depending on the backend.
- $_weather : Horde_Service_Weather_Base
- Parent weather object.
- __construct() : Horde_Service_Weather_Current_Base
- Const'r
- __get() : mixed
- getRawData() : array<string|int, mixed>
- Compatibility layer for old PEAR/Services_Weather data.
Properties
$
public
string
$
heat_index Heat index.
$
public
string
$
wind_chill The wind chill.
$
public
string
$
icon_url Url to icon.
$
public
string
$
wind Full wind description string.
$
public
string
$
humidity The humidity.
$
public
string
$
conditions The condition string.
$
public
string
$
condition The condition string (for BC).
$
public
string
$
icon Icon name to represent conditions.
$
public
string
$
temp The temperature.
$
public
Horde_Date
$
time_utc Forecast time in UTC. @since 1.2.0
$
public
string
$
visibility The visisbility, in requested units.
$
public
Horde_Date
$
time Forecast time in local (to station) time. NOTE the timezone property of the date object is NOT guarenteed to be correct, and might be presented as the servers' default timezone. This is because not all APIs return the timezone identifier.
$
public
string
$
wind_gust The wind gust speed.
$
public
string
$
wind_speed The wind speed, in requested units.
$
public
string
$
wind_degrees The wind direction, in degrees.
$
public
string
$
wind_direction The cardinal wind direction.
$
public
string
$
dewpoint The dewpoint.
$
public
string
$
logo_url URL to a provider logo.
$
public
string
$
pressure_trend The pressure trend.
$
public
string
$
pressure The barometric pressure.
$
public
string
$
logo_url Url to logo.
$_map
protected
mixed
$_map
= array('dewpoint' => 'dewPoint', 'wind_direction' => 'windDirection', 'wind_degrees' => 'windDegrees', 'wind_speed' => 'wind', 'wind_gust' => 'windGust', 'wind_chill' => 'feltTemperature', 'temp' => 'temperature')
$_properties
Local properties cache. Property names differ depending on the backend.
protected
array<string|int, mixed>
$_properties
= array()
Concrete classes map them to the available properties.
$_weather
Parent weather object.
protected
Horde_Service_Weather_Base
$_weather
Methods
__construct()
Const'r
public
__construct(mixed $properties, Horde_Service_Weather_Base $weather) : Horde_Service_Weather_Current_Base
Parameters
- $properties : mixed
-
Current properties, in driver keys.
- $weather : Horde_Service_Weather_Base
Return values
Horde_Service_Weather_Current_Base —__get()
public
__get(mixed $property) : mixed
Parameters
- $property : mixed
Return values
mixed —getRawData()
Compatibility layer for old PEAR/Services_Weather data.
public
getRawData() : array<string|int, mixed>
Return values
array<string|int, mixed> —The raw parsed data array - keyed by descriptors that are compatible with PEAR/Services_Weather. The following keys may be returned:
- station:
- dataRaw:
- update:
- updateRaw:
- wind:
- windDegrees:
- windDirection:
- windGust:
- windVariability:
- visibility:
- visQualifier:
- clouds:
- amount
- height
- type
- temperature
- dewpoint
- humidity
- felttemperature
- pressure
- trend
- type
- from
- to
- at
- remark
- autostation
- seapressure
- presschg
- snowdepth
- snowequiv
- cloudtypes
- sunduration
- 1hrtemp
- 1hrdew
- 6hmaxtemp
- 6hmintemp
- 24hmaxtemp
- 24hmintemp
- 3hpresstrend
- nospeci
- sensors
- maintain
- precipitation
- amount
- hours