X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/docs/output/Ext.data.Operation.js diff --git a/docs/output/Ext.data.Operation.js b/docs/output/Ext.data.Operation.js index 5cb7de74..8742b35e 100644 --- a/docs/output/Ext.data.Operation.js +++ b/docs/output/Ext.data.Operation.js @@ -1,524 +1 @@ -Ext.data.JsonP.Ext_data_Operation({ - "allMixins": [ - - ], - "deprecated": null, - "docauthor": null, - "members": { - "cfg": [ - { - "type": "String", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "cfg", - "href": "Operation.html#Ext-data-Operation-cfg-action", - "shortDoc": "The action being performed by this Operation. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "name": "action", - "owner": "Ext.data.Operation", - "doc": "

The action being performed by this Operation. Should be one of 'create', 'read', 'update' or 'destroy'

\n", - "linenr": 21, - "html_filename": "Operation.html" - }, - { - "type": "Ext.data.Batch", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "cfg", - "href": "Operation.html#Ext-data-Operation-cfg-batch", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "name": "batch", - "owner": "Ext.data.Operation", - "doc": "

The batch that this Operation is a part of (optional)

\n", - "linenr": 51, - "html_filename": "Operation.html" - }, - { - "type": "Array", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "cfg", - "href": "Operation.html#Ext-data-Operation-cfg-filters", - "shortDoc": "Optional array of filter objects. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "name": "filters", - "owner": "Ext.data.Operation", - "doc": "

Optional array of filter objects. Only applies to 'read' actions.

\n", - "linenr": 26, - "html_filename": "Operation.html" - }, - { - "type": "Object", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "cfg", - "href": "Operation.html#Ext-data-Operation-cfg-group", - "shortDoc": "Optional grouping configuration. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "name": "group", - "owner": "Ext.data.Operation", - "doc": "

Optional grouping configuration. Only applies to 'read' actions where grouping is desired.

\n", - "linenr": 36, - "html_filename": "Operation.html" - }, - { - "type": "Number", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "cfg", - "href": "Operation.html#Ext-data-Operation-cfg-limit", - "shortDoc": "The number of records to load. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "name": "limit", - "owner": "Ext.data.Operation", - "doc": "

The number of records to load. Used on 'read' actions when paging is being used.

\n", - "linenr": 46, - "html_filename": "Operation.html" - }, - { - "type": "Array", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "cfg", - "href": "Operation.html#Ext-data-Operation-cfg-sorters", - "shortDoc": "Optional array of sorter objects. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "name": "sorters", - "owner": "Ext.data.Operation", - "doc": "

Optional array of sorter objects. Only applies to 'read' actions.

\n", - "linenr": 31, - "html_filename": "Operation.html" - }, - { - "type": "Number", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "cfg", - "href": "Operation.html#Ext-data-Operation-cfg-start", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "name": "start", - "owner": "Ext.data.Operation", - "doc": "

The start index (offset), used in paging when running a 'read' action.

\n", - "linenr": 41, - "html_filename": "Operation.html" - }, - { - "type": "Boolean", - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "cfg", - "href": "Operation.html#Ext-data-Operation-cfg-synchronous", - "shortDoc": "True if this Operation is to be executed synchronously (defaults to true). ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "name": "synchronous", - "owner": "Ext.data.Operation", - "doc": "

True if this Operation is to be executed synchronously (defaults to true). This\nproperty is inspected by a Batch to see if a series of Operations can be executed in\nparallel or not.

\n", - "linenr": 14, - "html_filename": "Operation.html" - } - ], - "method": [ - { - "deprecated": null, - "alias": null, - "href": "Operation.html#Ext-data-Operation-method-constructor", - "tagname": "method", - "protected": false, - "shortDoc": "Creates new Operation object. ...", - "static": false, - "params": [ - { - "type": "Object", - "optional": true, - "doc": "

(optional) Config object.

\n", - "name": "config" - } - ], - "private": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "doc": "

Creates new Operation object.

\n", - "owner": "Ext.data.Operation", - "name": "Operation", - "html_filename": "Operation.html", - "return": { - "type": "Object", - "doc": "\n" - }, - "linenr": 106 - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-allowWrite", - "shortDoc": "Checks whether this operation should cause writing to occur. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "allowWrite", - "owner": "Ext.data.Operation", - "doc": "

Checks whether this operation should cause writing to occur.

\n", - "linenr": 225, - "return": { - "type": "Boolean", - "doc": "

Whether the operation should cause a write to occur.

\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-getError", - "shortDoc": "Returns the error string or object that was set using setException ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "getError", - "owner": "Ext.data.Operation", - "doc": "

Returns the error string or object that was set using setException

\n", - "linenr": 156, - "return": { - "type": "Mixed", - "doc": "

The error object

\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-getRecords", - "shortDoc": "Returns an array of Ext.data.Model instances as set by the Proxy. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "getRecords", - "owner": "Ext.data.Operation", - "doc": "

Returns an array of Ext.data.Model instances as set by the Proxy.

\n", - "linenr": 164, - "return": { - "type": "Array", - "doc": "

Any loaded Records

\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-getResultSet", - "shortDoc": "Returns the ResultSet object (if set by the Proxy). ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "getResultSet", - "owner": "Ext.data.Operation", - "doc": "

Returns the ResultSet object (if set by the Proxy). This object will contain the model instances\nas well as meta data such as number of instances fetched, number available etc

\n", - "linenr": 174, - "return": { - "type": "Ext.data.ResultSet", - "doc": "

The ResultSet object

\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-hasException", - "shortDoc": "Returns true if this Operation encountered an exception (see also getError) ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "hasException", - "owner": "Ext.data.Operation", - "doc": "

Returns true if this Operation encountered an exception (see also getError)

\n", - "linenr": 148, - "return": { - "type": "Boolean", - "doc": "

True if there was an exception

\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-isComplete", - "shortDoc": "Returns true if the Operation has been completed ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "isComplete", - "owner": "Ext.data.Operation", - "doc": "

Returns true if the Operation has been completed

\n", - "linenr": 200, - "return": { - "type": "Boolean", - "doc": "

True if the Operation is complete

\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-isRunning", - "shortDoc": "Returns true if the Operation has been started but has not yet completed. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "isRunning", - "owner": "Ext.data.Operation", - "doc": "

Returns true if the Operation has been started but has not yet completed.

\n", - "linenr": 192, - "return": { - "type": "Boolean", - "doc": "

True if the Operation is currently running

\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-isStarted", - "shortDoc": "Returns true if the Operation has been started. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "isStarted", - "owner": "Ext.data.Operation", - "doc": "

Returns true if the Operation has been started. Note that the Operation may have started AND completed,\nsee isRunning to test if the Operation is currently running.

\n", - "linenr": 183, - "return": { - "type": "Boolean", - "doc": "

True if the Operation has started

\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-setCompleted", - "shortDoc": "Marks the Operation as completed ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "setCompleted", - "owner": "Ext.data.Operation", - "doc": "

Marks the Operation as completed

\n", - "linenr": 122, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-setException", - "shortDoc": "Marks the Operation as having experienced an exception. ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - { - "type": "Mixed", - "optional": false, - "doc": "

Optional error string/object

\n", - "name": "error" - } - ], - "name": "setException", - "owner": "Ext.data.Operation", - "doc": "

Marks the Operation as having experienced an exception. Can be supplied with an option error message/object.

\n", - "linenr": 137, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-setStarted", - "shortDoc": "Marks the Operation as started ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "setStarted", - "owner": "Ext.data.Operation", - "doc": "

Marks the Operation as started

\n", - "linenr": 114, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-setSuccessful", - "shortDoc": "Marks the Operation as successful ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "setSuccessful", - "owner": "Ext.data.Operation", - "doc": "

Marks the Operation as successful

\n", - "linenr": 130, - "return": { - "type": "void", - "doc": "\n" - }, - "html_filename": "Operation.html" - }, - { - "deprecated": null, - "alias": null, - "protected": false, - "tagname": "method", - "href": "Operation.html#Ext-data-Operation-method-wasSuccessful", - "shortDoc": "Returns true if the Operation has completed and was successful ...", - "static": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "params": [ - - ], - "name": "wasSuccessful", - "owner": "Ext.data.Operation", - "doc": "

Returns true if the Operation has completed and was successful

\n", - "linenr": 208, - "return": { - "type": "Boolean", - "doc": "

True if successful

\n" - }, - "html_filename": "Operation.html" - } - ], - "property": [ - - ], - "cssVar": [ - - ], - "cssMixin": [ - - ], - "event": [ - - ] - }, - "singleton": false, - "alias": null, - "superclasses": [ - - ], - "protected": false, - "tagname": "class", - "mixins": [ - - ], - "href": "Operation.html#Ext-data-Operation", - "subclasses": [ - - ], - "static": false, - "author": "Ed Spencer", - "component": false, - "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/Operation.js", - "private": false, - "alternateClassNames": [ - - ], - "name": "Ext.data.Operation", - "doc": "

Represents a single read or write operation performed by a Proxy.\nOperation objects are used to enable communication between Stores and Proxies. Application\ndevelopers should rarely need to interact with Operation objects directly.

\n\n\n\n\n

Several Operations can be batched together in a batch.

\n\n", - "mixedInto": [ - - ], - "linenr": 1, - "xtypes": [ - - ], - "html_filename": "Operation.html", - "extends": "Object" -}); \ No newline at end of file +Ext.data.JsonP.Ext_data_Operation({"tagname":"class","html":"

Hierarchy

Ext.Base
Ext.data.Operation

Files

Represents a single read or write operation performed by a Proxy. Operation objects are\nused to enable communication between Stores and Proxies. Application developers should rarely need to interact with\nOperation objects directly.

\n\n

Several Operations can be batched together in a batch.

\n
Defined By

Config options

The action being performed by this Operation. ...

The action being performed by this Operation. Should be one of 'create', 'read', 'update' or 'destroy'.

\n
The batch that this Operation is a part of. ...

The batch that this Operation is a part of.

\n
Function to execute when operation completed. ...

Function to execute when operation completed. Will be called with the following parameters:

\n\n
    \n
  • records : Array of Ext.data.Model objects.
  • \n
  • operation : The Ext.data.Operation itself.
  • \n
  • success : True when operation completed successfully.
  • \n
\n\n
Optional array of filter objects. ...

Optional array of filter objects. Only applies to 'read' actions.

\n
Optional grouping configuration. ...

Optional grouping configuration. Only applies to 'read' actions where grouping is desired.

\n
The number of records to load. ...

The number of records to load. Used on 'read' actions when paging is being used.

\n
Scope for the callback function. ...

Scope for the callback function.

\n
Optional array of sorter objects. ...

Optional array of sorter objects. Only applies to 'read' actions.

\n
The start index (offset), used in paging when running a 'read' action. ...

The start index (offset), used in paging when running a 'read' action.

\n
True if this Operation is to be executed synchronously. ...

True if this Operation is to be executed synchronously. This property is inspected by a\nBatch to see if a series of Operations can be executed in parallel or not.

\n

Defaults to: true

Defined By

Properties

 

The RegExp used to categorize actions that require record commits.

\n

The RegExp used to categorize actions that require record commits.

\n
The RegExp used to categorize actions that skip local record synchronization. ...

The RegExp used to categorize actions that skip local record synchronization. This defaults\nto match 'destroy'.

\n
Get the reference to the current class from which this object was instantiated. ...

Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison

\n\n
Ext.define('My.Cat', {\n    statics: {\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        alert(this.self.speciesName); / dependent on 'this'\n\n        return this;\n    },\n\n    clone: function() {\n        return new this.self();\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n    statics: {\n        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'\n    }\n});\n\nvar cat = new My.Cat();                     // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'\n
\n

Methods

Defined By

Instance Methods

Creates new Operation object. ...

Creates new Operation object.

\n

Parameters

  • config : Object (optional)

    Config object.

    \n

Returns

Checks whether this operation should cause writing to occur. ...

Checks whether this operation should cause writing to occur.

\n

Returns

  • Boolean

    Whether the operation should cause a write to occur.

    \n
( Array/Arguments args ) : Objectprotected
Call the original method that was previously overridden with override\n\nExt.define('My.Cat', {\n constructor: functi...

Call the original method that was previously overridden with override

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object

    \n

Returns

  • Object

    Returns the result after calling the overridden method

    \n
( Array/Arguments args ) : Objectprotected
Call the parent's overridden method. ...

Call the parent's overridden method. For example:

\n\n
Ext.define('My.own.A', {\n    constructor: function(test) {\n        alert(test);\n    }\n});\n\nExt.define('My.own.B', {\n    extend: 'My.own.A',\n\n    constructor: function(test) {\n        alert(test);\n\n        this.callParent([test + 1]);\n    }\n});\n\nExt.define('My.own.C', {\n    extend: 'My.own.B',\n\n    constructor: function() {\n        alert(\"Going to call parent's overriden constructor...\");\n\n        this.callParent(arguments);\n    }\n});\n\nvar a = new My.own.A(1); // alerts '1'\nvar b = new My.own.B(1); // alerts '1', then alerts '2'\nvar c = new My.own.C(2); // alerts \"Going to call parent's overriden constructor...\"\n                         // alerts '2', then alerts '3'\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callParent(arguments)

    \n

Returns

  • Object

    Returns the result from the superclass' method

    \n
This method is called to commit data to this instance's records given the records in\nthe server response. ...

This method is called to commit data to this instance's records given the records in\nthe server response. This is followed by calling Ext.data.Model.commit on all\nthose records (for 'create' and 'update' actions).

\n\n

If this action is 'destroy', any server records are ignored and the\nExt.data.Model.commit method is not called.

\n

Parameters

Returns the error string or object that was set using setException ...

Returns the error string or object that was set using setException

\n

Returns

Returns an array of Ext.data.Model instances as set by the Proxy. ...

Returns an array of Ext.data.Model instances as set by the Proxy.

\n

Returns

Returns the ResultSet object (if set by the Proxy). ...

Returns the ResultSet object (if set by the Proxy). This object will contain the model\ninstances as well as meta data such as number of instances fetched, number available etc

\n

Returns

Returns true if this Operation encountered an exception (see also getError) ...

Returns true if this Operation encountered an exception (see also getError)

\n

Returns

  • Boolean

    True if there was an exception

    \n
Initialize configuration for this class. ...

Initialize configuration for this class. a typical example:

\n\n
Ext.define('My.awesome.Class', {\n    // The default config\n    config: {\n        name: 'Awesome',\n        isAwesome: true\n    },\n\n    constructor: function(config) {\n        this.initConfig(config);\n\n        return this;\n    }\n});\n\nvar awesome = new My.awesome.Class({\n    name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\n

Parameters

Returns

  • Object

    mixins The mixin prototypes as key - value pairs

    \n
Returns true if the Operation has been completed ...

Returns true if the Operation has been completed

\n

Returns

  • Boolean

    True if the Operation is complete

    \n
Returns true if the Operation has been started but has not yet completed. ...

Returns true if the Operation has been started but has not yet completed.

\n

Returns

  • Boolean

    True if the Operation is currently running

    \n
Returns true if the Operation has been started. ...

Returns true if the Operation has been started. Note that the Operation may have started AND completed, see\nisRunning to test if the Operation is currently running.

\n

Returns

  • Boolean

    True if the Operation has started

    \n
Marks the Operation as completed. ...

Marks the Operation as completed.

\n
Marks the Operation as having experienced an exception. ...

Marks the Operation as having experienced an exception. Can be supplied with an option error message/object.

\n

Parameters

Marks the Operation as started. ...

Marks the Operation as started.

\n
Marks the Operation as successful. ...

Marks the Operation as successful.

\n
Get the reference to the class from which this object was instantiated. ...

Get the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics() is scope-independent and it always returns the class from which it was called, regardless of what\nthis points to during run-time

\n\n
Ext.define('My.Cat', {\n    statics: {\n        totalCreated: 0,\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        var statics = this.statics();\n\n        alert(statics.speciesName);     // always equals to 'Cat' no matter what 'this' refers to\n                                        // equivalent to: My.Cat.speciesName\n\n        alert(this.self.speciesName);   // dependent on 'this'\n\n        statics.totalCreated++;\n\n        return this;\n    },\n\n    clone: function() {\n        var cloned = new this.self;                      // dependent on 'this'\n\n        cloned.groupName = this.statics().speciesName;   // equivalent to: My.Cat.speciesName\n\n        return cloned;\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n\n    statics: {\n        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'\n    },\n\n    constructor: function() {\n        this.callParent();\n    }\n});\n\nvar cat = new My.Cat();                 // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'\nalert(clone.groupName);                 // alerts 'Cat'\n\nalert(My.Cat.totalCreated);             // alerts 3\n
\n

Returns

Returns true if the Operation has completed and was successful ...

Returns true if the Operation has completed and was successful

\n

Returns

Defined By

Static Methods

Add / override static properties of this class. ...

Add / override static properties of this class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics({\n    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'\n    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };\n    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };\n});\n
\n

Parameters

Returns

( Ext.Base fromClass, String/String[] members ) : Ext.Basestatic
Borrow another class' members to the prototype of this class. ...

Borrow another class' members to the prototype of this class.

\n\n
Ext.define('Bank', {\n    money: '$$$',\n    printMoney: function() {\n        alert('$$$$$$$');\n    }\n});\n\nExt.define('Thief', {\n    ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\n

Parameters

  • fromClass : Ext.Base

    The class to borrow members from

    \n
  • members : String/String[]

    The names of the members to borrow

    \n

Returns

Create a new instance of this Class. ...

Create a new instance of this Class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n
\n\n

All parameters are passed to the constructor of the class.

\n

Returns

Create aliases for existing prototype methods. ...

Create aliases for existing prototype methods. Example:

\n\n
Ext.define('My.cool.Class', {\n    method1: function() { ... },\n    method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n    method3: 'method1',\n    method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\n

Parameters

Get the current class' name in string format. ...

Get the current class' name in string format.

\n\n
Ext.define('My.cool.Class', {\n    constructor: function() {\n        alert(this.self.getName()); // alerts 'My.cool.Class'\n    }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\n

Returns

Add methods / properties to the prototype of this class. ...

Add methods / properties to the prototype of this class.

\n\n
Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.implement({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\n

Parameters

Override prototype members of this class. ...

Override prototype members of this class. Overridden methods can be invoked via\ncallOverridden

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n\n        return this;\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        var instance = this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n\n        return instance;\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n

Parameters

Returns

","allMixins":[],"meta":{"author":["Ed Spencer"]},"requires":[],"deprecated":null,"extends":"Ext.Base","inheritable":false,"static":false,"superclasses":["Ext.Base","Ext.data.Operation"],"singleton":false,"code_type":"ext_define","alias":null,"statics":{"property":[],"css_var":[],"css_mixin":[],"cfg":[],"method":[{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"addStatics","id":"static-method-addStatics"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"borrow","id":"static-method-borrow"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"create","id":"static-method-create"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"createAlias","id":"static-method-createAlias"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"getName","id":"static-method-getName"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"implement","id":"static-method-implement"},{"tagname":"method","deprecated":null,"static":true,"owner":"Ext.Base","template":false,"required":null,"protected":false,"name":"override","id":"static-method-override"}],"event":[]},"subclasses":[],"uses":[],"protected":false,"mixins":[],"members":{"property":[{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":null,"protected":false,"name":"actionCommitRecordsRe","id":"property-actionCommitRecordsRe"},{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":null,"protected":false,"name":"actionSkipSyncRe","id":"property-actionSkipSyncRe"},{"tagname":"property","deprecated":null,"static":false,"owner":"Ext.Base","template":null,"required":null,"protected":true,"name":"self","id":"property-self"}],"css_var":[],"css_mixin":[],"cfg":[{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"action","id":"cfg-action"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"batch","id":"cfg-batch"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"callback","id":"cfg-callback"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"filters","id":"cfg-filters"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"group","id":"cfg-group"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"limit","id":"cfg-limit"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"scope","id":"cfg-scope"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"sorters","id":"cfg-sorters"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"start","id":"cfg-start"},{"tagname":"cfg","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":null,"required":false,"protected":false,"name":"synchronous","id":"cfg-synchronous"}],"method":[{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"constructor","id":"method-constructor"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"allowWrite","id":"method-allowWrite"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"callOverridden","id":"method-callOverridden"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"callParent","id":"method-callParent"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"commitRecords","id":"method-commitRecords"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"getError","id":"method-getError"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"getRecords","id":"method-getRecords"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"getResultSet","id":"method-getResultSet"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"hasException","id":"method-hasException"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"initConfig","id":"method-initConfig"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"isComplete","id":"method-isComplete"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"isRunning","id":"method-isRunning"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"isStarted","id":"method-isStarted"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"setCompleted","id":"method-setCompleted"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"setException","id":"method-setException"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"setStarted","id":"method-setStarted"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"setSuccessful","id":"method-setSuccessful"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.Base","template":false,"required":null,"protected":true,"name":"statics","id":"method-statics"},{"tagname":"method","deprecated":null,"static":false,"owner":"Ext.data.Operation","template":false,"required":null,"protected":false,"name":"wasSuccessful","id":"method-wasSuccessful"}],"event":[]},"private":false,"component":false,"name":"Ext.data.Operation","alternateClassNames":[],"id":"class-Ext.data.Operation","mixedInto":[],"xtypes":{},"files":[{"href":"Operation.html#Ext-data-Operation","filename":"Operation.js"}]}); \ No newline at end of file