Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / source / Operation.html
index d2492cf..873b82c 100644 (file)
@@ -1,4 +1,21 @@
-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-data.Operation-method-constructor'><span id='Ext-data.Operation'>/**
+<!DOCTYPE html>
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>The source code</title>
+  <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+  <script type="text/javascript" src="../prettify/prettify.js"></script>
+  <style type="text/css">
+    .highlight { display: block; background-color: #ddd; }
+  </style>
+  <script type="text/javascript">
+    function highlight() {
+      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+    }
+  </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+  <pre class="prettyprint lang-js"><span id='Ext-data-Operation-method-constructor'><span id='Ext-data-Operation'>/**
 </span></span> * @author Ed Spencer
  * @class Ext.data.Operation
  * @extends Object
  * @param {Object} config Optional config object
  */
 Ext.define('Ext.data.Operation', {
-<span id='Ext-data.Operation-cfg-synchronous'>    /**
+<span id='Ext-data-Operation-cfg-synchronous'>    /**
 </span>     * @cfg {Boolean} synchronous True if this Operation is to be executed synchronously (defaults to true). This
      * property is inspected by a {@link Ext.data.Batch Batch} to see if a series of Operations can be executed in
      * parallel or not.
      */
     synchronous: true,
     
-<span id='Ext-data.Operation-cfg-action'>    /**
+<span id='Ext-data-Operation-cfg-action'>    /**
 </span>     * @cfg {String} action The action being performed by this Operation. Should be one of 'create', 'read', 'update' or 'destroy'
      */
     action: undefined,
     
-<span id='Ext-data.Operation-cfg-filters'>    /**
+<span id='Ext-data-Operation-cfg-filters'>    /**
 </span>     * @cfg {Array} filters Optional array of filter objects. Only applies to 'read' actions.
      */
     filters: undefined,
     
-<span id='Ext-data.Operation-cfg-sorters'>    /**
+<span id='Ext-data-Operation-cfg-sorters'>    /**
 </span>     * @cfg {Array} sorters Optional array of sorter objects. Only applies to 'read' actions.
      */
     sorters: undefined,
     
-<span id='Ext-data.Operation-cfg-group'>    /**
+<span id='Ext-data-Operation-cfg-group'>    /**
 </span>     * @cfg {Object} group Optional grouping configuration. Only applies to 'read' actions where grouping is desired.
      */
     group: undefined,
     
-<span id='Ext-data.Operation-cfg-start'>    /**
+<span id='Ext-data-Operation-cfg-start'>    /**
 </span>     * @cfg {Number} start The start index (offset), used in paging when running a 'read' action.
      */
     start: undefined,
     
-<span id='Ext-data.Operation-cfg-limit'>    /**
+<span id='Ext-data-Operation-cfg-limit'>    /**
 </span>     * @cfg {Number} limit The number of records to load. Used on 'read' actions when paging is being used.
      */
     limit: undefined,
     
-<span id='Ext-data.Operation-cfg-batch'>    /**
+<span id='Ext-data-Operation-cfg-batch'>    /**
 </span>     * @cfg {Ext.data.Batch} batch The batch that this Operation is a part of (optional)
      */
     batch: undefined,
         
-<span id='Ext-data.Operation-property-started'>    /**
+<span id='Ext-data-Operation-property-started'>    /**
 </span>     * Read-only property tracking the start status of this Operation. Use {@link #isStarted}.
      * @property started
      * @type Boolean
@@ -63,7 +80,7 @@ Ext.define('Ext.data.Operation', {
      */
     started: false,
     
-<span id='Ext-data.Operation-property-running'>    /**
+<span id='Ext-data-Operation-property-running'>    /**
 </span>     * Read-only property tracking the run status of this Operation. Use {@link #isRunning}.
      * @property running
      * @type Boolean
@@ -71,7 +88,7 @@ Ext.define('Ext.data.Operation', {
      */
     running: false,
     
-<span id='Ext-data.Operation-property-complete'>    /**
+<span id='Ext-data-Operation-property-complete'>    /**
 </span>     * Read-only property tracking the completion status of this Operation. Use {@link #isComplete}.
      * @property complete
      * @type Boolean
@@ -79,7 +96,7 @@ Ext.define('Ext.data.Operation', {
      */
     complete: false,
     
-<span id='Ext-data.Operation-property-success'>    /**
+<span id='Ext-data-Operation-property-success'>    /**
 </span>     * Read-only property tracking whether the Operation was successful or not. This starts as undefined and is set to true
      * or false by the Proxy that is executing the Operation. It is also set to false by {@link #setException}. Use
      * {@link #wasSuccessful} to query success status.
@@ -89,7 +106,7 @@ Ext.define('Ext.data.Operation', {
      */
     success: undefined,
     
-<span id='Ext-data.Operation-property-exception'>    /**
+<span id='Ext-data-Operation-property-exception'>    /**
 </span>     * Read-only property tracking the exception status of this Operation. Use {@link #hasException} and see {@link #getError}.
      * @property exception
      * @type Boolean
@@ -97,7 +114,7 @@ Ext.define('Ext.data.Operation', {
      */
     exception: false,
     
-<span id='Ext-data.Operation-property-error'>    /**
+<span id='Ext-data-Operation-property-error'>    /**
 </span>     * The error object passed when {@link #setException} was called. This could be any object or primitive.
      * @property error
      * @type Mixed
@@ -109,7 +126,7 @@ Ext.define('Ext.data.Operation', {
         Ext.apply(this, config || {});
     },
     
-<span id='Ext-data.Operation-method-setStarted'>    /**
+<span id='Ext-data-Operation-method-setStarted'>    /**
 </span>     * Marks the Operation as started
      */
     setStarted: function() {
@@ -117,7 +134,7 @@ Ext.define('Ext.data.Operation', {
         this.running = true;
     },
     
-<span id='Ext-data.Operation-method-setCompleted'>    /**
+<span id='Ext-data-Operation-method-setCompleted'>    /**
 </span>     * Marks the Operation as completed
      */
     setCompleted: function() {
@@ -125,14 +142,14 @@ Ext.define('Ext.data.Operation', {
         this.running  = false;
     },
     
-<span id='Ext-data.Operation-method-setSuccessful'>    /**
+<span id='Ext-data-Operation-method-setSuccessful'>    /**
 </span>     * Marks the Operation as successful
      */
     setSuccessful: function() {
         this.success = true;
     },
     
-<span id='Ext-data.Operation-method-setException'>    /**
+<span id='Ext-data-Operation-method-setException'>    /**
 </span>     * Marks the Operation as having experienced an exception. Can be supplied with an option error message/object.
      * @param {Mixed} error Optional error string/object
      */
@@ -143,7 +160,7 @@ Ext.define('Ext.data.Operation', {
         this.error = error;
     },
     
-<span id='Ext-data.Operation-method-hasException'>    /**
+<span id='Ext-data-Operation-method-hasException'>    /**
 </span>     * Returns true if this Operation encountered an exception (see also {@link #getError})
      * @return {Boolean} True if there was an exception
      */
@@ -151,7 +168,7 @@ Ext.define('Ext.data.Operation', {
         return this.exception === true;
     },
     
-<span id='Ext-data.Operation-method-getError'>    /**
+<span id='Ext-data-Operation-method-getError'>    /**
 </span>     * Returns the error string or object that was set using {@link #setException}
      * @return {Mixed} The error object
      */
@@ -159,7 +176,7 @@ Ext.define('Ext.data.Operation', {
         return this.error;
     },
     
-<span id='Ext-data.Operation-method-getRecords'>    /**
+<span id='Ext-data-Operation-method-getRecords'>    /**
 </span>     * Returns an array of Ext.data.Model instances as set by the Proxy.
      * @return {Array} Any loaded Records
      */
@@ -169,7 +186,7 @@ Ext.define('Ext.data.Operation', {
         return (resultSet === undefined ? this.records : resultSet.records);
     },
     
-<span id='Ext-data.Operation-method-getResultSet'>    /**
+<span id='Ext-data-Operation-method-getResultSet'>    /**
 </span>     * Returns the ResultSet object (if set by the Proxy). This object will contain the {@link Ext.data.Model model} instances
      * as well as meta data such as number of instances fetched, number available etc
      * @return {Ext.data.ResultSet} The ResultSet object
@@ -178,7 +195,7 @@ Ext.define('Ext.data.Operation', {
         return this.resultSet;
     },
     
-<span id='Ext-data.Operation-method-isStarted'>    /**
+<span id='Ext-data-Operation-method-isStarted'>    /**
 </span>     * Returns true if the Operation has been started. Note that the Operation may have started AND completed,
      * see {@link #isRunning} to test if the Operation is currently running.
      * @return {Boolean} True if the Operation has started
@@ -187,7 +204,7 @@ Ext.define('Ext.data.Operation', {
         return this.started === true;
     },
     
-<span id='Ext-data.Operation-method-isRunning'>    /**
+<span id='Ext-data-Operation-method-isRunning'>    /**
 </span>     * Returns true if the Operation has been started but has not yet completed.
      * @return {Boolean} True if the Operation is currently running
      */
@@ -195,7 +212,7 @@ Ext.define('Ext.data.Operation', {
         return this.running === true;
     },
     
-<span id='Ext-data.Operation-method-isComplete'>    /**
+<span id='Ext-data-Operation-method-isComplete'>    /**
 </span>     * Returns true if the Operation has been completed
      * @return {Boolean} True if the Operation is complete
      */
@@ -203,7 +220,7 @@ Ext.define('Ext.data.Operation', {
         return this.complete === true;
     },
     
-<span id='Ext-data.Operation-method-wasSuccessful'>    /**
+<span id='Ext-data-Operation-method-wasSuccessful'>    /**
 </span>     * Returns true if the Operation has completed and was successful
      * @return {Boolean} True if successful
      */
@@ -211,7 +228,7 @@ Ext.define('Ext.data.Operation', {
         return this.isComplete() &amp;&amp; this.success === true;
     },
     
-<span id='Ext-data.Operation-method-setBatch'>    /**
+<span id='Ext-data-Operation-method-setBatch'>    /**
 </span>     * @private
      * Associates this Operation with a Batch
      * @param {Ext.data.Batch} batch The batch
@@ -220,11 +237,13 @@ Ext.define('Ext.data.Operation', {
         this.batch = batch;
     },
     
-<span id='Ext-data.Operation-method-allowWrite'>    /**
+<span id='Ext-data-Operation-method-allowWrite'>    /**
 </span>     * Checks whether this operation should cause writing to occur.
      * @return {Boolean} Whether the operation should cause a write to occur.
      */
     allowWrite: function() {
         return this.action != 'read';
     }
-});</pre></pre></body></html>
\ No newline at end of file
+});</pre>
+</body>
+</html>