3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
9 GNU General Public License Usage
10 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.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
17 * @class Ext.data.ResultSet
20 * <p>Simple wrapper class that represents a set of records returned by a Proxy.</p>
22 Ext.define('Ext.data.ResultSet', {
24 * @cfg {Boolean} loaded
25 * True if the records have already been loaded. This is only meaningful when dealing with
32 * The number of records in this ResultSet. Note that total may differ from this number
38 * The total number of records reported by the data source. This ResultSet may form a subset of
39 * those records (see count)
44 * @cfg {Boolean} success
45 * True if the ResultSet loaded successfully, false if any errors were encountered
50 * @cfg {Array} records The array of record instances. Required
54 * Creates the resultSet
55 * @param {Object} config (optional) Config object.
57 constructor: function(config) {
58 Ext.apply(this, config);
61 * DEPRECATED - will be removed in Ext JS 5.0. This is just a copy of this.total - use that instead
62 * @property totalRecords
65 this.totalRecords = this.total;
67 if (config.count === undefined) {
68 this.count = this.records.length;