/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_data_DataReader({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":["Ext.data.JsonReader","Ext.data.XmlReader"],"extends":null,"uses":[],"html":"

Subclasses

Files

Abstract base class for reading structured data from a data source and converting\nit into an object containing Ext.data.Record objects and metadata for use\nby an Ext.data.Store. This class is intended to be extended and should not\nbe created directly. For existing implementations, see Ext.data.ArrayReader,\nExt.data.JsonReader and Ext.data.XmlReader.

\n
Defined By

Config options

Ext.data.DataReader
view source
: Array/Object
Either an Array of Field definition objects (which\nwill be passed to Ext.data.Record.create, or a Record\nconstructor ...

Either an Array of Field definition objects (which\nwill be passed to Ext.data.Record.create, or a Record\nconstructor created from Ext.data.Record.create.

\n\n
Ext.data.DataReader
view source
messageProperty : String

[undefined] Optional name of a property within a server-response that represents a user-feedback message.

\n

[undefined] Optional name of a property within a server-response that represents a user-feedback message.

\n
Defined By

Properties

Ext.data.DataReader
view source
meta : Mixed

This DataReader's configured metadata as passed to the constructor.

\n

This DataReader's configured metadata as passed to the constructor.

\n
Defined By

Methods

Ext.data.DataReader
view source
new( meta, recordType ) : Ext.data.DataReader
Create a new DataReader ...

Create a new DataReader

\n

Parameters

Returns

Ext.data.DataReader
view source
( )
Abstract method, overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader ...

Abstract method, overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader

\n
Ext.data.DataReader
view source
( data-root, returnRecords )private
returns extracted, type-cast rows of data. ...

returns extracted, type-cast rows of data. Iterates to call extractValues for each row

\n

Parameters

  • data-root : Object[]/Object

    from server response

    \n
  • returnRecords : Boolean

    [false] Set true to return instances of Ext.data.Record

    \n
Ext.data.DataReader
view source
( )
Abstract method overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader ...

Abstract method overridden in DataReader extensions such as Ext.data.JsonReader and Ext.data.XmlReader

\n
Ext.data.DataReader
view source
( )
Abstract method created in extension's buildExtractors impl. ...

Abstract method created in extension's buildExtractors impl.

\n
Ext.data.DataReader
view source
( )
Abstract method created in extension's buildExtractors impl. ...

Abstract method created in extension's buildExtractors impl.

\n
Ext.data.DataReader
view source
( )
Abstract method created in extension's buildExtractors impl. ...

Abstract method created in extension's buildExtractors impl.

\n
Ext.data.DataReader
view source
( )
Abstract method created in extension's buildExtractors impl. ...

Abstract method created in extension's buildExtractors impl.

\n
Ext.data.DataReader
view source
( )
Abstract method created in extension's buildExtractors impl. ...

Abstract method created in extension's buildExtractors impl.

\n
Ext.data.DataReader
view source
( data ) : Boolean
Returns true if the supplied data-hash looks and quacks like data. ...

Returns true if the supplied data-hash looks and quacks like data. Checks to see if it has a key\ncorresponding to idProperty defined in your DataReader config containing non-empty pk.

\n

Parameters

  • data : Object
    \n

Returns

  • Boolean
    \n
Ext.data.DataReader
view source
( record, data )
Used for un-phantoming a record after a successful database insert. ...

Used for un-phantoming a record after a successful database insert. Sets the records pk along with new data from server.\nYou must return at least the database pk using the idProperty defined in your DataReader configuration. The incoming\ndata from server will be merged with the data in the local record.\nIn addition, you must return record-data from the server in the same order received.\nWill perform a commit as well, un-marking dirty-fields. Store's \"update\" event will be suppressed.

\n

Parameters

  • record : Record/Record[]

    The phantom record to be realized.

    \n
  • data : Object/Object[]

    The new record data to apply. Must include the primary-key from database defined in idProperty field.

    \n
Ext.data.DataReader
view source
( rs, data )
Used for updating a non-phantom or \"real\" record's data with fresh data from server after remote-save. ...

Used for updating a non-phantom or \"real\" record's data with fresh data from server after remote-save.\nIf returning data from multiple-records after a batch-update, you must return record-data from the server in\nthe same order received. Will perform a commit as well, un-marking dirty-fields. Store's \"update\" event will be\nsuppressed as the record receives fresh new data-hash

\n

Parameters

  • rs : Record/Record[]
    \n
  • data : Object/Object[]
    \n
","superclasses":[],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"DataReader.html#Ext-data-DataReader","filename":"DataReader.js"}],"linenr":1,"members":{"property":[{"tagname":"property","owner":"Ext.data.DataReader","meta":{},"name":"meta","id":"property-meta"}],"cfg":[{"tagname":"cfg","owner":"Ext.data.DataReader","meta":{},"name":"fields","id":"cfg-fields"},{"tagname":"cfg","owner":"Ext.data.DataReader","meta":{},"name":"messageProperty","id":"cfg-messageProperty"}],"css_var":[],"method":[{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"constructor","id":"method-constructor"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"buildExtractors","id":"method-buildExtractors"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{"private":true},"name":"extractData","id":"method-extractData"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"extractValues","id":"method-extractValues"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"getId","id":"method-getId"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"getMessage","id":"method-getMessage"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"getRoot","id":"method-getRoot"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"getSuccess","id":"method-getSuccess"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"getTotal","id":"method-getTotal"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"isData","id":"method-isData"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"realize","id":"method-realize"},{"tagname":"method","owner":"Ext.data.DataReader","meta":{},"name":"update","id":"method-update"}],"event":[],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.data.DataReader","singleton":false,"override":null,"inheritdoc":null,"id":"class-Ext.data.DataReader","mixins":[],"mixedInto":[]});