Class Ext.data.MemoryProxy
| Package: | Ext.data |
| Class: | MemoryProxy |
| Extends: | Object |
| Defined In: | MemoryProxy.js |
An implementation of Ext.data.DataProxy that simply passes the data specified in its constructor
to the Reader when its load method is called.
Properties
-
Methods
-
Events
Public Properties
This class has no public properties.
Public Methods
| |
MemoryProxy( Object data ) |
MemoryProxy |
|
| |
load( Object params, Ext.data.DataReader) reader, Function callback, Object scope, Object arg ) : void |
MemoryProxy |
| Load data from the requested source (in this case an in-memory
data object passed to the constructor), read the data ... |
Public Events
This class has no public events.
Constructor Details
MemoryProxy
public function MemoryProxy( Object data )
Method Details
load
public function load( Object params, Ext.data.DataReader) reader, Function callback, Object scope, Object arg )
Load data from the requested source (in this case an in-memory
data object passed to the constructor), read the data object into
a block of Ext.data.Records using the passed Ext.data.DataReader implementation, and
process that block using the passed callback.
Parameters:
params : ObjectThis parameter is not used by the MemoryProxy class.
reader : Ext.data.DataReader)The Reader object which converts the data
object into a block of Ext.data.Records.
callback : FunctionThe function into which to pass the block of Ext.data.records.
The function must be passed
- The Record block object
- The "arg" argument from the load function
- A boolean success indicator
scope : ObjectThe scope in which to call the callback
arg : ObjectAn optional argument which is passed to the callback as its second parameter.
Returns:
This method is defined by MemoryProxy.