Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / source / Client.html
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="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7   <script type="text/javascript" src="../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-proxy-Client'>/**
19 </span> * @author Ed Spencer
20  * @class Ext.data.proxy.Client
21  * @extends Ext.data.proxy.Proxy
22  * 
23  * &lt;p&gt;Base class for any client-side storage. Used as a superclass for {@link Ext.data.proxy.Memory Memory} and 
24  * {@link Ext.data.proxy.WebStorage Web Storage} proxies. Do not use directly, use one of the subclasses instead.&lt;/p&gt;
25  */
26 Ext.define('Ext.data.proxy.Client', {
27     extend: 'Ext.data.proxy.Proxy',
28     alternateClassName: 'Ext.data.ClientProxy',
29     
30 <span id='Ext-data-proxy-Client-method-clear'>    /**
31 </span>     * Abstract function that must be implemented by each ClientProxy subclass. This should purge all record data
32      * from the client side storage, as well as removing any supporting data (such as lists of record IDs)
33      */
34     clear: function() {
35         //&lt;debug&gt;
36         Ext.Error.raise(&quot;The Ext.data.proxy.Client subclass that you are using has not defined a 'clear' function. See src/data/ClientProxy.js for details.&quot;);
37         //&lt;/debug&gt;
38     }
39 });</pre>
40 </body>
41 </html>