{$this->city}
{$this->condition}
{$this->temp}°C
icon}\" alt=\"{$this->condition}\" />\n\n";
}//getWeatherToday;
}
class SchmieWetter{
private $plz, $nDays; //Plz and how for how many forecasts
private $cityName=NULL;
private $today, $forecasts; //Weather today and forecasts
private $tableLayout=0; //Tablelayout || div?
private $highLow=0; //Minimum Maximum anzeigen?
public function __construct($plz, $nDays, $customCityName=""){
$this->plz= $plz;
$this->nDays= $nDays;
if (!$customCityName == "")
$this->cityName=$customCityName;
}//construct
public function overrideCityName($name){
$this->cityName = $name;
}//function
public function makeTableLayout(){
$this->tableLayout= 1;
}//function
public function showHighLow(){
$this->highLow=1;
}
public function __toString(){
$retval = $this->today->getWeatherToday();
$retval.="
| {$fc->day} | \n"; } $retval.="
| {$fc->low}-{$fc->high}° | \n"; } }//min & max $retval.="