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

Class: CompoundAttribute

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

Class Overview


Variables

Methods


Inherited Variables

Inherited Methods


Class Details


Class Variables


$fragments = array()

Type:   mixed

$name =

Type:   mixed

Class Methods


constructor CompoundAttribute



CompoundAttribute CompoundAttribute( mixed $name)

method addAttributeFragment

Add a fragment of an attribute

void addAttributeFragment( Attribute &$fragment)

API Tags:

access:  public

Parameters:

Attribute   &$fragment   Attribute fragment object

method generate

Generate the code

void generate( CodeWriter &$code)

API Tags:

access:  protected

Parameters:

CodeWriter   &$code  

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

Parameters:

CodeWriter   &$code  

method generatePostStatement

Generate tear down code for an expression reference

void generatePostStatement( CodeWriter &$code)

API Tags:

access:  protected

Parameters:

CodeWriter   &$code  

method generatePreStatement

Generate setup code for an expression reference

void generatePreStatement( CodeWriter &$code)

API Tags:

access:  protected

Parameters:

CodeWriter   &$code  

method getValue

Return the value of this attribute

String getValue( )

API Tags:

access:  public

method isConstant

Can a PHP value for this reference be calculated at compile time?

Boolean isConstant( )

API Tags:

access:  public

method prepare

Prepare this attribute to be used

void prepare( )
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:44:02 -0800 by phpDocumentor 1.2.3