Overview

Packages

  • Service
    • Weather

Classes

  • Horde_Service_Weather
  • Horde_Service_Weather_Base
  • Horde_Service_Weather_Current_Base
  • Horde_Service_Weather_Current_Google
  • Horde_Service_Weather_Current_WeatherUnderground
  • Horde_Service_Weather_Current_Wwo
  • Horde_Service_Weather_Exception
  • Horde_Service_Weather_Exception_InvalidProperty
  • Horde_Service_Weather_Forecast_Base
  • Horde_Service_Weather_Forecast_Google
  • Horde_Service_Weather_Forecast_WeatherUnderground
  • Horde_Service_Weather_Forecast_Wwo
  • Horde_Service_Weather_Google
  • Horde_Service_Weather_Period_Base
  • Horde_Service_Weather_Period_Google
  • Horde_Service_Weather_Period_WeatherUnderground
  • Horde_Service_Weather_Period_Wwo
  • Horde_Service_Weather_Station
  • Horde_Service_Weather_Translation
  • Horde_Service_Weather_WeatherUnderground
  • Horde_Service_Weather_Wwo
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Service_Weather_Base

Horde_Service_Weather_Base class

Direct known subclasses

Horde_Service_Weather_Google, Horde_Service_Weather_WeatherUnderground, Horde_Service_Weather_Wwo
Abstract
Package: Service\Weather
Category: Horde
Author: Michael J Rubinsky mrubinsk@horde.org
Located at Horde/Service/Weather/Base.php
Methods summary
public
# __construct( array $params = array() )

Constructor.

Constructor.

Parameters

$params
<p>Parameters: - 'cache': optional Horde_Cache object. - 'cache_lifetime': Lifetime of cached results.</p>
abstract public Horde_Service_Weather_Current_Base
# getCurrentConditions( string $location )

Returns the current observations.

Returns the current observations.

Parameters

$location
The location string.

Returns

Horde_Service_Weather_Current_Base
abstract public Horde_Service_Weather_Forecast_Base
# getForecast( string $location, integer $length = Horde_Service_Weather::FORECAST_3DAY, integer $type = Horde_Service_Weather::FORECAST_TYPE_STANDARD )

Returns the forecast for the current location.

Returns the forecast for the current location.

Parameters

$location
The location code.
$length
The forecast length.
$type
The type of forecast to return.

Returns

Horde_Service_Weather_Forecast_Base
abstract public
# searchLocations( string $location, integer $type = Horde_Service_Weather::SEARCHTYPE_STANDARD )

Searches locations.

Searches locations.

Parameters

$location
The location string to search.
$type
The type of search to perform.
public array
# autocompleteLocation( string $search )

Searches for locations that begin with the text in $search.

Searches for locations that begin with the text in $search.

Parameters

$search
The text to search.

Returns

array

An array of stdClass objects with 'name' and 'code' properties

public
# getUnits( mixed $type = null )

Returns a mapping of units for each UNIT type.

Returns a mapping of units for each UNIT type.

public Horde_Service_Weather_Station
# getStation( )

Returns the station information.

Returns the station information.

Returns

Horde_Service_Weather_Station
Properties summary
public integer $units

Units to display results in.

Units to display results in.

# Horde_Service_Weather::UNITS_STANDARD
public string $logo

URL to a logo for this provider

URL to a logo for this provider

#
public string $link

URL to the provider's site

URL to the provider's site

#
public string $title

Title for the provider

Title for the provider

#
API documentation generated by ApiGen