X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..6b044c28b5f26fb99c86c237ffad19741c0f7f3d:/docs/output/Ext.data.DataProxy.html diff --git a/docs/output/Ext.data.DataProxy.html b/docs/output/Ext.data.DataProxy.html index a2a24dc8..4623da1c 100644 --- a/docs/output/Ext.data.DataProxy.html +++ b/docs/output/Ext.data.DataProxy.html @@ -1,372 +1,409 @@ -
Observable - DataProxy
Package: | Ext.data |
Defined In: | DataProxy.js |
Class: | DataProxy |
Subclasses: | HttpProxy, MemoryProxy, ScriptTagProxy, Proxy |
Extends: | Observable |
-DataProxy implementations are usually used in conjunction with an implementation of Ext.data.DataReader +
Observable + DataProxy
Package: | Ext.data |
Defined In: | DataProxy.js |
Class: | DataProxy |
Subclasses: | DirectProxy, HttpProxy, MemoryProxy, ScriptTagProxy |
Extends: | Observable |
Abstract base class for implementations which provide retrieval of unformatted data objects. +This class is intended to be extended and should not be created directly. For existing implementations, +see Ext.data.DirectProxy, Ext.data.HttpProxy, Ext.data.ScriptTagProxy and +Ext.data.MemoryProxy.
+DataProxy implementations are usually used in conjunction with an implementation of Ext.data.DataReader
(of the appropriate type which knows how to parse the data object) to provide a block of
-Ext.data.Records to an Ext.data.Store.
-
-Custom implementations must implement the load method as described in -Ext.data.HttpProxy.load.
Config Options | -Defined By | -|
---|---|---|
- |
-
- listeners : Object
-
- (optional) A config object containing one or more event handlers to be added to this object during initialization. Th...
-
- (optional) A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once.
- |
- Observable | -
Method | -Defined By | -|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- |
-
- addEvents( Object object ) : void
-
- Used to define events on this Observable
-
- Used to define events on this Observable
-
- Parameters:
-
-
|
- Observable | -||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- |
-
- addListener( String eventName , Function handler , [Object scope ], [Object options ] ) : void
- Appends an event handler to this component
-
- Appends an event handler to this component Returns:
- Parameters:
-
\ No newline at end of file
+
| Observable | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
destroy()
+ :
+ void Destroys the proxy by purging any event listeners and cancelling any active requests. Destroys the proxy by purging any event listeners and cancelling any active requests. Parameters:
| DataProxy | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
enableBubble( String/Array events )
+ :
+ voidEnables events fired by this Observable to bubble up an owner hierarchy by calling
+this.getBubbleTarget() if present.... Enables events fired by this Observable to bubble up an owner hierarchy by calling
+ This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default +implementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to +access the required target more quickly. +Example:
Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
fireEvent( String eventName , Object... args )
+ :
+ BooleanFires the specified event with the passed parameters (minus the event name).
+An event may be set to bubble up an Obse... Fires the specified event with the passed parameters (minus the event name). +An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget) +by calling enableBubble. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
hasListener( String eventName )
+ :
+ BooleanChecks to see if this object has any listeners for a specified event Checks to see if this object has any listeners for a specified event Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
isApiAction( String [Ext.data.Api.CREATE|READ|UPDATE|DESTROY]} )
+ :
+ BooleanReturns true if the specified action is defined as a unique action in the api-config.
+request. If all API-actions ar... Returns true if the specified action is defined as a unique action in the api-config.
+request. If all API-actions are routed to unique urls, the xaction parameter is unecessary. However, if no api is defined
+and all Proxy actions are routed to DataProxy#url, the server-side will require the xaction parameter to perform a switch to
+the corresponding code for CRUD action. Parameters:
| DataProxy | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
load( Object params , Object reader , Object callback , Object scope , Object arg )
+ :
+ voidDeprecated load method using old method signature. See {@doRequest} for preferred method. Deprecated load method using old method signature. See {@doRequest} for preferred method. Parameters:
| DataProxy | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
on( String eventName , Function handler , [Object scope ], [Object options ] )
+ :
+ voidAppends an event handler to this object (shorthand for addListener.) Appends an event handler to this object (shorthand for addListener.) Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
purgeListeners()
+ :
+ void Removes all listeners for this object Removes all listeners for this object Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
relayEvents( Object o , Array events )
+ :
+ voidRelays selected events from the specified Observable as if the events were fired by this. Relays selected events from the specified Observable as if the events were fired by this. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
removeListener( String eventName , Function handler , [Object scope ] )
+ :
+ voidRemoves an event handler. Removes an event handler. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
request( String action , Ext.data.Record/Ext.data.Record[]/null rs , Object params , Ext.data.DataReader reader , Function callback , Object scope , Object options )
+ :
+ voidAll proxy actions are executed through this method. Automatically fires the "before" + action event All proxy actions are executed through this method. Automatically fires the "before" + action event Parameters:
| DataProxy | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
resumeEvents()
+ :
+ void Resume firing events. (see suspendEvents)
+If events were suspended using the queueSuspended parameter, then all
+event... Resume firing events. (see suspendEvents)
+If events were suspended using the queueSuspended parameter, then all
+events fired during event suspension will be sent to any listeners now. Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
setApi( String/Object api , String/Function url )
+ :
+ voidRedefines the Proxy's API or a single action of an API. Can be called with two method signatures.
+If called with an o... Redefines the Proxy's API or a single action of an API. Can be called with two method signatures. +If called with an object as the only parameter, the object should redefine the entire API, e.g.:
+If called with two parameters, the first parameter should be a string specifying the API action to +redefine and the second parameter should be the URL (or function if using DirectProxy) to call for that action, e.g.:
Parameters:
| DataProxy | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
suspendEvents( Boolean queueSuspended )
+ :
+ voidSuspend the firing of all events. (see resumeEvents) Suspend the firing of all events. (see resumeEvents) Parameters:
| Observable | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
un( String eventName , Function handler , [Object scope ] )
+ :
+ voidRemoves an event handler (shorthand for removeListener.) Removes an event handler (shorthand for removeListener.) Parameters:
| Observable |
Event | Defined By | |
---|---|---|
beforeload :
+ ( DataProxy this , Object params )
+ Fires before a request to retrieve a data object. Fires before a request to retrieve a data object. Listeners will be called with the following arguments:
| DataProxy | |
beforewrite :
+ ( DataProxy this , String action , Record/Record[] rs , Object params )
+ Fires before a request is generated for one of the actions Ext.data.Api.actions.create|update|destroy
+In addition to ... Fires before a request is generated for one of the actions Ext.data.Api.actions.create|update|destroy +In addition to being fired through the DataProxy instance that raised the event, this event is also fired +through the Ext.data.DataProxy class to allow for centralized processing of beforewrite events from all +DataProxies by attaching a listener to the Ext.data.DataProxy class itself. Listeners will be called with the following arguments:
| DataProxy | |
exception :
+ ( DataProxy this , String type , String action , Object options , Object response , Mixed arg )
+ Fires if an exception occurs in the Proxy during a remote request. This event is relayed
+through a corresponding Ext.... Fires if an exception occurs in the Proxy during a remote request. This event is relayed +through a corresponding Ext.data.Store.exception, +so any Store instance may observe this event. +In addition to being fired through the DataProxy instance that raised the event, this event is also fired +through the Ext.data.DataProxy class to allow for centralized processing of exception events from all +DataProxies by attaching a listener to the Ext.data.DataProxy class itself. +This event can be fired for one of two reasons: +
This event fires with two different contexts based upon the 2nd +parameter type [remote|response]. The first four parameters +are identical between the two contexts -- only the final two parameters +differ. Listeners will be called with the following arguments:
| DataProxy | |
load :
+ ( DataProxy this , Object o , Object options )
+ Fires before the load method's callback is called. Fires before the load method's callback is called. Listeners will be called with the following arguments:
| DataProxy | |
loadexception :
+ ( misc misc )
+ This event is deprecated. The signature of the loadexception event
+varies depending on the proxy, use the catch-all ... | DataProxy | |
write :
+ ( DataProxy this , String action , Object data , Object response , Record/Record[] rs , Object options )
+ Fires before the request-callback is called
+In addition to being fired through the DataProxy instance that raised the... Fires before the request-callback is called +In addition to being fired through the DataProxy instance that raised the event, this event is also fired +through the Ext.data.DataProxy class to allow for centralized processing of write events from all +DataProxies by attaching a listener to the Ext.data.DataProxy class itself. Listeners will be called with the following arguments:
| DataProxy |