class Ndfd extends Plugin

Properties

protected $elementMap

Methods

__construct(string $url = false)

No description

setZip(int $zip)

Set the zipcode for the local forecast

setStart(int $ts)

Set the start time

setEnd(int $ts)

Set the end time

setProperty(string $k, string $v)

Set a query property

object
fetch()

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.

Details

at line 74
__construct(string $url = false)

Parameters

string $url optional alternate base url

at line 93
Ndfd setZip(int $zip)

Set the zipcode for the local forecast

Parameters

int $zip

Return Value

Ndfd

at line 106
Ndfd setStart(int $ts)

Set the start time

Parameters

int $ts unix timestamp

Return Value

Ndfd

at line 119
Ndfd setEnd(int $ts)

Set the end time

Parameters

int $ts unix timestamp

Return Value

Ndfd

at line 130
setProperty(string $k, string $v)

Set a query property

Parameters

string $k key
string $v value

at line 141
object fetch()

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.

Return Value

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