__construct() public method

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.
Esempio n. 1
0
 /**
  * Const'r
  *
  * @see Horde_Service_Weather_Forecast_Base::__construct()
  */
 public function __construct($properties, Horde_Service_Weather_Base $weather, $type = Horde_Service_Weather::FORECAST_TYPE_STANDARD)
 {
     parent::__construct($properties, $weather, $type);
     switch ($type) {
         case Horde_Service_Weather::FORECAST_TYPE_STANDARD:
             $this->_parseStd();
             break;
         case Horde_Service_Weather::FORECAST_TYPE_HOURLY:
             $this->_parseHourly();
     }
 }
Esempio n. 2
0
 /**
  * Const'r
  *
  * @see Horde_Service_Weather_Forecast_Base::__construct()
  */
 public function __construct($properties, Horde_Service_Weather_Base $weather, $type = Horde_Service_Weather::FORECAST_TYPE_STANDARD)
 {
     parent::__construct($properties, $weather, $type);
     $this->_parseStd();
 }