temp_var = $code->getTempVarRef(); $ListList = $this->context->findParentByClass('WactListListTag'); $code->writePHP($this->temp_var . ' = ' . $ListList->getComponentRefCode() . '->getOffset();' . "\n"); } function generateExpression($code) { if(!$this->has_increment) { $code->writePHP('++'); $this->has_increment = TRUE; } $code->writePHP($this->temp_var); } } ?>