Class WBWrapper

Description

WBWrapper

  • author: Brady Emerson
  • version: 1.0
  • copyright: 2008
  • access: public

Located in /WBWrapper.inc (line 38)


	
			
Class Constant Summary
 CACHE_TABLE = 'WB_cache'
 CACHE_TIME = 900
Variable Summary
mixed $cache
mixed $lastError
mixed $lastURL
mixed $wb_key
Method Summary
mixed cache_check (string $request, [bool $useOld = false])
bool cache_remove (string $request)
boolean cache_result (string $request, string $response)
WBWrapper WBWrapper (string $key, [bool $cache = true])
mixed wb_alerts (mixed $code, [ $unitType = 0])
mixed wb_alertsRSS (mixed $code, [integer $unitType = 0])
void wb_cameraList ( $code, [ $unitType = 0])
mixed wb_compact (string $stat_id, [integer $unitType = 0])
mixed wb_compactLiveWeather (mixed $code, [integer $unitType = 0])
mixed wb_complete (string $stat_id, [integer $unitType = 0])
mixed wb_forecast (mixed $code, [integer $unitType = 0])
mixed wb_forecastRSS (mixed $code, [integer $unitType = 0])
mixed wb_liveWeather (mixed $code, [integer $unitType = 0])
mixed wb_searchLocations (string|int $searchString)
mixed wb_stationList (mixed $code)
Variables
mixed $cache (line 39)
mixed $lastError (line 39)
mixed $lastMySQLError (line 39)
mixed $lastURL (line 39)
mixed $wb_key (line 39)
Methods
cache_check (line 1042)

Internal function that checks if cache exists

mixed cache_check (string $request, [bool $useOld = false])
  • string $request
  • bool $useOld
cache_remove (line 1061)

Internal function to clear cache out of database

bool cache_remove (string $request)
  • string $request
cache_result (line 1026)

Internal function that caches result

boolean cache_result (string $request, string $response)
  • string $request
  • string $response
Constructor WBWrapper (line 52)

WBWrapper::WBWrapper()

WBWrapper WBWrapper (string $key, [bool $cache = true])
  • string $key
  • bool $cache
wb_alerts (line 181)

Returns weather alert information for a given Zip Code or latitude/longitude (U.S. Only).

mixed wb_alerts (mixed $code, [ $unitType = 0])
  • mixed $code
  • $unitType
wb_alertsRSS (line 292)

Returns weather alert information for a given Zip Code or latitude/longitude (U.S. Only).

mixed wb_alertsRSS (mixed $code, [integer $unitType = 0])
  • mixed $code
  • integer $unitType
wb_cameraList (line 962)
void wb_cameraList ( $code, [ $unitType = 0])
  • $code
  • $unitType
wb_compact (line 670)

*Legacy Function* - Returns concise live weather conditions for the chosen location.

mixed wb_compact (string $stat_id, [integer $unitType = 0])
  • string $stat_id
  • integer $unitType
wb_compactLiveWeather (line 594)

WBWrapper::wb_compactLiveWeather()

mixed wb_compactLiveWeather (mixed $code, [integer $unitType = 0])
  • mixed $code
  • integer $unitType
wb_complete (line 743)

Returns detailed live weather conditions for the chosen location.

mixed wb_complete (string $stat_id, [integer $unitType = 0])
  • string $stat_id
  • integer $unitType
wb_forecast (line 362)

Returns the 7-day forecast for a zipcode, citycode or latitude/longitude.

mixed wb_forecast (mixed $code, [integer $unitType = 0])
  • mixed $code
  • integer $unitType
wb_forecastRSS (line 447)

Returns the 7-day forecast for a zipcode, citycode or latitude/longitude.

mixed wb_forecastRSS (mixed $code, [integer $unitType = 0])
  • mixed $code
  • integer $unitType
wb_liveWeather (line 519)

WBWrapper::wb_liveWeather()

mixed wb_liveWeather (mixed $code, [integer $unitType = 0])
  • mixed $code
  • integer $unitType
wb_searchLocations (line 63)

Returns the location based on the U.S. and international city name or U.S. Zip Code.

mixed wb_searchLocations (string|int $searchString)
  • string|int $searchString
wb_stationList (line 117)

For a given zipcode, citycode or latitude/longitude this call returns the weather stations in the area.

mixed wb_stationList (mixed $code)
  • mixed $code
Class Constants
CACHE_TABLE = 'WB_cache' (line 42)
CACHE_TIME = 900 (line 44)

Documentation generated on Wed, 25 Jun 2008 00:19:27 -0500 by phpDocumentor 1.3.2