a:12:{s:9:"#provides";s:19:"dojox.wire.DataWire";s:9:"#resource";s:16:"wire/DataWire.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:15:"dojox.wire.Wire";}}s:19:"dojox.wire.DataWire";a:7:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:15:"dojox.wire.Wire";}s:4:"call";a:1:{i:0;s:15:"dojox.wire.Wire";}}s:7:"summary";s:21:"Initialize properties";s:11:"description";s:125:"If 'dataStore' property is not specified, but 'parent' property is specified, 'dataStore' property is copied from the parent.";s:10:"parameters";a:1:{s:4:"args";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:34:"Arguments to initialize properties";}}s:6:"source";s:84:" if(!this.dataStore && this.parent){ this.dataStore = this.parent.dataStore; }";s:9:"classlike";b:1;}s:30:"dojox.wire.DataWire._wireClass";a:3:{s:9:"prototype";s:19:"dojox.wire.DataWire";s:7:"private";b:1;s:7:"summary";s:0:"";}s:29:"dojox.wire.DataWire._getValue";a:9:{s:9:"prototype";s:19:"dojox.wire.DataWire";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"object";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:11:"A root item";}}s:6:"source";s:306:" if(!object || !this.attribute || !this.dataStore){ return object; //Object } var value = object; var list = this.attribute.split('.'); for(var i in list){ value = this._getAttributeValue(value, list[i]); if(!value){ return undefined; //undefined } } return value; //anything";s:7:"summary";s:36:"Return an attribute value of an item";s:11:"description";s:331:"This method uses a root item passed in 'object' argument and 'attribute' property to call getValue() method of 'dataStore'. If an attribute name have an array suffix ("[]"), getValues() method is called, instead. If an index is specified in the array suffix, an array element for the index is returned, instead of the array itself.";s:14:"return_summary";s:36:"A value found, otherwise 'undefined'";s:7:"returns";s:25:"Object|undefined|anything";s:7:"private";b:1;}s:29:"dojox.wire.DataWire._setValue";a:9:{s:9:"prototype";s:19:"dojox.wire.DataWire";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"object";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:11:"A root item";}s:5:"value";a:2:{s:4:"type";s:8:"anything";s:7:"summary";s:14:"A value to set";}}s:6:"source";s:394:" if(!object || !this.attribute || !this.dataStore){ return object; //Object } var item = object; var list = this.attribute.split('.'); var last = list.length - 1; for(var i = 0; i < last; i++){ item = this._getAttributeValue(item, list[i]); if(!item){ return undefined; //undefined } } this._setAttributeValue(item, list[last], value); return object; //Object";s:7:"summary";s:33:"Set an attribute value to an item";s:11:"description";s:414:"This method uses a root item passed in 'object' argument and 'attribute' property to identify an item. Then, setValue() method of 'dataStore' is called with a leaf attribute name and 'value' argument. If an attribute name have an array suffix ("[]"), setValues() method is called, instead. If an index is specified in the array suffix, an array element for the index is set to 'value', instead of the array itself.";s:14:"return_summary";s:46:"'object', or 'undefined' for invalid attribute";s:7:"returns";s:16:"Object|undefined";s:7:"private";b:1;}s:38:"dojox.wire.DataWire._getAttributeValue";a:9:{s:9:"prototype";s:19:"dojox.wire.DataWire";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:4:"item";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:35:"An item attribute An attribute name";}s:9:"attribute";a:1:{s:4:"type";s:6:"String";}}s:6:"source";s:486:" var value = undefined; var i1 = attribute.indexOf('['); if(i1 >= 0){ var i2 = attribute.indexOf(']'); var index = attribute.substring(i1 + 1, i2); attribute = attribute.substring(0, i1); var array = this.dataStore.getValues(item, attribute); if(array){ if(!index){ // return array for "attribute[]" value = array; }else{ value = array[index]; } } }else{ value = this.dataStore.getValue(item, attribute); } return value; //anything ";s:7:"summary";s:36:"Return an attribute value of an item";s:11:"description";s:325:"This method uses an item passed in 'item' argument and 'attribute' argument to call getValue() method of 'dataStore'. If an attribute name have an array suffix ("[]"), getValues() method is called, instead. If an index is specified in the array suffix, an array element for the index is returned, instead of the array itself.";s:14:"return_summary";s:36:"A value found, otherwise 'undefined'";s:7:"returns";s:39:"return array for "attribute[]"|anything";s:7:"private";b:1;}s:38:"dojox.wire.DataWire._setAttributeValue";a:7:{s:9:"prototype";s:19:"dojox.wire.DataWire";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:4:"item";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:7:"An item";}s:9:"attribute";a:2:{s:4:"type";s:6:"String";s:7:"summary";s:17:"An attribute name";}s:5:"value";a:2:{s:4:"type";s:8:"anything";s:7:"summary";s:14:"A value to set";}}s:6:"source";s:525:" var i1 = attribute.indexOf('['); if(i1 >= 0){ var i2 = attribute.indexOf(']'); var index = attribute.substring(i1 + 1, i2); attribute = attribute.substring(0, i1); var array = null; if(!index){ // replace whole array for "attribute[]" array = value; }else{ array = this.dataStore.getValues(item, attribute); if(!array){ array = []; } array[index] = value; } this.dataStore.setValues(item, attribute, array); }else{ this.dataStore.setValue(item, attribute, value); }";s:7:"summary";s:33:"Set an attribute value to an item";s:11:"description";s:353:"This method uses an item passed in 'item' argument and 'attribute' argument to call setValue() method of 'dataStore' with 'value' argument. If an attribute name have an array suffix ("[]"), setValues() method is called, instead. If an index is specified in the array suffix, an array element for the index is set to 'value', instead of the array itself.";s:7:"private";b:1;}s:29:"dojox.wire.DataWire.dataStore";a:3:{s:8:"instance";s:19:"dojox.wire.DataWire";s:4:"type";s:1:"A";s:7:"summary";s:65:"data store attribute: A dotted notation to a descendant attribute";}s:10:"dojox.wire";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:"";}}