|
| JsonReader( Object meta , Array/Object recordType )
| JsonReader |
| isData( Object data )
- :
- BooleanReturns true if the supplied data-hash looks and quacks like data. Checks to see if it has a key
-corresponding to i... Returns true if the supplied data-hash looks and quacks like data. Checks to see if it has a key
-corresponding to idProperty defined in your DataReader config containing non-empty pk. | DataReader |
| read( Object response )
- :
- ObjectThis method is only used by a DataProxy which has retrieved data from a remote server. This method is only used by a DataProxy which has retrieved data from a remote server. | JsonReader |
| readRecords( Object o )
- :
+constructor created from Ext.data.Record.create.Returns: | JsonReader |
| isData( Object data )
+ :
+ BooleanReturns true if the supplied data-hash looks and quacks like data. Checks to see if it has a key
+corresponding to id... Returns true if the supplied data-hash looks and quacks like data. Checks to see if it has a key
+corresponding to idProperty defined in your DataReader config containing non-empty pk. | DataReader |
| read( Object response )
+ :
+ ObjectThis method is only used by a DataProxy which has retrieved data from a remote server. This method is only used by a DataProxy which has retrieved data from a remote server. | JsonReader |
| readRecords( Object o )
+ :
ObjectCreate a data block containing Ext.data.Records from a JSON object. Create a data block containing Ext.data.Records from a JSON object. Parameters:o : ObjectAn object which contains an Array of row objects in the property specified
in the config as 'root, and optionally a property, specified in the config as 'totalProperty'
-which contains the total size of the dataset. Returns: | JsonReader |
| readResponse( String action , Object response )
- :
- voidDecode a json response from server. Decode a json response from server. Parameters:action : String[Ext.data.Api.actions.create|read|update|destroy] response : ObjectTODO: refactor code between JsonReader#readRecords, #readResponse into 1 method.
-there's ugly duplication going on due to maintaining backwards compat. with 2.0. It's time to do this. Returns: | JsonReader |
| realize( Record/Record[] record , Object/Object[] data )
- :
- voidUsed for un-phantoming a record after a successful database insert. Sets the records pk along with new data from ser... Used for un-phantoming a record after a successful database insert. Sets the records pk along with new data from server.
-You must return at least the database pk using the idProperty defined in your DataReader configuration. The incoming
-data from server will be merged with the data in the local record.
-In addition, you must return record-data from the server in the same order received.
-Will perform a commit as well, un-marking dirty-fields. Store's "update" event will be suppressed. | DataReader |
| update( Record/Record[] rs , Object/Object[] data )
- :
- voidUsed for updating a non-phantom or "real" record's data with fresh data from server after remote-save.
-If returning ... Used for updating a non-phantom or "real" record's data with fresh data from server after remote-save.
-If returning data from multiple-records after a batch-update, you must return record-data from the server in
-the same order received. Will perform a commit as well, un-marking dirty-fields. Store's "update" event will be
+which contains the total size of the dataset. Returns: | JsonReader |
| readResponse( String action , Object response )
+ :
+ ResponseDecode a JSON response from server. Decode a JSON response from server. | JsonReader |
| realize( Record/Record[] record , Object/Object[] data )
+ :
+ voidUsed for un-phantoming a record after a successful database insert. Sets the records pk along with new data from ser... Used for un-phantoming a record after a successful database insert. Sets the records pk along with new data from server.
+You must return at least the database pk using the idProperty defined in your DataReader configuration. The incoming
+data from server will be merged with the data in the local record.
+In addition, you must return record-data from the server in the same order received.
+Will perform a commit as well, un-marking dirty-fields. Store's "update" event will be suppressed. | DataReader |
| update( Record/Record[] rs , Object/Object[] data )
+ :
+ voidUsed for updating a non-phantom or "real" record's data with fresh data from server after remote-save.
+If returning d... Used for updating a non-phantom or "real" record's data with fresh data from server after remote-save.
+If returning data from multiple-records after a batch-update, you must return record-data from the server in
+the same order received. Will perform a commit as well, un-marking dirty-fields. Store's "update" event will be
suppressed as the record receives fresh new data-hash Parameters:rs : Record/Record[]data : Object/Object[] Returns: | DataReader |