class NdfdResponse

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

Methods

__construct(string $resp)

No description

false
parseData(object $xml)

Parse the XML object's data element

handle_weather($item)

No description

handle_temperature($item)

No description

handle_cloudamount($item)

No description

object
getWeather()

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

Details

at line 27
__construct(string $resp)

Parameters

string $resp raw response from \tsn\ndfd\client

at line 42
protected false parseData(object $xml)

Parse the XML object's data element

Parameters

object $xml SimpleXML instance

Return Value

false on error

at line 61
protected handle_weather($item)

Parameters

$item

at line 70
protected handle_temperature($item)

Parameters

$item

at line 75
protected handle_cloudamount($item)

Parameters

$item

at line 85
object getWeather()

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

Return Value

object