- Added variables to for:
[haanga.git] / tests / tmp / assert_templates / for_range1.tpl.php.dump
blobb90a1652c1781660a8ff8e2a21097b44d2ed3933
1 Array
3     [0] => Array
4         (
5             [op] => declare
6             [name] => HAANGA_VERSION
7             [0] => Array
8                 (
9                     [string] => 1.0.4
10                 )
12         )
14     [1] => Array
15         (
16             [op] => comment
17             [comment] => Generated from /home/crodas/projects/playground/haanga/tests/assert_templates/for_range1.tpl
18         )
20     [2] => Array
21         (
22             [op] => function
23             [name] => haanga_6153c3274a39928f85c724583ea8ab169cbc4b9b
24         )
26     [3] => Array
27         (
28             [op] => global
29             [vars] => Array
30                 (
31                     [0] => test_global
32                     [1] => global1
33                 )
35         )
37     [4] => Array
38         (
39             [op] => expr
40             [0] => Array
41                 (
42                     [exec] => extract
43                     [args] => Array
44                         (
45                             [0] => Array
46                                 (
47                                     [var] => vars
48                                 )
50                         )
52                 )
54         )
56     [5] => Array
57         (
58             [op] => if
59             [expr] => Array
60                 (
61                     [op_expr] => ==
62                     [0] => Array
63                         (
64                             [var] => return
65                         )
67                     [1] => Array
68                         (
69                             [expr] => 1
70                         )
72                 )
74         )
76     [6] => Array
77         (
78             [op] => expr
79             [0] => Array
80                 (
81                     [exec] => ob_start
82                     [args] => Array
83                         (
84                         )
86                 )
88         )
90     [7] => Array
91         (
92             [op] => end_if
93         )
95     [8] => Array
96         (
97             [op] => for
98             [index] => i
99             [min] => 1
100             [max] => 5
101             [step] => 2
102         )
104     [9] => Array
105         (
106             [op] => print
107             [0] => Array
108                 (
109                     [string] => 
110     
111                 )
113         )
115     [10] => Array
116         (
117             [op] => print
118             [0] => Array
119                 (
120                     [var] => i
121                 )
123         )
125     [11] => Array
126         (
127             [op] => print
128             [0] => Array
129                 (
130                     [string] => 
132                 )
134         )
136     [12] => Array
137         (
138             [op] => end_for
139         )
141     [13] => Array
142         (
143             [op] => print
144             [0] => Array
145                 (
146                     [string] => 
148                 )
150         )
152     [14] => Array
153         (
154             [op] => if
155             [expr] => Array
156                 (
157                     [op_expr] => ==
158                     [0] => Array
159                         (
160                             [var] => return
161                         )
163                     [1] => Array
164                         (
165                             [expr] => 1
166                         )
168                 )
170         )
172     [15] => Array
173         (
174             [op] => return
175             [0] => Array
176                 (
177                     [exec] => ob_get_clean
178                     [args] => Array
179                         (
180                         )
182                 )
184         )
186     [16] => Array
187         (
188             [op] => end_if
189         )
191     [17] => Array
192         (
193             [op] => end_function
194         )
196     [php] => 
197 $HAANGA_VERSION  = '1.0.4';
198 /* Generated from /home/crodas/projects/playground/haanga/tests/assert_templates/for_range1.tpl */
199 function haanga_6153c3274a39928f85c724583ea8ab169cbc4b9b($vars, $return=FALSE, $blocks=array())
201     global $test_global, $global1;
202     extract($vars);
203     if ($return == TRUE) {
204         ob_start();
205     }
206     for ($i = 1; $i <= 5; $i += 2) {
207         echo '
208     '.$i.'
210     }
211     echo '
213     if ($return == TRUE) {
214         return ob_get_clean();
215     }