[ Index ]

PHP Cross Reference of Web Application Component Toolkit

title

Body

[close]

/framework/template/compiler/property/ -> property.inc.php (source)

   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_TAG
   8  * @version $Id: property.inc.php,v 1.1 2004/05/31 22:18:50 jeffmoore Exp $
   9  */
  10  
  11  class CompilerProperty {
  12  
  13      /**
  14      * Calcluated values are considered active if they have been referenced
  15      * in the template.
  16      * @access private
  17      */
  18      var $isActive = FALSE;
  19  
  20      /**
  21      * Does this property refer to a constant value at compile time?
  22      * @return Boolean
  23      * @access public
  24      */
  25  	function isConstant() {
  26          return FALSE;
  27      }
  28      
  29      /*
  30      * @return Boolean Activation status of this property
  31      * @access public
  32      */
  33      function isActive() {
  34          return $this->isActive;
  35      }
  36  
  37      /*
  38      * Indicated that this property is active
  39      * @access public
  40      */    
  41      function activate() {
  42          $this->isActive = TRUE;
  43      }
  44  
  45      /**
  46      * Return this value as a PHP value
  47      * @return String
  48      * @access public
  49      */
  50  	function getValue() {
  51      }
  52  
  53      /**
  54      * Generate setup code when a property enters a scope in which it is
  55      * valid.  This is only called if the Property is considered active.
  56      * @param CodeWriter
  57      * @return void
  58      * @access protected
  59      */
  60  	function generateScopeEntry(&$code) {
  61      }
  62      
  63      /**
  64      * Generate setup code for an expression reference
  65      * @param CodeWriter
  66      * @return void
  67      * @access protected
  68      */
  69  	function generatePreStatement(&$code) {
  70      }
  71  
  72      /**
  73      * Generate the code to read the data value at run time
  74      * Must generate only a valid PHP Expression.
  75      * @param CodeWriter
  76      * @return void
  77      * @access protected
  78      */
  79  	function generateExpression(&$code) {
  80      }
  81      
  82      /**
  83      * Generate tear down code for an expression reference
  84      * @param CodeWriter
  85      * @return void
  86      * @access protected
  87      */
  88  	function generatePostStatement(&$code) {
  89      }
  90  
  91      /**
  92      * Generate tear down code when a property enters a scope in which it is
  93      * valid.  This is only called if the Property is considered active.
  94      * @param CodeWriter
  95      * @return void
  96      * @access protected
  97      */
  98  	function generateScopeExit(&$code) {
  99      }
 100  
 101  }
 102  
 103  ?>


Generated: Sun Nov 28 19:36:09 2004 Cross-referenced by PHPXref 0.5