a:10:{s:9:"#provides";s:25:"dojox.data.WikipediaStore";s:9:"#resource";s:22:"data/WikipediaStore.js";s:9:"#requires";a:3:{i:0;a:3:{i:0;s:6:"common";i:1;s:14:"dojo.io.script";i:2;s:4:"dojo";}i:1;a:2:{i:0;s:6:"common";i:1;s:17:"dojox.rpc.Service";}i:2;a:2:{i:0;s:6:"common";i:1;s:23:"dojox.data.ServiceStore";}}s:25:"dojox.data.WikipediaStore";a:8:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:23:"dojox.data.ServiceStore";}s:4:"call";a:1:{i:0;s:23:"dojox.data.ServiceStore";}}s:7:"summary";s:51:"Initializer for the Wikipedia data store interface.";s:11:"description";s:275:"The WikipediaStore is a data store interface to Wikipedia, using the Wikipedia SMD spec from dojox.rpc. It currently is useful only for finding articles that contain some particular text or grabbing single articles by full name; no wildcards or other filtering are supported.";s:8:"examples";a:1:{i:0;s:182:" var store = new dojox.data.WikipediaStore(); store.fetch({ query: {title:"Dojo Toolkit"}, onItem: function(item){ dojo.byId("somediv").innerHTML = item.text["*"]; } });";}s:10:"parameters";a:1:{s:7:"options";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:257:" if(options && options.service){ this.service = options.service; }else{ var svc = new dojox.rpc.Service(dojo.moduleUrl("dojox.rpc.SMDLibrary", "wikipedia.smd")); this.service = svc.query; } this.idAttribute = this.labelAttribute = "title";";s:9:"classlike";b:1;}s:31:"dojox.data.WikipediaStore.fetch";a:6:{s:9:"prototype";s:25:"dojox.data.WikipediaStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"request";a:1:{s:4:"type";s:6:"object";}}s:6:"source";s:585:" var rq = dojo.mixin({}, request.query); if(rq && (!rq.action || rq.action === "parse")){ // default to a single page fetch rq.action = "parse"; rq.page = rq.title; delete rq.title; }else if(rq.action === "query"){ // perform a full text search on page content rq.list = "search"; rq.srwhat = "text"; rq.srsearch = rq.text; if(request.start){ rq.sroffset = request.start-1; } if(request.count){ rq.srlimit = request.count >= 500 ? 500 : request.count; } delete rq.text; } request.query = rq; return this.inherited(arguments);";s:7:"summary";s:173:"Fetch a page or some partially-loaded search results from Wikipedia. Note that there isn't a way to sort data coming in from the API, so we just ignore the *sort* parameter.";s:8:"examples";a:3:{i:0;s:100:"Loading a page: store.fetch({ query: {title:"Dojo Toolkit"}, // define your handlers here });";i:1;s:142:"Searching for pages containing "dojo": store.fetch({ query: { action: "query", text: "dojo" }, // define your handlers here });";i:2;s:222:"Searching for the next 50 pages containing "dojo": store.fetch({ query: { action: "query", text: "dojo", start: 10, count: 50 // max 500; will be capped if necessary }, // define your handlers here });";}}s:41:"dojox.data.WikipediaStore._processResults";a:6:{s:9:"prototype";s:25:"dojox.data.WikipediaStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"results";a:1:{s:4:"type";s:0:"";}s:3:"def";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:646:" if(results.parse){ // loading a complete page results.parse.title = dojo.queryToObject(def.ioArgs.url.split("?")[1]).page; results = [results.parse]; }else if(results.query && results.query.search){ // loading some search results; all we have here is page titles, // so we mark our items as incomplete results = results.query.search; var _thisStore = this; for(var i in results){ results[i]._loadObject = function(callback){ _thisStore.fetch({ query: { action:"parse", title:this.title }, onItem: callback }); delete this._loadObject; } } } return this.inherited(arguments);";s:7:"private";b:1;s:7:"summary";s:0:"";}s:33:"dojox.data.WikipediaStore.service";a:2:{s:8:"instance";s:25:"dojox.data.WikipediaStore";s:7:"summary";s:0:"";}s:37:"dojox.data.WikipediaStore.idAttribute";a:2:{s:8:"instance";s:25:"dojox.data.WikipediaStore";s:7:"summary";s:0:"";}s:10:"dojox.data";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:5:"dojox";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}}