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

svn at osgeo.org svn at osgeo.org
Wed Oct 1 05:11:31 EDT 2008


Author: Assefa
Date: 2008-10-01 05:11:30 -0400 (Wed, 01 Oct 2008)
New Revision: 7939

Modified:
   trunk/mapserver/mapscript/php3/README
   trunk/mapserver/mapscript/php3/php_mapscript.c
Log:
PHP: add priority attribute to the label object (#2782)

Modified: trunk/mapserver/mapscript/php3/README
===================================================================
--- trunk/mapserver/mapscript/php3/README	2008-09-30 14:40:41 UTC (rev 7938)
+++ trunk/mapserver/mapscript/php3/README	2008-10-01 09:11:30 UTC (rev 7939)
@@ -1073,6 +1073,7 @@
    int    type
    colorObj    color
    colorObj    outlinecolor
+   int         outlinewidth
    colorObj    shadowcolor
    int    shadowsizex
    int    shadowsizey
@@ -1097,6 +1098,10 @@
    int    partials
    int    force
    string encoding
+   int    align
+   int    maxlength
+   int    minlength
+   int    priority
 
  Methods:
 

Modified: trunk/mapserver/mapscript/php3/php_mapscript.c
===================================================================
--- trunk/mapserver/mapscript/php3/php_mapscript.c	2008-09-30 14:40:41 UTC (rev 7938)
+++ trunk/mapserver/mapscript/php3/php_mapscript.c	2008-10-01 09:11:30 UTC (rev 7939)
@@ -8663,6 +8663,7 @@
     add_property_long(return_value,   "align", plabel->align);
     add_property_long(return_value,   "maxlength", plabel->maxlength);
     add_property_long(return_value,   "minlength", plabel->minlength);
+    add_property_long(return_value ,  "priority",   plabel->priority);
 
     MAKE_STD_ZVAL(new_obj_ptr);  /* Alloc and Init a ZVAL for new object */
     _phpms_build_color_object(&(plabel->color),list, new_obj_ptr TSRMLS_CC);
@@ -8753,6 +8754,7 @@
     else IF_SET_LONG(  "align", self->align)
     else IF_SET_LONG(  "maxlength", self->maxlength)
     else IF_SET_LONG(  "minlength", self->minlength)
+    else IF_SET_LONG(  "priority",     self->priority)       
     else
     {
         php3_error(E_ERROR,"Property '%s' does not exist in this object.", 



More information about the mapserver-commits mailing list