cvs: pear /Services_Weather package2.xml /Services_Weather/Weather Weatherdotcom.php

[email protected] ("Alexander Wirtz") Sat, 10 May 2008 20:43:36 -0000
Newsgroups php.pear.cvs
Message-ID <cvseru1210452216@cvsserver>
eru		Sat May 10 20:43:36 2008 UTC

  Modified files:              
    /pear/Services_Weather	package2.xml 
    /pear/Services_Weather/Weather	Weatherdotcom.php 
  Log:
  o Changed available forecast days to 5 as per change in the xoap offering (boigelot)
  
  
  
http://cvs.php.net/viewvc.cgi/pear/Services_Weather/package2.xml?r1=1.5&r2=1.6&diff_format=u
Index: pear/Services_Weather/package2.xml
diff -u pear/Services_Weather/package2.xml:1.5 pear/Services_Weather/package2.xml:1.6
--- pear/Services_Weather/package2.xml:1.5	Sat May 10 20:35:30 2008
+++ pear/Services_Weather/package2.xml	Sat May 10 20:43:35 2008
@@ -33,6 +33,7 @@
     <license uri="http://www.opensource.org/licenses/bsd-license.php">BSD License</license>
     <notes>
         - Weatherdotcom.php
+            o Changed available forecast days to 5 as per change in the xoap offering (boigelot)
             o Fixed Bug #13845: Weather.com service requires link request in all xoap requests (mscannel)
     </notes>
     <!-- /Copy to changelog -->
http://cvs.php.net/viewvc.cgi/pear/Services_Weather/Weather/Weatherdotcom.php?r1=1.62&r2=1.63&diff_format=u
Index: pear/Services_Weather/Weather/Weatherdotcom.php
diff -u pear/Services_Weather/Weather/Weatherdotcom.php:1.62 pear/Services_Weather/Weather/Weatherdotcom.php:1.63
--- pear/Services_Weather/Weather/Weatherdotcom.php:1.62	Sat May 10 20:35:30 2008
+++ pear/Services_Weather/Weather/Weatherdotcom.php	Sat May 10 20:43:36 2008
@@ -40,7 +40,7 @@
  * @author      Alexander Wirtz <[email protected]>
  * @copyright   2005-2007 Alexander Wirtz
  * @license     http://www.opensource.org/licenses/bsd-license.php  BSD License
- * @version     CVS: $Id: Weatherdotcom.php,v 1.62 2008/05/10 20:35:30 eru Exp $
+ * @version     CVS: $Id: Weatherdotcom.php,v 1.63 2008/05/10 20:43:36 eru Exp $
  * @link        http://pear.php.net/package/Services_Weather
  * @link        http://www.weather.com/services/xmloap.html
  * @example     examples/weather.com-basic.php      weather.com-basic.php
@@ -54,7 +54,7 @@
 /**
  * This class acts as an interface to the xml service of weather.com. It
  * searches for given locations and retrieves current weather data as well
- * as forecast for up to 10 days.
+ * as forecast for up to 5 days.
  *
  * For using the weather.com xml-service please visit
  *     http://www.weather.com/services/xmloap.html
@@ -255,10 +255,10 @@
                 $url .= "&cc=*&unit=s";
                 break;
             case "forecast":
-                $url .= "&dayf=10&unit=s";
+                $url .= "&dayf=5&unit=s";
                 break;
             case "all":
-                $url .= "&link=xoap&cc=*&dayf=10&unit=s";
+                $url .= "&link=xoap&cc=*&dayf=5&unit=s";
                 break;
         }
 
@@ -570,7 +570,7 @@
      * Get the forecast for the next days
      *
      * @param   string                      $id
-     * @param   int                         $days           Values between 1 and 10
+     * @param   int                         $days           Values between 1 and 5
      * @param   string                      $unitsFormat
      * @return  PEAR_Error|array
      * @throws  PEAR_Error
@@ -583,7 +583,7 @@
         if (Services_Weather::isError($status)) {
             return $status;
         }
-        if (!in_array($days, range(1, 10))) {
+        if (!in_array($days, range(1, 5))) {
             $days = 2;
         }