| actions : ObjectDefined actions corresponding to remote actions:
-actions: {
+GET, POST, PUT and DELETE to CRUD actions.
This class is a singleton and cannot be created directly. Public Properties|
| actions : ObjectDefined actions corresponding to remote actions:
+actions: {
create : 'create', // Text representing the remote-... Defined actions corresponding to remote actions:
actions: {
create : 'create', // Text representing the remote-action to create records on server.
read : 'read', // Text representing the remote-action to read/load data from server.
update : 'update', // Text representing the remote-action to update records on server.
destroy : 'destroy' // Text representing the remote-action to destroy records on server.
-}
| Api | | restActions : ObjectDefined {CRUD action}:{HTTP method} pairs to associate HTTP methods with the
+} | Api | | restActions : ObjectDefined {CRUD action}:{HTTP method} pairs to associate HTTP methods with the
corresponding actions for RESTful proxie... Defined {CRUD action}:{HTTP method} pairs to associate HTTP methods with the
corresponding actions for RESTful proxies.
Defaults to:
@@ -18,28 +18,28 @@ Defaults to:
read : 'GET',
update : 'PUT',
destroy : 'DELETE'
-}, | Api |
Public MethodsPublic Methods|
| Response()
+ :
+ voidExt.data.Response
Experimental. Do not use directly. Ext.data.Response
-Experimental. Do not use directly. | Api | | getVerb( String name )
- :
+Experimental. Do not use directly. | Api | | getVerb( String name )
+ :
String||nullReturns the actual CRUD action KEY "create", "read", "update" or "destroy" from the supplied action-name. This metho... Returns the actual CRUD action KEY "create", "read", "update" or "destroy" from the supplied action-name. This method is used internally and shouldn't generally
need to be used directly. The key/value pair of Ext.data.Api.actions will often be identical but this is not necessarily true. A developer can override this naming
convention if desired. However, the framework internally calls methods based upon the KEY so a way of retreiving the the words "create", "read", "update" and "destroy" is
-required. This method will cache discovered KEYS into the private validActions hash. | Api | | hasUniqueUrl( Ext.data.DataProxy proxy , String verb )
- :
+required. This method will cache discovered KEYS into the private validActions hash. | Api | | hasUniqueUrl( Ext.data.DataProxy proxy , String verb )
+ :
BooleanReturns true if the supplied verb upon the supplied proxy points to a unique url in that none of the other api-action... Returns true if the supplied verb upon the supplied proxy points to a unique url in that none of the other api-actions
point to the same url. The question is important for deciding whether to insert the "xaction" HTTP parameter within an
-Ajax request. This method is used internally and shouldn't generally need to be called directly. Parameters:proxy : Ext.data.DataProxyverb : String Returns: | Api | | isAction( String action , String[]}(Optional) List )
- :
- BooleanReturns true if supplied action-name is a valid API action defined in actions constants Returns true if supplied action-name is a valid API action defined in actions constants | Api | | isValid()
- :
- String[]||trueReturns true if the supplied API is valid; that is, check that all keys match defined actions
+Ajax request. This method is used internally and shouldn't generally need to be called directly. Parameters:proxy : Ext.data.DataProxyverb : String Returns: | Api | | isAction( String action )
+ :
+ BooleanReturns true if supplied action-name is a valid API action defined in actions constants Returns true if supplied action-name is a valid API action defined in actions constants | Api | | isValid()
+ :
+ String[]|trueReturns true if the supplied API is valid; that is, check that all keys match defined actions
otherwise returns an ar... Returns true if the supplied API is valid; that is, check that all keys match defined actions
-otherwise returns an array of mistakes. | Api | | prepare( Ext.data.DataProxy proxy )
- :
- voidThis method is used internally by DataProxy and should not generally need to be used directly.
+otherwise returns an array of mistakes. | Api | | prepare( Ext.data.DataProxy proxy )
+ :
+ voidThis method is used internally by DataProxy and should not generally need to be used directly.
Each action of a DataP... This method is used internally by DataProxy and should not generally need to be used directly.
Each action of a DataProxy api can be initially defined as either a String or an Object. When specified as an object,
one can explicitly define the HTTP method (GET|POST) to use for each CRUD action. This method will prepare the supplied API, setting
@@ -63,8 +63,8 @@ be used. If the method configuration parameter is not specified, POST will be u
destroy: 'destroy.php',
save: 'update.php'
}
-}); Parameters:proxy : Ext.data.DataProxy Returns: | Api | | restify( Ext.data.DataProxy proxy )
- :
- voidPrepares a supplied Proxy to be RESTful. Sets the HTTP method for each api-action to be one of
+}); Parameters:proxy : Ext.data.DataProxy Returns: | Api | | restify( Ext.data.DataProxy proxy )
+ :
+ voidPrepares a supplied Proxy to be RESTful. Sets the HTTP method for each api-action to be one of
GET, POST, PUT, DELET... Prepares a supplied Proxy to be RESTful. Sets the HTTP method for each api-action to be one of
GET, POST, PUT, DELETE according to the defined restActions. Parameters:proxy : Ext.data.DataProxy Returns: | Api |
Public EventsThis class has no public events.
\ No newline at end of file
|