root / trunk / web / dojo / dojox / storage / Provider.js @ 13
History | View | Annotate | Download (2.3 KB)
1 | 9 | andrej.cim | /*
|
---|---|---|---|
2 | Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
|
||
3 | Available via Academic Free License >= 2.1 OR the modified BSD license.
|
||
4 | see: http://dojotoolkit.org/license for details
|
||
5 | */
|
||
6 | |||
7 | |||
8 | if(!dojo._hasResource["dojox.storage.Provider"]){ |
||
9 | dojo._hasResource["dojox.storage.Provider"]=true; |
||
10 | dojo.provide("dojox.storage.Provider");
|
||
11 | dojo.declare("dojox.storage.Provider",null,{constructor:function(){ |
||
12 | },SUCCESS:"success",FAILED:"failed",PENDING:"pending",SIZE_NOT_AVAILABLE:"Size not available",SIZE_NO_LIMIT:"No size limit",DEFAULT_NAMESPACE:"default",onHideSettingsUI:null,initialize:function(){ |
||
13 | console.warn("dojox.storage.initialize not implemented");
|
||
14 | },isAvailable:function(){ |
||
15 | console.warn("dojox.storage.isAvailable not implemented");
|
||
16 | },put:function(_1,_2,_3,_4){ |
||
17 | console.warn("dojox.storage.put not implemented");
|
||
18 | },get:function(_5,_6){ |
||
19 | console.warn("dojox.storage.get not implemented");
|
||
20 | },hasKey:function(_7,_8){ |
||
21 | return !!this.get(_7,_8); |
||
22 | },getKeys:function(_9){ |
||
23 | console.warn("dojox.storage.getKeys not implemented");
|
||
24 | },clear:function(_a){ |
||
25 | console.warn("dojox.storage.clear not implemented");
|
||
26 | },remove:function(_b,_c){ |
||
27 | console.warn("dojox.storage.remove not implemented");
|
||
28 | },getNamespaces:function(){ |
||
29 | console.warn("dojox.storage.getNamespaces not implemented");
|
||
30 | },isPermanent:function(){ |
||
31 | console.warn("dojox.storage.isPermanent not implemented");
|
||
32 | },getMaximumSize:function(){ |
||
33 | console.warn("dojox.storage.getMaximumSize not implemented");
|
||
34 | },putMultiple:function(_d,_e,_f,_10){ |
||
35 | for(var i=0;i<_d.length;i++){ |
||
36 | dojox.storage.put(_d[i],_e[i],_f,_10); |
||
37 | } |
||
38 | },getMultiple:function(_11,_12){ |
||
39 | var _13=[];
|
||
40 | for(var i=0;i<_11.length;i++){ |
||
41 | _13.push(dojox.storage.get(_11[i],_12)); |
||
42 | } |
||
43 | return _13;
|
||
44 | },removeMultiple:function(_14,_15){ |
||
45 | for(var i=0;i<_14.length;i++){ |
||
46 | dojox.storage.remove(_14[i],_15); |
||
47 | } |
||
48 | },isValidKeyArray:function(_16){ |
||
49 | if(_16===null||_16===undefined||!dojo.isArray(_16)){ |
||
50 | return false; |
||
51 | } |
||
52 | return !dojo.some(_16,function(key){ |
||
53 | return !this.isValidKey(key); |
||
54 | },this);
|
||
55 | },hasSettingsUI:function(){ |
||
56 | return false; |
||
57 | },showSettingsUI:function(){ |
||
58 | console.warn("dojox.storage.showSettingsUI not implemented");
|
||
59 | },hideSettingsUI:function(){ |
||
60 | console.warn("dojox.storage.hideSettingsUI not implemented");
|
||
61 | },isValidKey:function(_17){ |
||
62 | if(_17===null||_17===undefined){ |
||
63 | return false; |
||
64 | } |
||
65 | return /^[0-9A-Za-z_]*$/.test(_17); |
||
66 | },getResourceList:function(){ |
||
67 | return [];
|
||
68 | }}); |
||
69 | } |