a:33:{s:9:"#provides";s:20:"dojox.data.HtmlStore";s:9:"#resource";s:17:"data/HtmlStore.js";s:9:"#requires";a:3:{i:0;a:2:{i:0;s:6:"common";i:1;s:16:"dojox.xml.parser";}i:1;a:3:{i:0;s:6:"common";i:1;s:26:"dojo.data.util.simpleFetch";i:2;s:4:"dojo";}i:2;a:3:{i:0;s:6:"common";i:1;s:21:"dojo.data.util.filter";i:2;s:4:"dojo";}}s:20:"dojox.data.HtmlStore";a:7:{s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"args";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:79:"An anonymous object to initialize properties. It expects the following values:";}}s:6:"source";s:376:" if(args.url){ if(!args.dataId) throw new Error("dojo.data.HtmlStore: Cannot instantiate using url without an id!"); this.url = args.url; this.dataId = args.dataId; }else{ if(args.dataId){ this._rootNode = dojo.byId(args.dataId); this.dataId = this._rootNode.id; }else{ this._rootNode = dojo.byId(this.dataId); } this._indexItems(); }";s:7:"summary";s:37:"Initializer for the HTML table store.";s:11:"description";s:729:"The HtmlStore can be created in one of two ways: a) by parsing an existing table or list DOM node on the current page or b) by referencing an external url and giving the id of the table or listin that page. The remote url will be parsed as an html page. The HTML table or list should be of the following form:
Attribute1 Attribute2
Value1.1 Value1.2
Value2.1 Value2.2
-or- -or-
  1. Value.1
  2. Value.2
";s:6:"mixins";a:1:{s:9:"prototype";a:1:{i:0;s:26:"dojo.data.util.simpleFetch";}}s:9:"classlike";b:1;}s:24:"dojox.data.HtmlStore.url";a:4:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:8:"instance";s:20:"dojox.data.HtmlStore";s:4:"type";s:3:"The";s:7:"summary";s:30:"url of the remote page to load";}s:27:"dojox.data.HtmlStore.dataId";a:4:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:8:"instance";s:20:"dojox.data.HtmlStore";s:4:"type";s:3:"The";s:7:"summary";s:42:"id of the table element in the remote page";}s:32:"dojox.data.HtmlStore._indexItems";a:5:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:6:"source";s:577:" this._getHeadings(); if (this._rootNode.rows){//tables if(this._rootNode.tBodies && this._rootNode.tBodies.length > 0) { this._rootNode = this._rootNode.tBodies[0]; } var i; for(i=0; i 0)?values[0]:defaultValue; //Object || int || Boolean";s:7:"summary";s:33:"See dojo.data.api.Read.getValue()";s:7:"returns";s:24:"Object || int || Boolean";}s:30:"dojox.data.HtmlStore.getValues";a:6:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"item";a:1:{s:4:"type";s:4:"item";}s:9:"attribute";a:1:{s:4:"type";s:21:"attribute-name-string";}}s:6:"source";s:294:" this._assertIsItem(item); var index = this._assertIsAttribute(attribute); if(index>-1){ if (item.cells){ return [dojox.xml.parser.textContent(item.cells[index])]; }else{//return Value for lists return [dojox.xml.parser.textContent(item)]; } } return []; //Array";s:7:"summary";s:34:"See dojo.data.api.Read.getValues()";s:7:"returns";s:28:"return Value for lists|Array";}s:34:"dojox.data.HtmlStore.getAttributes";a:6:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:4:"item";}}s:6:"source";s:219:" this._assertIsItem(item); var attributes = []; for(var i=0; i 0;";s:7:"summary";s:37:"See dojo.data.api.Read.hasAttribute()";}s:34:"dojox.data.HtmlStore.containsValue";a:6:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"item";a:1:{s:4:"type";s:4:"item";}s:9:"attribute";a:1:{s:4:"type";s:21:"attribute-name-string";}s:5:"value";a:1:{s:4:"type";s:8:"anything";}}s:6:"source";s:202:" var regexp = undefined; if(typeof value === "string"){ regexp = dojo.data.util.filter.patternToRegExp(value, false); } return this._containsValue(item, attribute, value, regexp); //boolean.";s:7:"summary";s:38:"See dojo.data.api.Read.containsValue()";s:7:"returns";s:8:"boolean.";}s:35:"dojox.data.HtmlStore._containsValue";a:8:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:4:"item";a:2:{s:4:"type";s:4:"item";s:7:"summary";s:46:"The data item to examine for attribute values.";}s:9:"attribute";a:2:{s:4:"type";s:21:"attribute-name-string";s:7:"summary";s:25:"The attribute to inspect.";}s:5:"value";a:2:{s:4:"type";s:8:"anything";s:7:"summary";s:19:"The value to match.";}s:6:"regexp";a:3:{s:8:"optional";b:1;s:4:"type";s:6:"RegExp";s:7:"summary";s:196:"Optional regular expression generated off value if value was of string type to handle wildcarding. If present and attribute values are string, then it can be used for comparison instead of 'value'";}}s:6:"source";s:367:" var values = this.getValues(item, attribute); for(var i = 0; i < values.length; ++i){ var possibleValue = values[i]; if(typeof possibleValue === "string" && regexp){ return (possibleValue.match(regexp) !== null); }else{ //Non-string matching. if(value === possibleValue){ return true; // Boolean } } } return false; // Boolean";s:7:"summary";s:66:"Internal function for looking at the values contained by the item.";s:11:"description";s:230:"Internal function for looking at the values contained by the item. This function allows for denoting if the comparison should be case sensitive for strings or not (for handling filtering cases where string case should not matter)";s:7:"returns";s:7:"Boolean";s:7:"private";b:1;}s:27:"dojox.data.HtmlStore.isItem";a:6:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:9:"something";a:1:{s:4:"type";s:8:"anything";}}s:6:"source";s:119:" if(something && something.store && something.store === this){ return true; //boolean } return false; //boolean";s:7:"summary";s:31:"See dojo.data.api.Read.isItem()";s:7:"returns";s:7:"boolean";}s:33:"dojox.data.HtmlStore.isItemLoaded";a:5:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:9:"something";a:1:{s:4:"type";s:8:"anything";}}s:6:"source";s:32:" return this.isItem(something);";s:7:"summary";s:37:"See dojo.data.api.Read.isItemLoaded()";}s:29:"dojox.data.HtmlStore.loadItem";a:5:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:11:"keywordArgs";a:1:{s:4:"type";s:6:"Object";}}s:6:"source";s:39:" this._assertIsItem(keywordArgs.item);";s:7:"summary";s:33:"See dojo.data.api.Read.loadItem()";}s:32:"dojox.data.HtmlStore._fetchItems";a:8:{s:9:"prototype";s:20:"dojox.data.HtmlStore";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:1020:" if(this._rootNode){ this._finishFetchItems(request, fetchHandler, errorHandler); }else{ if(!this.url){ this._rootNode = dojo.byId(this.dataId); }else{ var getArgs = { url: this.url, handleAs: "text" }; var self = this; var getHandler = dojo.xhrGet(getArgs); getHandler.addCallback(function(data){ var findNode = function(node, id){ if(node.id == id){ return node; //object } if(node.childNodes){ for(var i=0; i 0){ items = arrayOfAllItems.slice(0,arrayOfAllItems.length); } fetchHandler(items, request); }";s:7:"summary";s:88:"Internal function for processing the passed in request and locating the requested items.";s:7:"private";b:1;}s:32:"dojox.data.HtmlStore.getFeatures";a:4:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:6:"source";s:80:" return { 'dojo.data.api.Read': true, 'dojo.data.api.Identity': true };";s:7:"summary";s:36:"See dojo.data.api.Read.getFeatures()";}s:26:"dojox.data.HtmlStore.close";a:5:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:7:"request";a:1:{s:4:"type";s:44:"dojo.data.api.Request || keywordArgs || null";}}s:6:"source";s:75:" // summary: // See dojo.data.api.Read.close() // nothing to do here!";s:7:"summary";s:50:"See dojo.data.api.Read.close() nothing to do here!";}s:29:"dojox.data.HtmlStore.getLabel";a:5:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:4:"item";}}s:6:"source";s:167:" if(this.isItem(item)){ if(item.cells){ return "Item #" + this.getIdentity(item); }else{ return this.getValue(item,"name"); } } return undefined;";s:7:"summary";s:33:"See dojo.data.api.Read.getLabel()";}s:39:"dojox.data.HtmlStore.getLabelAttributes";a:5:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:4:"item";}}s:6:"source";s:66:" if(item.cells){ return null; }else{ return ["name"]; }";s:7:"summary";s:43:"See dojo.data.api.Read.getLabelAttributes()";}s:32:"dojox.data.HtmlStore.getIdentity";a:5:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:4:"item";}}s:6:"source";s:141:" this._assertIsItem(item); if(this.hasAttribute(item, "name")){ return this.getValue(item,"name"); }else{ return item._ident; }";s:7:"summary";s:40:"See dojo.data.api.Identity.getIdentity()";}s:42:"dojox.data.HtmlStore.getIdentityAttributes";a:5:{s:9:"prototype";s:20:"dojox.data.HtmlStore";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:4:"item";a:1:{s:4:"type";s:4:"item";}}s:6:"source";s:15:" return null;";s:7:"summary";s:96:"See dojo.data.api.Identity.getIdentityAttributes() Identity isn't taken from a public attribute.";}s:40:"dojox.data.HtmlStore.fetchItemByIdentity";a:7:{s:9:"prototype";s:20:"dojox.data.HtmlStore";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:2408:" var identity = keywordArgs.identity; var self = this; var item = null; var scope = null; if(!this._rootNode){ if(!this.url){ this._rootNode = dojo.byId(this.dataId); this._indexItems(); if(self._rootNode.rows){ //Table item = this._rootNode.rows[identity + 1]; }else{ //Lists for(var i = 0; i < self._rootNode.childNodes.length; i++){ if(self._rootNode.childNodes[i].nodeType === 1 && identity === dojox.xml.parser.textContent(self._rootNode.childNodes[i])) { item = self._rootNode.childNodes[i]; } } } if(keywordArgs.onItem){ scope = keywordArgs.scope?keywordArgs.scope:dojo.global; keywordArgs.onItem.call(scope, item); } }else{ var getArgs = { url: this.url, handleAs: "text" }; var getHandler = dojo.xhrGet(getArgs); getHandler.addCallback(function(data){ var findNode = function(node, id){ if(node.id == id){ return node; //object } if(node.childNodes){ for(var i=0; i