[mapserver-commits] r10254 - trunk/docs/en/mapscript/php

svn at osgeo.org svn at osgeo.org
Fri Jun 25 16:22:33 EDT 2010


Author: aboudreault
Date: 2010-06-25 20:22:33 +0000 (Fri, 25 Jun 2010)
New Revision: 10254

Modified:
   trunk/docs/en/mapscript/php/index.txt
   trunk/docs/en/mapscript/php/migration_guide.txt
Log:
Updated doc about cloneable objects

Modified: trunk/docs/en/mapscript/php/index.txt
===================================================================
--- trunk/docs/en/mapscript/php/index.txt	2010-06-25 20:11:51 UTC (rev 10253)
+++ trunk/docs/en/mapscript/php/index.txt	2010-06-25 20:22:33 UTC (rev 10254)
@@ -278,9 +278,6 @@
     Return the style object using an index. index >= 0 &&
     index < class->numstyles.
 
-classObj clone()
-    Returns a cloned copy of the class, NULL on error.
-
 int movestyleup(int index)
     The style specified by the style index will be moved up into
     the array of classes. Returns MS_SUCCESS or MS_FAILURE.
@@ -1201,11 +1198,6 @@
 Methods
 ...............................................................................
 
-mapObj clone()
-    Returns a handle to a new mapObj which is a clone of the current
-    mapObj.  All parameters in the current mapObj are copied to the
-    new mapObj.  Returns NULL on error.
-
 int set(string property_name, new_value)
     Set map object property to new value.
 
@@ -2351,9 +2343,6 @@
 int set(string property_name, new_value)
     Set object property to a new value.
 
-styleObj clone()
-    Returns a cloned copy of the style, NULL on error.
-
 int setBinding(const stylebinding, string value)
     Set the attribute binding for a specfiled style property.
     Added in MapServer 5.0.

Modified: trunk/docs/en/mapscript/php/migration_guide.txt
===================================================================
--- trunk/docs/en/mapscript/php/migration_guide.txt	2010-06-25 20:11:51 UTC (rev 10253)
+++ trunk/docs/en/mapscript/php/migration_guide.txt	2010-06-25 20:22:33 UTC (rev 10254)
@@ -65,6 +65,8 @@
     * ms_newSymbolObj() returns the id of the new/existing symbol.
     * new symbolObj() returns the symbolObj. You don't need to get it with getSymbolObjectById().
 
+* Cloneable objects should be cloned with the PHP clone keyword. There is no more clone methods.
+
 Class Properties
 ================
 
@@ -91,6 +93,9 @@
   * rectObj: free
   * shapeObj: union_geos
   * symbolObj: getstylearray
+  * classObj: clone
+  * styleObj: clone
+  * mapObj: clone
   * outputFormatObj: getformatoption, setformatoption
 
 layerObj



More information about the mapserver-commits mailing list