ResultSet.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>The source code</title>
  6. <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  7. <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  8. <style type="text/css">
  9. .highlight { display: block; background-color: #ddd; }
  10. </style>
  11. <script type="text/javascript">
  12. function highlight() {
  13. document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
  14. }
  15. </script>
  16. </head>
  17. <body onload="prettyPrint(); highlight();">
  18. <pre class="prettyprint lang-js"><span id='Ext-data-ResultSet'>/**
  19. </span> * @author Ed Spencer
  20. *
  21. * Simple wrapper class that represents a set of records returned by a Proxy.
  22. */
  23. Ext.define('Ext.data.ResultSet', {
  24. <span id='Ext-data-ResultSet-cfg-loaded'> /**
  25. </span> * @cfg {Boolean} loaded
  26. * True if the records have already been loaded. This is only meaningful when dealing with
  27. * SQL-backed proxies.
  28. */
  29. loaded: true,
  30. <span id='Ext-data-ResultSet-cfg-count'> /**
  31. </span> * @cfg {Number} count
  32. * The number of records in this ResultSet. Note that total may differ from this number.
  33. */
  34. count: 0,
  35. <span id='Ext-data-ResultSet-cfg-total'> /**
  36. </span> * @cfg {Number} total
  37. * The total number of records reported by the data source. This ResultSet may form a subset of
  38. * those records (see {@link #count}).
  39. */
  40. total: 0,
  41. <span id='Ext-data-ResultSet-cfg-success'> /**
  42. </span> * @cfg {Boolean} success
  43. * True if the ResultSet loaded successfully, false if any errors were encountered.
  44. */
  45. success: false,
  46. <span id='Ext-data-ResultSet-cfg-records'> /**
  47. </span> * @cfg {Ext.data.Model[]} records (required)
  48. * The array of record instances.
  49. */
  50. <span id='Ext-data-ResultSet-method-constructor'> /**
  51. </span> * Creates the resultSet
  52. * @param {Object} [config] Config object.
  53. */
  54. constructor: function(config) {
  55. Ext.apply(this, config);
  56. <span id='Ext-data-ResultSet-property-totalRecords'> /**
  57. </span> * @property {Number} totalRecords
  58. * Copy of this.total.
  59. * @deprecated Will be removed in Ext JS 5.0. Use {@link #total} instead.
  60. */
  61. this.totalRecords = this.total;
  62. if (config.count === undefined) {
  63. this.count = this.records.length;
  64. }
  65. }
  66. });</pre>
  67. </body>
  68. </html>