Class Ext.data.MemoryProxy
Package: | Ext.data |
Defined In: | MemoryProxy.js |
Class: | MemoryProxy |
Extends: | Object |
An implementation of Ext.data.DataProxy that simply passes the data specified in its constructor
to the Reader when its load method is called.
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
Load data from the requested source (in this case an in-memory
data object passed to the constructor), read the data ...
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:
|
MemoryProxy |
Public Events
This class has no public events.