Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / data / proxy / Client.js
1 /**
2  * @author Ed Spencer
3  * @class Ext.data.proxy.Client
4  * @extends Ext.data.proxy.Proxy
5  * 
6  * <p>Base class for any client-side storage. Used as a superclass for {@link Ext.data.proxy.Memory Memory} and 
7  * {@link Ext.data.proxy.WebStorage Web Storage} proxies. Do not use directly, use one of the subclasses instead.</p>
8  */
9 Ext.define('Ext.data.proxy.Client', {
10     extend: 'Ext.data.proxy.Proxy',
11     alternateClassName: 'Ext.data.ClientProxy',
12     
13     /**
14      * Abstract function that must be implemented by each ClientProxy subclass. This should purge all record data
15      * from the client side storage, as well as removing any supporting data (such as lists of record IDs)
16      */
17     clear: function() {
18         //<debug>
19         Ext.Error.raise("The Ext.data.proxy.Client subclass that you are using has not defined a 'clear' function. See src/data/ClientProxy.js for details.");
20         //</debug>
21     }
22 });