getSupportedForecastLengths() abstract public method

Get array of supported forecast lengths.
abstract public getSupportedForecastLengths ( ) : array
return array The array of supported lengths.
Ejemplo n.º 1
0
 /**
  */
 protected function _params()
 {
     $lengths = $this->_weather->getSupportedForecastLengths();
     return array('location' => array('type' => 'text', 'name' => _("Location"), 'default' => 'Boston,MA'), 'units' => array('type' => 'enum', 'name' => _("Units"), 'default' => 'standard', 'values' => array(Horde_Service_Weather::UNITS_STANDARD => _("English"), Horde_Service_Weather::UNITS_METRIC => _("Metric"))), 'days' => array('type' => 'enum', 'name' => _("Forecast Days (note that the returned forecast returns both day and night; a large number here could result in a wide block.)"), 'default' => 3, 'values' => $lengths), 'detailedForecast' => array('type' => 'checkbox', 'name' => _("Display detailed forecast?"), 'default' => 0), 'showMap' => array('type' => 'checkbox', 'name' => _("Display the OpenWeatherMap map?"), 'default' => 0));
 }