[mapserver-commits] r7889 - trunk/mapserver/mapscript/php3

svn at osgeo.org svn at osgeo.org
Wed Aug 27 09:26:51 EDT 2008


Author: Assefa
Date: 2008-08-27 09:26:50 -0400 (Wed, 27 Aug 2008)
New Revision: 7889

Modified:
   trunk/mapserver/mapscript/php3/README
   trunk/mapserver/mapscript/php3/php_mapscript.c
Log:
Add opacity parameter in the style object (#2755)

Modified: trunk/mapserver/mapscript/php3/README
===================================================================
--- trunk/mapserver/mapscript/php3/README	2008-08-27 03:36:18 UTC (rev 7888)
+++ trunk/mapserver/mapscript/php3/README	2008-08-27 13:26:50 UTC (rev 7889)
@@ -1692,6 +1692,7 @@
   double        minvalue
   double        maxvalue
   string        rangeitem
+  int           opacity (this parameter is only supported for the AGG driver)
       
         
         

Modified: trunk/mapserver/mapscript/php3/php_mapscript.c
===================================================================
--- trunk/mapserver/mapscript/php3/php_mapscript.c	2008-08-27 03:36:18 UTC (rev 7888)
+++ trunk/mapserver/mapscript/php3/php_mapscript.c	2008-08-27 13:26:50 UTC (rev 7889)
@@ -13751,6 +13751,7 @@
     add_property_double(return_value,   "minvalue", pstyle->minvalue);
     add_property_double(return_value,   "maxvalue", pstyle->maxvalue);
     PHPMS_ADD_PROP_STR(return_value,  "rangeitem", pstyle->rangeitem);
+    add_property_long(return_value,   "opacity",       pstyle->opacity);
     
     MAKE_STD_ZVAL(new_obj_ptr);  /* Alloc and Init a ZVAL for new object */
     _phpms_build_color_object(&(pstyle->color),list, new_obj_ptr TSRMLS_CC);
@@ -13894,6 +13895,7 @@
     else IF_SET_DOUBLE("minvalue",      self->minvalue)
     else IF_SET_DOUBLE("maxvalue",      self->maxvalue)
     else IF_SET_STRING( "rangeitem",    self->rangeitem)
+    else IF_SET_LONG( "opacity",        self->opacity)
     else
     {
         php3_error(E_ERROR,"Property '%s' does not exist in this object.",



More information about the mapserver-commits mailing list