<?php
/**
 * Forecast class for MythWeb's Weather module
 *
 * @url         $URL: http://svn.mythtv.org/svn/trunk/mythplugins/mythweb/modules/weather/includes/objects/Forecast.php $
 * @date        $Date: 2006-12-19 03:17:33 -0500 (Tue, 19 Dec 2006) $
 * @version     $Revision: 12295 $
 * @author      $Author: xris $
 * @license     GPL
 *
 * @package     MythWeb
 * @subpackage  Weather
 *
/**/

class Forecast {

    var $date;
    var $dayofweek;

    var $DescImage;
    var $DescText;

    var $HighTemperature;
    var $LowTemperature;

    function Forecast($date,$d) {
        $i = strpos($date, "/");
        $j = strpos($date, "/", $i+1); 
        $month = substr($date,0,$i);
        $day   = substr($date,$i+1,$j-$i-1);
        $year  = substr($date,$j+1,2);

        $this->date = date('m/d/Y', mktime(0,0,0,$month,$day+$d,$year)); 
    }
}
