a:11:{s:9:"#provides";s:22:"dojox.wire.TreeAdapter";s:9:"#resource";s:19:"wire/TreeAdapter.js";s:9:"#requires";a:1:{i:0;a:2:{i:0;s:6:"common";i:1;s:24:"dojox.wire.CompositeWire";}}s:22:"dojox.wire.TreeAdapter";a:7:{s:4:"type";s:8:"Function";s:6:"chains";a:2:{s:9:"prototype";a:1:{i:0;s:24:"dojox.wire.CompositeWire";}s:4:"call";a:1:{i:0;s:24:"dojox.wire.CompositeWire";}}s:7:"summary";s:21:"Initialize properties";s:11:"description";s:208:"If object properties ('node', 'title' and 'children') of array elements specified in 'nodes' property are not Wires, Wires are created from them as arguments, with 'parent' property set to this Wire instance.";s:10:"parameters";a:1:{s:4:"args";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:101:"Arguments to initialize properties nodes: An array containing objects for child Wires for node values";}}s:6:"source";s:39:" this._initializeChildren(this.nodes);";s:9:"classlike";b:1;}s:33:"dojox.wire.TreeAdapter._wireClass";a:3:{s:9:"prototype";s:22:"dojox.wire.TreeAdapter";s:7:"private";b:1;s:7:"summary";s:0:"";}s:32:"dojox.wire.TreeAdapter._getValue";a:9:{s:9:"prototype";s:22:"dojox.wire.TreeAdapter";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"object";a:2:{s:4:"type";s:5:"Array";s:7:"summary";s:12:"A root array";}}s:6:"source";s:309:" if(!object || !this.nodes){ return object; //Array } var array = object; if(!dojo.isArray(array)){ array = [array]; } var nodes = []; for(var i in array){ for(var i2 in this.nodes){ nodes = nodes.concat(this._getNodes(array[i], this.nodes[i2])); } } return nodes; //Array";s:7:"summary";s:35:"Return an array of tree node values";s:11:"description";s:667:"This method iterates over an array specified to 'object' argument and calls getValue() method of 'node' Wires with each element of the array to get object(s) that represetns nodes. (If 'node' Wires are omitted, the array element is used for further processing.) Then, getValue() method of 'title' Wires are called to get title strings for nodes. (If 'title' Wires are omitted, the objects representing nodes are used as title strings.) And if an array of objects with 'node' and 'title' Wires is specified to 'children', it is used to gather child nodes and their title strings in the same way recursively. Finally, an array of the top-level node objects are retuned.";s:14:"return_summary";s:28:"An array of tree node values";s:7:"returns";s:5:"Array";s:7:"private";b:1;}s:32:"dojox.wire.TreeAdapter._setValue";a:6:{s:9:"prototype";s:22:"dojox.wire.TreeAdapter";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:6:"object";a:1:{s:4:"type";s:5:"Array";}s:5:"value";a:1:{s:4:"type";s:5:"Array";}}s:6:"source";s:72:" throw new Error("Unsupported API: " + this._wireClass + "._setValue");";s:7:"summary";s:13:"Not supported";s:7:"private";b:1;}s:42:"dojox.wire.TreeAdapter._initializeChildren";a:8:{s:9:"prototype";s:22:"dojox.wire.TreeAdapter";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:8:"children";a:2:{s:4:"type";s:5:"Array";s:7:"summary";s:42:"An array of objects containing child Wires";}}s:6:"source";s:480:" if(!children){ return; //undefined } for(var i in children){ var child = children[i]; if(child.node){ child.node.parent = this; if(!dojox.wire.isWire(child.node)){ child.node = dojox.wire.create(child.node); } } if(child.title){ child.title.parent = this; if(!dojox.wire.isWire(child.title)){ child.title = dojox.wire.create(child.title); } } if(child.children){ this._initializeChildren(child.children); } }";s:7:"summary";s:22:"Initialize child Wires";s:11:"description";s:277:"If 'node' or 'title' properties of array elements specified in 'children' argument are not Wires, Wires are created from them as arguments, with 'parent' property set to this Wire instance. If an array element has 'children' property, this method is called recursively with it.";s:7:"returns";s:9:"undefined";s:7:"private";b:1;}s:32:"dojox.wire.TreeAdapter._getNodes";a:9:{s:9:"prototype";s:22:"dojox.wire.TreeAdapter";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:9:"An object";}s:5:"child";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:26:"An object with child Wires";}}s:6:"source";s:675:" var array = null; if(child.node){ array = child.node.getValue(object); if(!array){ return []; } if(!dojo.isArray(array)){ array = [array]; } }else{ array = [object]; } var nodes = []; for(var i in array){ object = array[i]; var node = {}; if(child.title){ node.title = child.title.getValue(object); }else{ node.title = object; } if(child.children){ var children = []; for(var i2 in child.children){ children = children.concat(this._getNodes(object, child.children[i2])); } if(children.length > 0){ node.children = children; } } nodes.push(node); } return nodes; //Array";s:7:"summary";s:35:"Return an array of tree node values";s:11:"description";s:579:"This method calls getValue() method of 'node' Wires with 'object' argument to get object(s) that represents nodes. (If 'node' Wires are omitted, 'object' is used for further processing.) Then, getValue() method of 'title' Wires are called to get title strings for nodes. (If 'title' Wires are omitted, the objects representing nodes are used as title strings.) And if an array of objects with 'node' and 'title' Wires is specified to 'children', it is used to gather child nodes and their title strings in the same way recursively. Finally, an array of node objects are returned.";s:14:"return_summary";s:0:"";s:7:"returns";s:5:"Array";s:7:"private";b:1;}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:"";}}