Horde_Service_Weather_Base::getSupportedForecastLengths PHP 메소드

getSupportedForecastLengths() 추상적인 공개 메소드

Get array of supported forecast lengths.
abstract public getSupportedForecastLengths ( ) : array
리턴 array The array of supported lengths.
    public abstract function getSupportedForecastLengths();

Usage Example

예제 #1
0
파일: Weather.php 프로젝트: kossamums/horde
 /**
  */
 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));
 }