WACT_TAG
[ class tree: WACT_TAG ] [ index: WACT_TAG ] [ all elements ]

Class: CompilerProperty

Source Location: /framework/template/compiler/property/property.inc.php

Class Overview


Version:

  • $Id: property.inc.php,v 1.1 2004/05/31 22:18:50 jeffmoore Exp $

Variables

Methods


Child classes:

AttributeProperty
A property linked to the value of an attribute.
ConstantProperty
A property representing a constant value.
ParityProperty
ListRowEvenProperty
ListRowNumberProperty
ListRowOddProperty
PageNumberProperty
TotalPagesProperty

Inherited Variables

Inherited Methods


Class Details

version:  $Id: property.inc.php,v 1.1 2004/05/31 22:18:50 jeffmoore Exp $

Class Variables


$isActive = FALSE

Calcluated values are considered active if they have been referenced in the template.
access:  private
Type:   mixed

Class Methods


method activate



void activate( )

method generateExpression

Generate the code to read the data value at run time Must generate only a valid PHP Expression.

void generateExpression( CodeWriter &$code)

API Tags:

access:  protected

Overridden in child classes as:

AttributeProperty::generateExpression()
Generate the code to read the data value at run time Must generate only a valid PHP Expression.
ConstantProperty::generateExpression()
Generate the code to read the data value at run time Must generate only a valid PHP Expression.
ParityProperty::generateExpression()
Generate the code to read the data value at run time Must generate only a valid PHP Expression.
ListRowEvenProperty::generateExpression()
Generate the code to read the data value at run time Must generate only a valid PHP Expression.
ListRowNumberProperty::generateExpression()
Generate the code to read the data value at run time Must generate only a valid PHP Expression.
ListRowOddProperty::generateExpression()
Generate the code to read the data value at run time Must generate only a valid PHP Expression.
PageNumberProperty::generateExpression()
Generate the code to read the data value at run time Must generate only a valid PHP Expression.
TotalPagesProperty::generateExpression()
Generate the code to read the data value at run time Must generate only a valid PHP Expression.

Parameters:

CodeWriter   &$code  

method generatePostStatement

Generate tear down code for an expression reference

void generatePostStatement( CodeWriter &$code)

API Tags:

access:  protected

Overridden in child classes as:

AttributeProperty::generatePostStatement()
Generate tear down code for an expression reference

Parameters:

CodeWriter   &$code  

method generatePreStatement

Generate setup code for an expression reference

void generatePreStatement( CodeWriter &$code)

API Tags:

access:  protected

Overridden in child classes as:

AttributeProperty::generatePreStatement()
Generate setup code for an expression reference
ParityProperty::generatePreStatement()
Generate setup code for an expression reference
ListRowEvenProperty::generatePreStatement()
Generate setup code for an expression reference
ListRowOddProperty::generatePreStatement()
Generate setup code for an expression reference

Parameters:

CodeWriter   &$code  

method generateScopeEntry

Generate setup code when a property enters a scope in which it is valid.

This is only called if the Property is considered active.



void generateScopeEntry( CodeWriter &$code)

API Tags:

access:  protected

Overridden in child classes as:

ParityProperty::generateScopeEntry()
ListRowEvenProperty::generateScopeEntry()
ListRowNumberProperty::generateScopeEntry()
ListRowOddProperty::generateScopeEntry()

Parameters:

CodeWriter   &$code  

method generateScopeExit

Generate tear down code when a property enters a scope in which it is valid.

This is only called if the Property is considered active.



void generateScopeExit( CodeWriter &$code)

API Tags:

access:  protected

Parameters:

CodeWriter   &$code  

method getValue

Return this value as a PHP value

String getValue( )

API Tags:

access:  public

Overridden in child classes as:

AttributeProperty::getValue()
Return this value as a PHP value
ConstantProperty::getValue()
Return this value as a PHP value


method isActive



void isActive( )

method isConstant

Does this property refer to a constant value at compile time?

Boolean isConstant( )

API Tags:

access:  public

Overridden in child classes as:

AttributeProperty::isConstant()
Does this property refer to a constant value at compile time?
ConstantProperty::isConstant()
Does this property refer to a constant value at compile time?

WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:49:27 -0800 by phpDocumentor 1.2.3