| [ 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 ListRowEven 12 * @tag_class WactListItemTag 13 * @package wact 14 * @version $Id: roweven.prop.php 5945 2007-06-06 08:31:43Z pachanga $ 15 */ 16 class WactListRowEvenProperty extends WactCompilerProperty 17 { 18 protected $temp_var; 19 protected $has_increment = FALSE; 20 21 function generateScopeEntry($code_writer) 22 { 23 $this->temp_var = $code_writer->getTempVariable(); 24 $code_writer->writePHP('$' . $this->temp_var . ' = 0;'); 25 } 26 27 /** 28 * @param WactCodeWriter 29 */ 30 function generatePreStatement($code_writer) 31 { 32 if (!$this->has_increment) 33 { 34 $this->has_increment = TRUE; 35 $code_writer->writePHP('$' . $this->temp_var . '++;'); 36 } 37 } 38 39 /** 40 * @param WactCodeWriter 41 */ 42 function generateExpression($code_writer) 43 { 44 $code_writer->writePHP('(( $' . $this->temp_var . ' % 2) == 0)'); 45 } 46 } 47 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Thu Jan 8 04:06:23 2009 | Cross-referenced by PHPXref 0.7 |