git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_SGD/tags/3.7.0.2_original@1 eb19766c-00d9-a042-a3a0-45cb8ec72764
35 lines
1.2 KiB
JavaScript
35 lines
1.2 KiB
JavaScript
/*
|
|
* Ext JS Library 2.3.0
|
|
* Copyright(c) 2006-2009, Ext JS, LLC.
|
|
* licensing@extjs.com
|
|
*
|
|
* http://extjs.com/license
|
|
*/
|
|
|
|
/**
|
|
* @class Ext.data.DataReader
|
|
* Abstract base class for reading structured data from a data source and converting
|
|
* it into an object containing {@link Ext.data.Record} objects and metadata for use
|
|
* by an {@link Ext.data.Store}. This class is intended to be extended and should not
|
|
* be created directly. For existing implementations, see {@link Ext.data.ArrayReader},
|
|
* {@link Ext.data.JsonReader} and {@link Ext.data.XmlReader}.
|
|
* @constructor Create a new DataReader
|
|
* @param {Object} meta Metadata configuration options (implementation-specific)
|
|
* @param {Object} recordType Either an Array of field definition objects as specified
|
|
* in {@link Ext.data.Record#create}, or an {@link Ext.data.Record} object created
|
|
* using {@link Ext.data.Record#create}.
|
|
*/
|
|
Ext.data.DataReader = function(meta, recordType){
|
|
/**
|
|
* This DataReader's configured metadata as passed to the constructor.
|
|
* @type Mixed
|
|
* @property meta
|
|
*/
|
|
this.meta = meta;
|
|
this.recordType = Ext.isArray(recordType) ?
|
|
Ext.data.Record.create(recordType) : recordType;
|
|
};
|
|
|
|
Ext.data.DataReader.prototype = {
|
|
|
|
}; |