PHP Class Prado\Web\UI\WebControls\TExpression

TExpression evaluates a PHP expression and renders the result. The expression is evaluated during the rendering stage. The expression being evaluated can be set via the property {@link setExpression Expression}. The context of the expression evaluated is the TExpression object itself. Note, since TExpression allows evaluation of arbitrary PHP expression, make sure {@link setExpression Expression} does not come directly from user input.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\Web\UI\TControl
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
getExpression ( ) : string
render ( $writer ) Renders the evaluation result of the expression.
setExpression ( $value )

Method Details

getExpression() public méthode

public getExpression ( ) : string
Résultat string the expression to be evaluated

render() public méthode

Renders the evaluation result of the expression.
public render ( $writer )

setExpression() public méthode

public setExpression ( $value )