\Ceo\Plugins\Weather\ServicesNdfd

Summary

Methods
Properties
Constants
__construct()
setZip()
setStart()
setEnd()
setProperty()
fetch()
No public properties found
No constants found
No protected methods found
$elementMap
N/A
No private methods found
$baseUrl
$properties
N/A

Properties

$elementMap

$elementMap : 

Type

$baseUrl

$baseUrl : 

Type

$properties

$properties : 

Type

Methods

__construct()

__construct(string  $url = false) 

Parameters

string $url

optional alternate base url

setZip()

setZip(integer  $zip) : self

Set the zipcode for the local forecast

Parameters

integer $zip

Returns

self

setStart()

setStart(integer  $ts) : self

Set the start time

Parameters

integer $ts

unix timestamp

Returns

self

setEnd()

setEnd(integer  $ts) : self

Set the end time

Parameters

integer $ts

unix timestamp

Returns

self

setProperty()

setProperty(string  $k, string  $v) 

Set a query property

Parameters

string $k

key

string $v

value

fetch()

fetch() : object

Fetches data from the NDFD REST service based on set properties. Note that the full processing API may not yet be supported by \tsn\ndfd\response.

Returns

object —

instance of \Ceo\Plugins\Weather\Services\NdfdResponse