| 1 | <?php |
||
| 5 | class LoopResolver extends AbstractResolver |
||
| 6 | { |
||
| 7 | protected $referencePrefixes = array('loop:'); |
||
| 8 | |||
| 9 | protected $stack = array(); |
||
| 10 | |||
| 11 | public function beginLoop() |
||
| 15 | |||
| 16 | public function endLoop() |
||
| 20 | |||
| 21 | public function loopStep() |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $identifier format: 'loop:index', 'loop:depth' |
||
| 29 | * @return int |
||
| 30 | * @throws \Exception When trying to retrieve anything else but index and depth |
||
| 31 | */ |
||
| 32 | public function getReferenceValue($identifier) |
||
| 43 | |||
| 44 | } |