a:47:{s:9:"#provides";s:26:"dojox.data.OpenSearchStore";s:9:"#resource";s:23:"data/OpenSearchStore.js";s:9:"#requires";a:3:{i:0;a:3:{i:0;s:6:"common";i:1;s:26:"dojo.data.util.simpleFetch";i:2;s:4:"dojo";}i:1;a:2:{i:0;s:6:"common";i:1;s:19:"dojox.xml.DomParser";}i:2;a:2:{i:0;s:6:"common";i:1;s:16:"dojox.xml.parser";}}s:26:"dojox.data.OpenSearchStore";a:7:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"args";a:1:{s:4:"type";s:6:"Object";}}s:6:"source";s:354:" if(args){ this.label = args.label; this.url = args.url; this.itemPath = args.itemPath; } var def = dojo.xhrGet({ url: this.url, handleAs: "xml", sync: true }); def.addCallback(this, "_processOsdd"); def.addErrback(function() { throw new Error("Unable to load OpenSearch Description document from " . args.url); });";s:7:"summary";s:42:"Initializer for the OpenSearchStore store.";s:11:"description";s:113:"The OpenSearchStore is a Datastore interface to any search engine that implements the open search specifications.";s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:26:"dojo.data.util.simpleFetch";}}s:9:"classlike";b:1;}s:30:"dojox.data.OpenSearchStore.url";a:3:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:8:"instance";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:35:"dojox.data.OpenSearchStore.itemPath";a:3:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:8:"instance";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:36:"dojox.data.OpenSearchStore._storeRef";a:3:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:7:"private";b:1;s:7:"summary";s:0:"";}s:37:"dojox.data.OpenSearchStore.urlElement";a:3:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:8:"instance";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:40:"dojox.data.OpenSearchStore.iframeElement";a:2:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:44:"dojox.data.OpenSearchStore.ATOM_CONTENT_TYPE";a:2:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:51:"dojox.data.OpenSearchStore.ATOM_CONTENT_TYPE_STRING";a:2:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:43:"dojox.data.OpenSearchStore.RSS_CONTENT_TYPE";a:2:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:50:"dojox.data.OpenSearchStore.RSS_CONTENT_TYPE_STRING";a:2:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:43:"dojox.data.OpenSearchStore.XML_CONTENT_TYPE";a:2:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:50:"dojox.data.OpenSearchStore.XML_CONTENT_TYPE_STRING";a:2:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:40:"dojox.data.OpenSearchStore._assertIsItem";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:2:{s:4:"type";s:4:"item";s:7:"summary";s:50:"The item to test for being contained by the store.";}}s:6:"source";s:141:" if(!this.isItem(item)){ throw new Error("dojox.data.OpenSearchStore: a function was passed an item argument that was not an item"); }";s:7:"summary";s:78:"This function tests whether the item passed in is indeed an item in the store.";s:7:"private";b:1;}s:45:"dojox.data.OpenSearchStore._assertIsAttribute";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:9:"attribute";a:2:{s:4:"type";s:21:"attribute-name-string";s:7:"summary";s:55:"The attribute to test for being contained by the store.";}}s:6:"source";s:174:" if(typeof attribute !== "string"){ throw new Error("dojox.data.OpenSearchStore: a function was passed an attribute argument that was not an attribute name string"); }";s:7:"summary";s:101:"This function tests whether the item passed in is indeed a valid 'attribute' like type for the store.";s:7:"private";b:1;}s:38:"dojox.data.OpenSearchStore.getFeatures";a:4:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:6:"source";s:45:" return { 'dojo.data.api.Read': true };";s:7:"summary";s:36:"See dojo.data.api.Read.getFeatures()";}s:35:"dojox.data.OpenSearchStore.getValue";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}s:12:"defaultValue";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:109:" var values = this.getValues(item, attribute); if(values){ return values[0]; } return defaultValue;";s:7:"summary";s:33:"See dojo.data.api.Read.getValue()";}s:40:"dojox.data.OpenSearchStore.getAttributes";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:22:" return ["content"]; ";s:7:"summary";s:38:"See dojo.data.api.Read.getAttributes()";}s:39:"dojox.data.OpenSearchStore.hasAttribute";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:72:" if(this.getValue(item,attribute)){ return true; } return false;";s:7:"summary";s:38:"See dojo.data.api.Read.hasAttributes()";}s:39:"dojox.data.OpenSearchStore.isItemLoaded";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:28:" return this.isItem(item);";s:7:"summary";s:37:"See dojo.data.api.Read.isItemLoaded()";}s:35:"dojox.data.OpenSearchStore.loadItem";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:11:"keywordArgs";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:58:" // summary: // See dojo.data.api.Read.loadItem()";s:7:"summary";s:33:"See dojo.data.api.Read.loadItem()";}s:35:"dojox.data.OpenSearchStore.getLabel";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:19:" return undefined;";s:7:"summary";s:33:"See dojo.data.api.Read.getLabel()";}s:45:"dojox.data.OpenSearchStore.getLabelAttributes";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:14:" return null;";s:7:"summary";s:43:"See dojo.data.api.Read.getLabelAttributes()";}s:40:"dojox.data.OpenSearchStore.containsValue";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}s:5:"value";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:158:" var values = this.getValues(item,attribute); for(var i = 0; i < values.length; i++){ if(values[i] === value){ return true; } } return false;";s:7:"summary";s:38:"See dojo.data.api.Read.containsValue()";}s:36:"dojox.data.OpenSearchStore.getValues";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:170:" this._assertIsItem(item); this._assertIsAttribute(attribute); var value = this.processItem(item, attribute); if(value){ return [value]; } return undefined;";s:7:"summary";s:33:"See dojo.data.api.Read.getValue()";}s:33:"dojox.data.OpenSearchStore.isItem";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:80:" if(item && item[this._storeRef] === this){ return true; } return false;";s:7:"summary";s:31:"See dojo.data.api.Read.isItem()";}s:32:"dojox.data.OpenSearchStore.close";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"request";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:55:" // summary: // See dojo.data.api.Read.close()";s:7:"summary";s:30:"See dojo.data.api.Read.close()";}s:34:"dojox.data.OpenSearchStore.process";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"data";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:4230:"dojo.provide("dojox.data.OpenSearchStore"); dojo.require("dojo.data.util.simpleFetch"); dojo.require("dojox.xml.DomParser"); dojo.require("dojox.xml.parser"); dojo.experimental("dojox.data.OpenSearchStore"); dojo.declare("dojox.data.OpenSearchStore", null, { constructor: function(/*Object*/args){ // summary: // Initializer for the OpenSearchStore store. // description: // The OpenSearchStore is a Datastore interface to any search // engine that implements the open search specifications. if(args){ this.label = args.label; this.url = args.url; this.itemPath = args.itemPath; } var def = dojo.xhrGet({ url: this.url, handleAs: "xml", sync: true }); def.addCallback(this, "_processOsdd"); def.addErrback(function() { throw new Error("Unable to load OpenSearch Description document from " . args.url); }); }, // URL to the open search description document url: "", itemPath: "", _storeRef: "_S", urlElement: null, iframeElement: null, ATOM_CONTENT_TYPE: 3, ATOM_CONTENT_TYPE_STRING: "atom", RSS_CONTENT_TYPE: 2, RSS_CONTENT_TYPE_STRING: "rss", XML_CONTENT_TYPE: 1, XML_CONTENT_TYPE_STRING: "xml", _assertIsItem: function(/* item */ item){ // summary: // This function tests whether the item passed in is indeed an item in the store. // item: // The item to test for being contained by the store. if(!this.isItem(item)){ throw new Error("dojox.data.OpenSearchStore: a function was passed an item argument that was not an item"); } }, _assertIsAttribute: function(/* attribute-name-string */ attribute){ // summary: // This function tests whether the item passed in is indeed a valid 'attribute' like type for the store. // attribute: // The attribute to test for being contained by the store. if(typeof attribute !== "string"){ throw new Error("dojox.data.OpenSearchStore: a function was passed an attribute argument that was not an attribute name string"); } }, getFeatures: function(){ // summary: // See dojo.data.api.Read.getFeatures() return { 'dojo.data.api.Read': true }; }, getValue: function(item, attribute, defaultValue){ // summary: // See dojo.data.api.Read.getValue() var values = this.getValues(item, attribute); if(values){ return values[0]; } return defaultValue; }, getAttributes: function(item){ // summary: // See dojo.data.api.Read.getAttributes() return ["content"]; }, hasAttribute: function(item, attribute){ // summary: // See dojo.data.api.Read.hasAttributes() if(this.getValue(item,attribute)){ return true; } return false; }, isItemLoaded: function(item){ // summary: // See dojo.data.api.Read.isItemLoaded() return this.isItem(item); }, loadItem: function(keywordArgs){ // summary: // See dojo.data.api.Read.loadItem() }, getLabel: function(item){ // summary: // See dojo.data.api.Read.getLabel() return undefined; }, getLabelAttributes: function(item){ // summary: // See dojo.data.api.Read.getLabelAttributes() return null; }, containsValue: function(item, attribute, value){ // summary: // See dojo.data.api.Read.containsValue() var values = this.getValues(item,attribute); for(var i = 0; i < values.length; i++){ if(values[i] === value){ return true; } } return false; }, getValues: function(item, attribute){ // summary: // See dojo.data.api.Read.getValue() this._assertIsItem(item); this._assertIsAttribute(attribute); var value = this.processItem(item, attribute); if(value){ return [value]; } return undefined; }, isItem: function(item){ // summary: // See dojo.data.api.Read.isItem() if(item && item[this._storeRef] === this){ return true; } return false; }, close: function(request){ // summary: // See dojo.data.api.Read.close() }, process: function(data){ // This should return an array of items. This would be the function to override if the // developer wanted to customize the processing/parsing of the entire batch of search // results. return this["_processOSD"+this.contentType](data);";s:7:"summary";s:0:"";}s:38:"dojox.data.OpenSearchStore.processItem";a:5:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:4517:"dojo.provide("dojox.data.OpenSearchStore"); dojo.require("dojo.data.util.simpleFetch"); dojo.require("dojox.xml.DomParser"); dojo.require("dojox.xml.parser"); dojo.experimental("dojox.data.OpenSearchStore"); dojo.declare("dojox.data.OpenSearchStore", null, { constructor: function(/*Object*/args){ // summary: // Initializer for the OpenSearchStore store. // description: // The OpenSearchStore is a Datastore interface to any search // engine that implements the open search specifications. if(args){ this.label = args.label; this.url = args.url; this.itemPath = args.itemPath; } var def = dojo.xhrGet({ url: this.url, handleAs: "xml", sync: true }); def.addCallback(this, "_processOsdd"); def.addErrback(function() { throw new Error("Unable to load OpenSearch Description document from " . args.url); }); }, // URL to the open search description document url: "", itemPath: "", _storeRef: "_S", urlElement: null, iframeElement: null, ATOM_CONTENT_TYPE: 3, ATOM_CONTENT_TYPE_STRING: "atom", RSS_CONTENT_TYPE: 2, RSS_CONTENT_TYPE_STRING: "rss", XML_CONTENT_TYPE: 1, XML_CONTENT_TYPE_STRING: "xml", _assertIsItem: function(/* item */ item){ // summary: // This function tests whether the item passed in is indeed an item in the store. // item: // The item to test for being contained by the store. if(!this.isItem(item)){ throw new Error("dojox.data.OpenSearchStore: a function was passed an item argument that was not an item"); } }, _assertIsAttribute: function(/* attribute-name-string */ attribute){ // summary: // This function tests whether the item passed in is indeed a valid 'attribute' like type for the store. // attribute: // The attribute to test for being contained by the store. if(typeof attribute !== "string"){ throw new Error("dojox.data.OpenSearchStore: a function was passed an attribute argument that was not an attribute name string"); } }, getFeatures: function(){ // summary: // See dojo.data.api.Read.getFeatures() return { 'dojo.data.api.Read': true }; }, getValue: function(item, attribute, defaultValue){ // summary: // See dojo.data.api.Read.getValue() var values = this.getValues(item, attribute); if(values){ return values[0]; } return defaultValue; }, getAttributes: function(item){ // summary: // See dojo.data.api.Read.getAttributes() return ["content"]; }, hasAttribute: function(item, attribute){ // summary: // See dojo.data.api.Read.hasAttributes() if(this.getValue(item,attribute)){ return true; } return false; }, isItemLoaded: function(item){ // summary: // See dojo.data.api.Read.isItemLoaded() return this.isItem(item); }, loadItem: function(keywordArgs){ // summary: // See dojo.data.api.Read.loadItem() }, getLabel: function(item){ // summary: // See dojo.data.api.Read.getLabel() return undefined; }, getLabelAttributes: function(item){ // summary: // See dojo.data.api.Read.getLabelAttributes() return null; }, containsValue: function(item, attribute, value){ // summary: // See dojo.data.api.Read.containsValue() var values = this.getValues(item,attribute); for(var i = 0; i < values.length; i++){ if(values[i] === value){ return true; } } return false; }, getValues: function(item, attribute){ // summary: // See dojo.data.api.Read.getValue() this._assertIsItem(item); this._assertIsAttribute(attribute); var value = this.processItem(item, attribute); if(value){ return [value]; } return undefined; }, isItem: function(item){ // summary: // See dojo.data.api.Read.isItem() if(item && item[this._storeRef] === this){ return true; } return false; }, close: function(request){ // summary: // See dojo.data.api.Read.close() }, process: function(data){ // This should return an array of items. This would be the function to override if the // developer wanted to customize the processing/parsing of the entire batch of search // results. return this["_processOSD"+this.contentType](data); }, processItem: function(item, attribute){ // This returns the text that represents the item. If a developer wanted to customize // how an individual item is rendered/parsed, they'd override this function. return this["_processItem"+this.contentType](item.node, attribute);";s:7:"summary";s:0:"";}s:43:"dojox.data.OpenSearchStore._createSearchUrl";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"request";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1140:" var template = this.urlElement.attributes.getNamedItem("template").nodeValue; var attrs = this.urlElement.attributes; var index = template.indexOf("{searchTerms}"); template = template.substring(0, index) + request.query.searchTerms + template.substring(index+13); dojo.forEach([ {'name': 'count', 'test': request.count, 'def': '10'}, {'name': 'startIndex', 'test': request.start, 'def': this.urlElement.attributes.getNamedItem("indexOffset")?this.urlElement.attributes.getNamedItem("indexOffset").nodeValue:0}, {'name': 'startPage', 'test': request.startPage, 'def': this.urlElement.attributes.getNamedItem("pageOffset")?this.urlElement.attributes.getNamedItem("pageOffset").nodeValue:0}, {'name': 'language', 'test': request.language, 'def': "*"}, {'name': 'inputEncoding', 'test': request.inputEncoding, 'def': 'UTF-8'}, {'name': 'outputEncoding', 'test': request.outputEncoding, 'def': 'UTF-8'} ], function(item){ template = template.replace('{'+item.name+'}', item.test || item.def); template = template.replace('{'+item.name+'?}', item.test || item.def); }); return template;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:38:"dojox.data.OpenSearchStore._fetchItems";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:7:"request";a:2:{s:4:"type";s:1:"A";s:7:"summary";s:14:"request object";}s:12:"fetchHandler";a:2:{s:4:"type";s:1:"A";s:7:"summary";s:34:"function to call for fetched items";}s:12:"errorHandler";a:2:{s:4:"type";s:1:"A";s:7:"summary";s:25:"function to call on error";}}s:6:"source";s:672:" if(!request.query){ request.query={}; } //Build up the content using information from the request var self = this; var url = this._createSearchUrl(request); var getArgs = { url: url, preventCache: true }; // Change to fetch the query results. var xhr = dojo.xhrGet(getArgs); xhr.addErrback(function(error){ errorHandler(error, request); }); xhr.addCallback(function(data){ var items = []; if(data) { //Process the items... items = self.process(data); for(var i=0; i < items.length; i++){ items[i] = {node: items[i]}; items[i][self._storeRef] = self; } } fetchHandler(items, request); });";s:7:"summary";s:44:"Fetch OpenSearch items that match to a query";s:7:"private";b:1;}s:41:"dojox.data.OpenSearchStore._processOSDxml";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"data";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:107:" var div = dojo.doc.createElement("div"); div.innerHTML = data; return dojo.query(this.itemPath, div);";s:7:"private";b:1;s:7:"summary";s:0:"";}s:42:"dojox.data.OpenSearchStore._processItemxml";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:80:" if(attribute === "content"){ return item.innerHTML; } return undefined;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:42:"dojox.data.OpenSearchStore._processOSDatom";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"data";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:45:" return this._processOSDfeed(data, "entry");";s:7:"private";b:1;s:7:"summary";s:0:"";}s:43:"dojox.data.OpenSearchStore._processItematom";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:59:" return this._processItemfeed(item, attribute, "content");";s:7:"private";b:1;s:7:"summary";s:0:"";}s:41:"dojox.data.OpenSearchStore._processOSDrss";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"data";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:44:" return this._processOSDfeed(data, "item");";s:7:"private";b:1;s:7:"summary";s:0:"";}s:42:"dojox.data.OpenSearchStore._processItemrss";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"item";a:1:{s:4:"type";s:0:"";}s:9:"attribute";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:63:" return this._processItemfeed(item, attribute, "description");";s:7:"private";b:1;s:7:"summary";s:0:"";}s:42:"dojox.data.OpenSearchStore._processOSDfeed";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"data";a:1:{s:4:"type";s:0:"";}s:4:"type";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:199:" data = dojox.xml.parser.parse(data); var items = []; var nodeList = data.getElementsByTagName(type); for(var i=0; i"); } for(i=0; i\n"); } return xml.join(""); case 3: case 4: return node.nodeValue; } return undefined;";s:7:"private";b:1;s:7:"summary";s:0:"";}s:39:"dojox.data.OpenSearchStore._processOsdd";a:6:{s:9:"prototype";s:26:"dojox.data.OpenSearchStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:3:"doc";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:1276:" var urlnodes = doc.getElementsByTagName("Url"); //TODO: Check all the urlnodes and determine what our best one is... var types = []; var contentType; var i; for(i=0; icurrentType) { index = i; currentType = types[i]; } } // We'll be using urlnodes[index] as it's the best option (ATOM > RSS > XML) var label = urlnodes[index].nodeName.toLowerCase(); if(label == 'url'){ var urlattrs = urlnodes[index].attributes; this.urlElement = urlnodes[index]; switch(types[index]){ case this.ATOM_CONTENT_TYPE: this.contentType = this.ATOM_CONTENT_TYPE_STRING; break; case this.RSS_CONTENT_TYPE: this.contentType = this.RSS_CONTENT_TYPE_STRING; break; case this.XML_CONTENT_TYPE: this.contentType = this.XML_CONTENT_TYPE_STRING; break; } } ";s:7:"private";b:1;s:7:"summary";s:0:"";}s:38:"dojox.data.OpenSearchStore.contentType";a:2:{s:8:"instance";s:26:"dojox.data.OpenSearchStore";s:7:"summary";s:0:"";}s:32:"dojox.data.OpenSearchStore.label";a:2:{s:8:"instance";s:26:"dojox.data.OpenSearchStore";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:"";}}