public static function preProcessing(Dwoo_Compiler $compiler, array $params, $prepend, $append, $type) { // get block params and save the current template pointer to use it in the postProcessing method $currentBlock =& $compiler->getCurrentBlock(); $currentBlock['params']['tplPointer'] = $compiler->getPointer(); return ''; }
public function testPointerGetSet() { $cmp = new Dwoo_Compiler(); $this->assertEquals(null, $cmp->getPointer()); $cmp->setPointer(5); $this->assertEquals(5, $cmp->getPointer()); $cmp->setPointer(5, true); $this->assertEquals(10, $cmp->getPointer()); }