1 Ext.data.JsonP.Ext_data_SortTypes({
6 "docauthor": "Evan Trimboli <evan@sencha.com>",
17 "href": "Base3.html#Ext-Base-method-addStatics",
18 "shortDoc": "Add / override static properties of this class. ...",
20 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
32 "doc": "<p>Add / override static properties of this class.</p>\n\n<pre><code>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</code></pre>\n",
36 "doc": "<p>this</p>\n"
38 "html_filename": "Base3.html"
45 "href": "SortTypes.html#Ext-data-SortTypes-method-asDate",
46 "shortDoc": "Date sorting ...",
48 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
54 "doc": "<p>The value being converted</p>\n",
59 "owner": "Ext.data.SortTypes",
60 "doc": "<p>Date sorting</p>\n",
64 "doc": "<p>The comparison value</p>\n"
66 "html_filename": "SortTypes.html"
73 "href": "SortTypes.html#Ext-data-SortTypes-method-asFloat",
74 "shortDoc": "Float sorting ...",
76 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
82 "doc": "<p>The value being converted</p>\n",
87 "owner": "Ext.data.SortTypes",
88 "doc": "<p>Float sorting</p>\n",
92 "doc": "<p>The comparison value</p>\n"
94 "html_filename": "SortTypes.html"
101 "href": "SortTypes.html#Ext-data-SortTypes-method-asInt",
102 "shortDoc": "Integer sorting ...",
104 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
110 "doc": "<p>The value being converted</p>\n",
115 "owner": "Ext.data.SortTypes",
116 "doc": "<p>Integer sorting</p>\n",
120 "doc": "<p>The comparison value</p>\n"
122 "html_filename": "SortTypes.html"
129 "href": "SortTypes.html#Ext-data-SortTypes-method-asText",
130 "shortDoc": "Strips all HTML tags to sort on text only ...",
132 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
138 "doc": "<p>The value being converted</p>\n",
143 "owner": "Ext.data.SortTypes",
144 "doc": "<p>Strips all HTML tags to sort on text only</p>\n",
148 "doc": "<p>The comparison value</p>\n"
150 "html_filename": "SortTypes.html"
157 "href": "SortTypes.html#Ext-data-SortTypes-method-asUCString",
158 "shortDoc": "Case insensitive string ...",
160 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
166 "doc": "<p>The value being converted</p>\n",
170 "name": "asUCString",
171 "owner": "Ext.data.SortTypes",
172 "doc": "<p>Case insensitive string</p>\n",
176 "doc": "<p>The comparison value</p>\n"
178 "html_filename": "SortTypes.html"
185 "href": "SortTypes.html#Ext-data-SortTypes-method-asUCText",
186 "shortDoc": "Strips all HTML tags to sort on text only - Case insensitive ...",
188 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
194 "doc": "<p>The value being converted</p>\n",
199 "owner": "Ext.data.SortTypes",
200 "doc": "<p>Strips all HTML tags to sort on text only - Case insensitive</p>\n",
204 "doc": "<p>The comparison value</p>\n"
206 "html_filename": "SortTypes.html"
213 "href": "Base3.html#Ext-Base-method-callOverridden",
214 "shortDoc": "Call the original method that was previously overridden with Ext.Base.override\n\nExt.define('My.Cat', {\n constructo...",
216 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
220 "type": "Array/Arguments",
222 "doc": "<p>The arguments, either an array or the <code>arguments</code> object</p>\n",
226 "name": "callOverridden",
228 "doc": "<p>Call the original method that was previously overridden with <a href=\"#/api/Ext.Base-method-override\" rel=\"Ext.Base-method-override\" class=\"docClass\">Ext.Base.override</a></p>\n\n<pre><code>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</code></pre>\n",
232 "doc": "<p>Returns the result after calling the overridden method</p>\n"
234 "html_filename": "Base3.html"
241 "href": "Base3.html#Ext-Base-method-callParent",
242 "shortDoc": "Call the parent's overridden method. ...",
244 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
248 "type": "Array/Arguments",
250 "doc": "<p>The arguments, either an array or the <code>arguments</code> object\nfrom the current method, for example: <code>this.callParent(arguments)</code></p>\n",
254 "name": "callParent",
256 "doc": "<p>Call the parent's overridden method. For example:</p>\n\n<pre><code>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</code></pre>\n",
260 "doc": "<p>Returns the result from the superclass' method</p>\n"
262 "html_filename": "Base3.html"
269 "href": "Base3.html#Ext-Base-method-create",
270 "shortDoc": "Create a new instance of this Class. ...",
272 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
279 "doc": "<p>Create a new instance of this Class.</p>\n\n<pre><code>Ext.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n</code></pre>\n\n<p>All parameters are passed to the constructor of the class.</p>\n",
283 "doc": "<p>the created instance.</p>\n"
285 "html_filename": "Base3.html"
292 "href": "Base3.html#Ext-Base-method-createAlias",
293 "shortDoc": "Create aliases for existing prototype methods. ...",
295 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
299 "type": "String/Object",
301 "doc": "<p>The new method name, or an object to set multiple aliases. See\n<a href=\"#/api/Ext.Function-method-flexSetter\" rel=\"Ext.Function-method-flexSetter\" class=\"docClass\">flexSetter</a></p>\n",
305 "type": "String/Object",
307 "doc": "<p>The original method name</p>\n",
311 "name": "createAlias",
313 "doc": "<p>Create aliases for existing prototype methods. Example:</p>\n\n<pre><code>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</code></pre>\n",
319 "html_filename": "Base3.html"
326 "href": "Base3.html#Ext-Base-method-getName",
327 "shortDoc": "Get the current class' name in string format. ...",
329 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
336 "doc": "<p>Get the current class' name in string format.</p>\n\n<pre><code>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</code></pre>\n",
340 "doc": "<p>className</p>\n"
342 "html_filename": "Base3.html"
349 "href": "Base3.html#Ext-Base-method-implement",
350 "shortDoc": "Add methods / properties to the prototype of this class. ...",
352 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
364 "doc": "<p>Add methods / properties to the prototype of this class.</p>\n\n<pre><code>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</code></pre>\n",
370 "html_filename": "Base3.html"
377 "href": "Base3.html#Ext-Base-method-initConfig",
378 "shortDoc": "Initialize configuration for this class. ...",
380 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
390 "name": "initConfig",
392 "doc": "<p>Initialize configuration for this class. a typical example:</p>\n\n<pre><code>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</code></pre>\n",
396 "doc": "<p>mixins The mixin prototypes as key - value pairs</p>\n"
398 "html_filename": "Base3.html"
405 "href": "SortTypes.html#Ext-data-SortTypes-method-none",
406 "shortDoc": "Default sort that does nothing ...",
408 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
414 "doc": "<p>The value being converted</p>\n",
419 "owner": "Ext.data.SortTypes",
420 "doc": "<p>Default sort that does nothing</p>\n",
424 "doc": "<p>The comparison value</p>\n"
426 "html_filename": "SortTypes.html"
433 "href": "Base3.html#Ext-Base-method-override",
434 "shortDoc": "Override prototype members of this class. ...",
436 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
448 "doc": "<p>Override prototype members of this class. Overridden methods can be invoked via\n<a href=\"#/api/Ext.Base-method-callOverridden\" rel=\"Ext.Base-method-callOverridden\" class=\"docClass\">Ext.Base.callOverridden</a></p>\n\n<pre><code>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</code></pre>\n",
452 "doc": "<p>this</p>\n"
454 "html_filename": "Base3.html"
461 "href": "Base3.html#Ext-Base-method-statics",
462 "shortDoc": "Get the reference to the class from which this object was instantiated. ...",
464 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
471 "doc": "<p>Get the reference to the class from which this object was instantiated. Note that unlike <a href=\"#/api/Ext.Base-property-self\" rel=\"Ext.Base-property-self\" class=\"docClass\">Ext.Base.self</a>,\n<code>this.statics()</code> is scope-independent and it always returns the class from which it was called, regardless of what\n<code>this</code> points to during run-time</p>\n\n<pre><code>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</code></pre>\n",
477 "html_filename": "Base3.html"
486 "tagname": "property",
487 "href": "Base3.html#Ext-Base-property-self",
488 "shortDoc": "Get the reference to the current class from which this object was instantiated. ...",
490 "filename": "/mnt/ebs/nightly/git/SDK/platform/core/src/class/Base.js",
494 "doc": "<p>Get the reference to the current class from which this object was instantiated. Unlike <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>,\n<code>this.self</code> is scope-dependent and it's meant to be used for dynamic inheritance. See <a href=\"#/api/Ext.Base-method-statics\" rel=\"Ext.Base-method-statics\" class=\"docClass\">Ext.Base.statics</a>\nfor a detailed comparison</p>\n\n<pre><code>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</code></pre>\n",
496 "html_filename": "Base3.html"
503 "tagname": "property",
504 "href": "SortTypes.html#Ext-data-SortTypes-property-stripTagsRE",
506 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
508 "name": "stripTagsRE",
509 "owner": "Ext.data.SortTypes",
510 "doc": "<p>The regular expression used to strip tags</p>\n",
512 "html_filename": "SortTypes.html"
535 "href": "SortTypes.html#Ext-data-SortTypes",
542 "filename": "/mnt/ebs/nightly/git/SDK/platform/src/data/SortTypes.js",
544 "alternateClassNames": [
547 "name": "Ext.data.SortTypes",
548 "doc": "<p>This class defines a series of static methods that are used on a\n<a href=\"#/api/Ext.data.Field\" rel=\"Ext.data.Field\" class=\"docClass\">Ext.data.Field</a> for performing sorting. The methods cast the\nunderlying values into a data type that is appropriate for sorting on\nthat particular field. If a <a href=\"#/api/Ext.data.Field-cfg-type\" rel=\"Ext.data.Field-cfg-type\" class=\"docClass\">Ext.data.Field.type</a> is specified,\nthe sortType will be set to a sane default if the sortType is not\nexplicitly defined on the field. The sortType will make any necessary\nmodifications to the value and return it.</p>\n\n<ul>\n<li><b>asText</b> - Removes any tags and converts the value to a string</li>\n<li><b>asUCText</b> - Removes any tags and converts the value to an uppercase string</li>\n<li><b>asUCText</b> - Converts the value to an uppercase string</li>\n<li><b>asDate</b> - Converts the value into Unix epoch time</li>\n<li><b>asFloat</b> - Converts the value to a floating point number</li>\n<li><b>asInt</b> - Converts the value to an integer number</li>\n</ul>\n\n\n<p>\nIt is also possible to create a custom sortType that can be used throughout\nan application.\n<pre><code>Ext.apply(Ext.data.SortTypes, {\n asPerson: function(person){\n // expects an object with a first and last name property\n return person.lastName.toUpperCase() + person.firstName.toLowerCase();\n } \n});\n\nExt.define('Employee', {\n extend: 'Ext.data.Model',\n fields: [{\n name: 'person',\n sortType: 'asPerson'\n }, {\n name: 'salary',\n type: 'float' // sortType set to asFloat\n }]\n});\n</code></pre>\n</p>\n\n",
556 "html_filename": "SortTypes.html",
557 "extends": "Ext.Base"