| [ Index ] |
PHP Cross Reference of Web Application Component Toolkit |
[Summary view] [Print] [Text view]
1 <?php 2 //-------------------------------------------------------------------------------- 3 // Copyright 2003 Procata, Inc. 4 // Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html) 5 //-------------------------------------------------------------------------------- 6 /** 7 * @package WACT_TEMPLATE 8 * @version $Id: constant.inc.php,v 1.2 2004/06/04 19:45:07 jeffmoore Exp $ 9 */ 10 11 /** 12 * A property representing a constant value. 13 * @access public 14 * @package WACT_TEMPLATE 15 */ 16 class ConstantProperty extends CompilerProperty { 17 18 var $value; 19 20 function ConstantProperty($value) { 21 $this->value =& $value; 22 } 23 24 /** 25 * Does this property refer to a constant value at compile time? 26 * @return Boolean 27 * @access public 28 */ 29 function isConstant() { 30 return TRUE; 31 } 32 33 /** 34 * Return this value as a PHP value 35 * @return String 36 * @access public 37 */ 38 function getValue() { 39 return $this->value; 40 } 41 42 /** 43 * Generate the code to read the data value at run time 44 * Must generate only a valid PHP Expression. 45 * @param CodeWriter 46 * @return void 47 * @access protected 48 */ 49 function generateExpression(&$code) { 50 $code->writePHPLiteral($this->value); 51 } 52 53 function prepare() { 54 } 55 } 56 57 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Sun Nov 28 19:36:09 2004 | Cross-referenced by PHPXref 0.5 |