set Protocol read, create, update, delete and commit APIMethod. r=tschaub (closes #1660)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9054 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2009-03-16 07:05:56 +00:00
parent 483c6ea4e6
commit cea2bdd3a1
4 changed files with 20 additions and 16 deletions

View File

@@ -53,7 +53,7 @@ OpenLayers.Protocol = OpenLayers.Class({
},
/**
* Method: read
* APIMethod: read
* Construct a request for reading new features.
*
* Parameters:
@@ -69,7 +69,7 @@ OpenLayers.Protocol = OpenLayers.Class({
/**
* Method: create
* APIMethod: create
* Construct a request for writing newly created features.
*
* Parameters:
@@ -86,7 +86,7 @@ OpenLayers.Protocol = OpenLayers.Class({
},
/**
* Method: update
* APIMethod: update
* Construct a request updating modified features.
*
* Parameters:
@@ -103,7 +103,7 @@ OpenLayers.Protocol = OpenLayers.Class({
},
/**
* Method: delete
* APIMethod: delete
* Construct a request deleting a removed feature.
*
* Parameters:
@@ -119,7 +119,7 @@ OpenLayers.Protocol = OpenLayers.Class({
},
/**
* Method: commit
* APIMethod: commit
* Go over the features and for each take action
* based on the feature state. Possible actions are create,
* update and delete.

View File

@@ -112,7 +112,7 @@ OpenLayers.Protocol.HTTP = OpenLayers.Class(OpenLayers.Protocol, {
},
/**
* Method: read
* APIMethod: read
* Construct a request for reading new features.
*
* Parameters:
@@ -185,7 +185,7 @@ OpenLayers.Protocol.HTTP = OpenLayers.Class(OpenLayers.Protocol, {
},
/**
* Method: create
* APIMethod: create
* Construct a request for writing newly created features.
*
* Parameters:
@@ -234,7 +234,7 @@ OpenLayers.Protocol.HTTP = OpenLayers.Class(OpenLayers.Protocol, {
},
/**
* Method: update
* APIMethod: update
* Construct a request updating modified feature.
*
* Parameters:
@@ -283,7 +283,7 @@ OpenLayers.Protocol.HTTP = OpenLayers.Class(OpenLayers.Protocol, {
},
/**
* Method: delete
* APIMethod: delete
* Construct a request deleting a removed feature.
*
* Parameters:
@@ -379,7 +379,7 @@ OpenLayers.Protocol.HTTP = OpenLayers.Class(OpenLayers.Protocol, {
},
/**
* Method: commit
* APIMethod: commit
* Iterate over each feature and take action based on the feature state.
* Possible actions are create, update and delete.
*
@@ -463,7 +463,7 @@ OpenLayers.Protocol.HTTP = OpenLayers.Class(OpenLayers.Protocol, {
},
/**
* Method: abort
* APIMethod: abort
* Abort an ongoing request, the response object passed to
* this method must come from this HTTP protocol (as a result
* of a create, read, update, delete or commit operation).

View File

@@ -134,7 +134,7 @@ OpenLayers.Protocol.SQL.Gears = OpenLayers.Class(OpenLayers.Protocol.SQL, {
},
/**
* Method: read
* APIMethod: read
* Read all features from the database and return a
* <OpenLayers.Protocol.Response> instance. If the options parameter
* contains a callback attribute, the function is called with the response
@@ -232,7 +232,7 @@ OpenLayers.Protocol.SQL.Gears = OpenLayers.Class(OpenLayers.Protocol.SQL, {
},
/**
* Method: create
* APIMethod: create
* Create new features into the database.
*
* Parameters:
@@ -259,7 +259,7 @@ OpenLayers.Protocol.SQL.Gears = OpenLayers.Class(OpenLayers.Protocol.SQL, {
},
/**
* Method: update
* APIMethod: update
* Construct a request updating modified feature.
*
* Parameters:
@@ -381,7 +381,7 @@ OpenLayers.Protocol.SQL.Gears = OpenLayers.Class(OpenLayers.Protocol.SQL, {
},
/**
* Method: delete
* APIMethod: delete
* Delete features from the database.
*
* Parameters:
@@ -455,7 +455,7 @@ OpenLayers.Protocol.SQL.Gears = OpenLayers.Class(OpenLayers.Protocol.SQL, {
},
/**
* Method: commit
* APIMethod: commit
* Go over the features and for each take action
* based on the feature state. Possible actions are create,
* update and delete.

View File

@@ -1,3 +1,7 @@
/* Copyright (c) 2006-2008 MetaCarta, Inc., published under the Clear BSD
* license. See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Protocol.js
*/