cacert-testmgr/external/ZendFramework-1.9.5/externals/dojo/dojox/data/JsonQueryRestStore.js
Markus Warg 8398c9048d initially import ZendFramework-1.9.5 into repository
code was modified slightly, so the code differs from the original downloadable 1.9.5 version
2010-03-31 10:12:32 +02:00

15 lines
725 B
JavaScript

dojo.provide("dojox.data.JsonQueryRestStore");
dojo.require("dojox.data.JsonRestStore");
dojo.require("dojox.data.util.JsonQuery");
dojo.requireIf(!!dojox.data.ClientFilter,"dojox.json.query"); // this is so we can perform queries locally
// this is an extension of JsonRestStore to convert object attribute queries to
// JSONQuery/JSONPath syntax to be sent to the server. This also enables
// JSONQuery/JSONPath queries to be performed locally if dojox.data.ClientFilter
// has been loaded
dojo.declare("dojox.data.JsonQueryRestStore",[dojox.data.JsonRestStore,dojox.data.util.JsonQuery],{
matchesQuery: function(item,request){
return item.__id && (item.__id.indexOf("#") == -1) && this.inherited(arguments);
}
});