Property | Type | Description | |
---|---|---|---|
$iconMap | array | Driver spcific icon map for condition icons. Made public so icons can be overridden in client code if desired. | |
$link | string | URL to the provider's site | |
$logo | string | URL to a logo for this provider | |
$title | string | Title for the provider | |
$units | integer | Units to display results in. |
Property | Type | Description | |
---|---|---|---|
$_alerts | |||
$_cache | Horde_Cache | Cache object | |
$_cache_lifetime | integer | Lifetime for cached data. | |
$_current | Local cache of current conditions | ||
$_forecast | Horde_Service_Weather_Forecast_Base | Local cache of forecast | |
$_http | Horde_Http_Client | The http client | |
$_lastLength | integer | Last requested forecast length. | |
$_lastLocation | string | Last location requested. | |
$_params | array | Parameters | |
$_radar | |||
$_station | Horde_Service_Weather_Station | Local cache of station data |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
autocompleteLocation ( string $search ) : array | Searches for locations that begin with the text in $search. | |
getAlerts ( $location ) : array | Return array of weather alerts, if available. | |
getCurrentConditions ( string $location ) : Horde_Service_Weather_Current_Base | Returns the current observations. | |
getForecast ( string $location, integer $length = Horde_Service_Weather::FORECAST_3DAY, integer $type = Horde_Service_Weather::FORECAST_TYPE_STANDARD ) : Horde_Service_Weather_Forecast_Base | Returns the forecast for the current location. | |
getRadarImageUrl ( string $location ) : string | boolean | Return the URL to a (possibly animated) radar image. | |
getStation ( ) : Horde_Service_Weather_Station | Returns the station information associated with the last request. | |
getSupportedForecastLengths ( ) : array | Get array of supported forecast lengths. | |
getTileServerUrl ( string $location, string $type = null ) : string | boolean | Return the URL a OpenLayers suitable tile server. | |
getUnits ( integer $type = null ) : array | Returns a mapping of units for each UNIT type. | |
searchLocations ( string $location, integer $type = Horde_Service_Weather::SEARCHTYPE_STANDARD ) : Horde_Service_Weather_Station | Searches locations. |
Method | Description | |
---|---|---|
_ipIsUnique ( string $ip ) : boolean | Check if an IP address is a globally unique address and not in RFC1918 or RFC3330 address space. |
public __construct ( array $params = [] ) | ||
$params | array | Parameters: - cache: (Horde_Cache) Optional Horde_Cache object. - cache_lifetime: (integer) Lifetime of cached data, if caching. - http_client: (Horde_Http_Client) Required http client object. |
protected _ipIsUnique ( string $ip ) : boolean | ||
$ip | string | The IPv4 IP address to check. |
return | boolean | True if the IP address is globally unique, otherwise false. |
public autocompleteLocation ( string $search ) : array | ||
$search | string | The text to search. |
return | array | An array of stdClass objects with 'name' and 'code' properties. |
abstract public getCurrentConditions ( string $location ) : Horde_Service_Weather_Current_Base | ||
$location | string | The location string. |
return | Horde_Service_Weather_Current_Base |
abstract public getForecast ( string $location, integer $length = Horde_Service_Weather::FORECAST_3DAY, integer $type = Horde_Service_Weather::FORECAST_TYPE_STANDARD ) : Horde_Service_Weather_Forecast_Base | ||
$location | string | The location code. |
$length | integer | The forecast length, a Horde_Service_Weather::FORECAST_* constant. |
$type | integer | The type of forecast to return, a Horde_Service_Weather::FORECAST_TYPE_* constant |
return | Horde_Service_Weather_Forecast_Base |
public getStation ( ) : Horde_Service_Weather_Station | ||
return | Horde_Service_Weather_Station |
abstract public getSupportedForecastLengths ( ) : array | ||
return | array | The array of supported lengths. |
abstract public searchLocations ( string $location, integer $type = Horde_Service_Weather::SEARCHTYPE_STANDARD ) : Horde_Service_Weather_Station | ||
$location | string | The location string to search. |
$type | integer | The type of search to perform, a Horde_Service_Weather::SEARCHTYPE_* constant. |
return | Horde_Service_Weather_Station | The search location suitable to use directly in a weather request. |
protected int $_cache_lifetime | ||
return | integer |
protected Horde_Service_Weather_Forecast_Base $_forecast | ||
return | Horde_Service_Weather_Forecast_Base |
protected Horde_Http_Client $_http | ||
return | Horde_Http_Client |
protected int $_lastLength | ||
return | integer |
protected string $_lastLocation | ||
return | string |
protected Horde_Service_Weather_Station $_station | ||
return | Horde_Service_Weather_Station |
public array $iconMap | ||
return | array |