| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 10 /** 11 * @property ListRowNumber 12 * @tag_class WactListItemTag 13 * @package wact 14 * @version $Id: rownumber.prop.php 5945 2007-06-06 08:31:43Z pachanga $ 15 */ 16 class WactListRowNumberProperty extends WactCompilerProperty 17 { 18 protected $temp_var; 19 protected $has_increment = FALSE; 20 21 function generateScopeEntry($code) 22 { 23 $this->temp_var = $code->getTempVarRef(); 24 25 $ListList = $this->context->findParentByClass('WactListListTag'); 26 27 $code->writePHP($this->temp_var . ' = ' . $ListList->getComponentRefCode() . '->getOffset();' . "\n"); 28 } 29 30 function generateExpression($code) 31 { 32 if(!$this->has_increment) 33 { 34 $code->writePHP('++'); 35 $this->has_increment = TRUE; 36 } 37 $code->writePHP($this->temp_var); 38 } 39 40 } 41 42 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Dec 1 03:56:46 2008 | Cross-referenced by PHPXref 0.7 |