a:35:{s:9:"#provides";s:18:"dojox.dtl.tag.loop";s:9:"#resource";s:15:"dtl/tag/loop.js";s:9:"#requires";a:2:{i:0;a:2:{i:0;s:6:"common";i:1;s:15:"dojox.dtl._base";}i:1;a:2:{i:0;s:6:"common";i:1;s:21:"dojox.string.tokenize";}}s:28:"dojox.dtl.tag.loop.CycleNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:4:{s:9:"cyclevars";a:1:{s:4:"type";s:0:"";}s:4:"name";a:1:{s:4:"type";s:0:"";}s:4:"text";a:1:{s:4:"type";s:0:"";}s:6:"shared";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:123:" this.cyclevars = cyclevars; this.name = name; this.contents = text; this.shared = shared || {counter: -1, map: {}};";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:32:"dojox.dtl.tag.loop.IfChangedNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:5:"nodes";a:1:{s:4:"type";s:0:"";}s:4:"vars";a:1:{s:4:"type";s:0:"";}s:6:"shared";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:184:" this.nodes = nodes; this._vars = vars; this.shared = shared || {last: null, counter: 0}; this.vars = dojo.map(vars, function(item){ return new dojox.dtl._Filter(item); });";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:30:"dojox.dtl.tag.loop.RegroupNode";a:5:{s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:10:"expression";a:1:{s:4:"type";s:0:"";}s:3:"key";a:1:{s:4:"type";s:0:"";}s:5:"alias";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:120:" this._expression = expression; this.expression = new dd._Filter(expression); this.key = key; this.alias = alias;";s:9:"classlike";b:1;s:7:"summary";s:0:"";}s:38:"dojox.dtl.tag.loop.CycleNode.cyclevars";a:2:{s:8:"instance";s:28:"dojox.dtl.tag.loop.CycleNode";s:7:"summary";s:0:"";}s:33:"dojox.dtl.tag.loop.CycleNode.name";a:2:{s:8:"instance";s:28:"dojox.dtl.tag.loop.CycleNode";s:7:"summary";s:0:"";}s:37:"dojox.dtl.tag.loop.CycleNode.contents";a:2:{s:8:"instance";s:28:"dojox.dtl.tag.loop.CycleNode";s:7:"summary";s:0:"";}s:35:"dojox.dtl.tag.loop.CycleNode.shared";a:2:{s:8:"instance";s:28:"dojox.dtl.tag.loop.CycleNode";s:7:"summary";s:0:"";}s:35:"dojox.dtl.tag.loop.CycleNode.render";a:5:{s:9:"prototype";s:28:"dojox.dtl.tag.loop.CycleNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:471:" if(context.forloop && !context.forloop.counter0){ this.shared.counter = -1; } ++this.shared.counter; var value = this.cyclevars[this.shared.counter % this.cyclevars.length]; var map = this.shared.map; if(!map[value]){ map[value] = new dd._Filter(value); } value = map[value].resolve(context, buffer); if(this.name){ context[this.name] = value; } this.contents.set(value); return this.contents.render(context, buffer);";s:7:"summary";s:0:"";}s:43:"dojox.dtl.tag.loop.CycleNode.shared.counter";a:2:{s:8:"instance";s:28:"dojox.dtl.tag.loop.CycleNode";s:7:"summary";s:0:"";}s:37:"dojox.dtl.tag.loop.CycleNode.unrender";a:5:{s:9:"prototype";s:28:"dojox.dtl.tag.loop.CycleNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:50:" return this.contents.unrender(context, buffer);";s:7:"summary";s:0:"";}s:34:"dojox.dtl.tag.loop.CycleNode.clone";a:5:{s:9:"prototype";s:28:"dojox.dtl.tag.loop.CycleNode";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:100:" return new this.constructor(this.cyclevars, this.name, this.contents.clone(buffer), this.shared);";s:7:"summary";s:0:"";}s:38:"dojox.dtl.tag.loop.IfChangedNode.nodes";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loop.IfChangedNode";s:7:"summary";s:0:"";}s:38:"dojox.dtl.tag.loop.IfChangedNode._vars";a:3:{s:8:"instance";s:32:"dojox.dtl.tag.loop.IfChangedNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loop.IfChangedNode.shared";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loop.IfChangedNode";s:7:"summary";s:0:"";}s:37:"dojox.dtl.tag.loop.IfChangedNode.vars";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loop.IfChangedNode";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loop.IfChangedNode.render";a:5:{s:9:"prototype";s:32:"dojox.dtl.tag.loop.IfChangedNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:744:" if(context.forloop){ if(context.forloop.counter <= this.shared.counter){ this.shared.last = null; } this.shared.counter = context.forloop.counter; } var change; if(this.vars.length){ change = dojo.toJson(dojo.map(this.vars, function(item){ return item.resolve(context); })); }else{ change = this.nodes.dummyRender(context, buffer); } if(change != this.shared.last){ var firstloop = (this.shared.last === null); this.shared.last = change; context = context.push(); context.ifchanged = {firstloop: firstloop}; buffer = this.nodes.render(context, buffer); context = context.pop(); }else{ buffer = this.nodes.unrender(context, buffer); } return buffer;";s:7:"summary";s:0:"";}s:44:"dojox.dtl.tag.loop.IfChangedNode.shared.last";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loop.IfChangedNode";s:7:"summary";s:0:"";}s:47:"dojox.dtl.tag.loop.IfChangedNode.shared.counter";a:2:{s:8:"instance";s:32:"dojox.dtl.tag.loop.IfChangedNode";s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loop.IfChangedNode.unrender";a:5:{s:9:"prototype";s:32:"dojox.dtl.tag.loop.IfChangedNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:47:" return this.nodes.unrender(context, buffer);";s:7:"summary";s:0:"";}s:38:"dojox.dtl.tag.loop.IfChangedNode.clone";a:5:{s:9:"prototype";s:32:"dojox.dtl.tag.loop.IfChangedNode";s:4:"type";s:8:"Function";s:10:"parameters";a:1:{s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:82:" return new this.constructor(this.nodes.clone(buffer), this._vars, this.shared);";s:7:"summary";s:0:"";}s:42:"dojox.dtl.tag.loop.RegroupNode._expression";a:3:{s:8:"instance";s:30:"dojox.dtl.tag.loop.RegroupNode";s:7:"private";b:1;s:7:"summary";s:0:"";}s:41:"dojox.dtl.tag.loop.RegroupNode.expression";a:2:{s:8:"instance";s:30:"dojox.dtl.tag.loop.RegroupNode";s:7:"summary";s:0:"";}s:34:"dojox.dtl.tag.loop.RegroupNode.key";a:2:{s:8:"instance";s:30:"dojox.dtl.tag.loop.RegroupNode";s:7:"summary";s:0:"";}s:36:"dojox.dtl.tag.loop.RegroupNode.alias";a:2:{s:8:"instance";s:30:"dojox.dtl.tag.loop.RegroupNode";s:7:"summary";s:0:"";}s:36:"dojox.dtl.tag.loop.RegroupNode._push";a:6:{s:9:"prototype";s:30:"dojox.dtl.tag.loop.RegroupNode";s:4:"type";s:8:"Function";s:10:"parameters";a:3:{s:9:"container";a:1:{s:4:"type";s:0:"";}s:7:"grouper";a:1:{s:4:"type";s:0:"";}s:5:"stack";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:80:" if(stack.length){ container.push({ grouper: grouper, list: stack }); }";s:7:"private";b:1;s:7:"summary";s:0:"";}s:37:"dojox.dtl.tag.loop.RegroupNode.render";a:5:{s:9:"prototype";s:30:"dojox.dtl.tag.loop.RegroupNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:446:" context[this.alias] = []; var list = this.expression.resolve(context); if(list){ var last = null; var stack = []; for(var i = 0; i < list.length; i++){ var id = list[i][this.key]; if(last !== id){ this._push(context[this.alias], last, stack); last = id; stack = [list[i]]; }else{ stack.push(list[i]); } } this._push(context[this.alias], last, stack); } return buffer;";s:7:"summary";s:0:"";}s:39:"dojox.dtl.tag.loop.RegroupNode.unrender";a:5:{s:9:"prototype";s:30:"dojox.dtl.tag.loop.RegroupNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:17:" return buffer;";s:7:"summary";s:0:"";}s:36:"dojox.dtl.tag.loop.RegroupNode.clone";a:5:{s:9:"prototype";s:30:"dojox.dtl.tag.loop.RegroupNode";s:4:"type";s:8:"Function";s:10:"parameters";a:2:{s:7:"context";a:1:{s:4:"type";s:0:"";}s:6:"buffer";a:1:{s:4:"type";s:0:"";}}s:6:"source";s:15:" return this;";s:7:"summary";s:0:"";}s:18:"dojox.dtl.tag.loop";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:13:"dojox.dtl.tag";a:2:{s:4:"type";s:6:"Object";s:7:"summary";s:0:"";}s:9:"dojox.dtl";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:"";}}