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.
属性
-
方法
-
事件
公共属性
此类没有公共属性。
公共方法
| |
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 ... |
公共事件
此类没有公共事件。
构造函数
MemoryProxy
public function MemoryProxy(Object data)
方法详情
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.
参数:
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.
返回:
This method is defined by MemoryProxy.