\Ceo\Plugins\Weather\ServicesNdfdResponse

Provides the response interface and data processing for the NDFD REST service

Summary

Methods
Properties
Constants
__construct()
getWeather()
No public properties found
No constants found
parseData()
handle_weather()
handle_temperature()
handle_cloudamount()
No protected properties found
N/A
No private methods found
$rawResponse
$xml
$properties
N/A

Properties

$rawResponse

$rawResponse : 

Type

$xml

$xml : 

Type

$properties

$properties : 

Type

Methods

__construct()

__construct(string  $resp) 

Parameters

string $resp

raw response from \tsn\ndfd\client

getWeather()

getWeather() : object

Return a \tsn\ndfd\currentWeather object based on processed data.

Returns

object

parseData()

parseData(object  $xml) : false

Parse the XML object's data element

Parameters

object $xml

SimpleXML instance

Returns

false —

on error

handle_weather()

handle_weather(  $item) 

Parameters

$item

handle_temperature()

handle_temperature(  $item) 

Parameters

$item

handle_cloudamount()

handle_cloudamount(  $item) 

Parameters

$item