X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/src/data/proxy/Client.js diff --git a/src/data/proxy/Client.js b/src/data/proxy/Client.js new file mode 100644 index 00000000..2a74005a --- /dev/null +++ b/src/data/proxy/Client.js @@ -0,0 +1,22 @@ +/** + * @author Ed Spencer + * @class Ext.data.proxy.Client + * @extends Ext.data.proxy.Proxy + * + *

Base class for any client-side storage. Used as a superclass for {@link Ext.data.proxy.Memory Memory} and + * {@link Ext.data.proxy.WebStorage Web Storage} proxies. Do not use directly, use one of the subclasses instead.

+ */ +Ext.define('Ext.data.proxy.Client', { + extend: 'Ext.data.proxy.Proxy', + alternateClassName: 'Ext.data.ClientProxy', + + /** + * Abstract function that must be implemented by each ClientProxy subclass. This should purge all record data + * from the client side storage, as well as removing any supporting data (such as lists of record IDs) + */ + clear: function() { + // + 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."); + // + } +}); \ No newline at end of file