* $var1 = new ezcTemplateVariableAstNode( 'some_var' ); * $var2 = new ezcTemplateDynamicVariableAstNode( $var1 ); * * The corresponding PHP code will be: * * ${$some_var} * * * @package Template * @version //autogen// * @access private */ class ezcTemplateDynamicVariableAstNode extends ezcTemplateAstNode { /** * The expression which will, when evaluated, return the name of the * variable to use. * @var ezcTemplateAstNode */ public $nameExpression; /** * Constructs a new ezcTemplateDynamicVariableAstNode * * @param ezcTemplateAstNode $nameExpression The code element which will evaluate to the name of the variable. */ public function __construct( ezcTemplateAstNode $nameExpression = null ) { parent::__construct(); $this->nameExpression = $nameExpression; } } ?>