PHP 클래스 Horde_Service_Weather_Forecast_Base, horde

저자: Michael J Rubinsky ([email protected])
상속: implements IteratorAggregate
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$detail integer
FORECAST_TYPE_STANDARD - Each Period represents a full day
FORECAST_TYPE_DETAILED - Each period represents either day or night.
FORECAST_TYPE_HOURLY   - Each period represents a single hour.
$fields array Array of supported "detailed" forecast fields. To be populated by concrete classes.
$weather Horde_Service_Weather_Base Parent Weather driver.

보호된 프로퍼티들

프로퍼티 타입 설명
$_maxDays Maximum forecast length to return. Defaults to sufficiently high number to ensure all available days returned by default.
$_periods array Local cache of forecast periods
$_properties array The forecast properties as returned from the forecast request.
$_type Forecast type

공개 메소드들

메소드 설명
__construct ( array $properties, Horde_Service_Weather_Base $weather, integer $type = Horde_Service_Weather::FORECAST_TYPE_STANDARD ) Const'r
getForecastDay ( integer $day ) : Horde_Service_Weather_Period_Base Return the forecast for the specified ordinal day.
getForecastTime ( ) : Horde_Date Return the time of the forecast, in local (to station) time.
getIterator ( ) : ArrayIterator Return an ArrayIterator
limitLength ( integer $days ) Limit the returned number of forecast days. Used for emulating a smaller forecast length than the provider supports or for using one, longer request to supply two different forecast length requests.

메소드 상세

__construct() 공개 메소드

Const'r
public __construct ( array $properties, Horde_Service_Weather_Base $weather, integer $type = Horde_Service_Weather::FORECAST_TYPE_STANDARD )
$properties array Forecast properties.
$weather Horde_Service_Weather_Base The base driver.
$type integer The forecast type.

getForecastDay() 공개 메소드

Return the forecast for the specified ordinal day.
public getForecastDay ( integer $day ) : Horde_Service_Weather_Period_Base
$day integer The forecast day to return.
리턴 Horde_Service_Weather_Period_Base

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

Return the time of the forecast, in local (to station) time.
abstract public getForecastTime ( ) : Horde_Date
리턴 Horde_Date The time of the forecast.

getIterator() 공개 메소드

Return an ArrayIterator

limitLength() 공개 메소드

Limit the returned number of forecast days. Used for emulating a smaller forecast length than the provider supports or for using one, longer request to supply two different forecast length requests.
public limitLength ( integer $days )
$days integer The number of days to return.

프로퍼티 상세

$_maxDays 보호되어 있는 프로퍼티

Maximum forecast length to return. Defaults to sufficiently high number to ensure all available days returned by default.
protected $_maxDays

$_periods 보호되어 있는 프로퍼티

Local cache of forecast periods
protected array $_periods
리턴 array

$_properties 보호되어 있는 프로퍼티

The forecast properties as returned from the forecast request.
protected array $_properties
리턴 array

$_type 보호되어 있는 프로퍼티

Forecast type
protected $_type

$detail 공개적으로 프로퍼티

FORECAST_TYPE_STANDARD - Each Period represents a full day
FORECAST_TYPE_DETAILED - Each period represents either day or night.
FORECAST_TYPE_HOURLY   - Each period represents a single hour.
public int $detail
리턴 integer

$fields 공개적으로 프로퍼티

Array of supported "detailed" forecast fields. To be populated by concrete classes.
public array $fields
리턴 array

$weather 공개적으로 프로퍼티

Parent Weather driver.
public Horde_Service_Weather_Base $weather
리턴 Horde_Service_Weather_Base