PHP Class Prado\Web\UI\WebControls\TStatements

TStatements executes one or several PHP statements and renders the display generated during the execution. The execution happens during the rendering stage. The PHP statements being executed can be set via the property {@link setStatements Statements}. The context of the statemenets executed is the TStatements object itself. Note, since TStatements allows execution of arbitrary PHP statements, make sure {@link setStatements Statements} does not come directly from user input.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends Prado\Web\UI\TControl
Mostra file Open project: pradosoft/prado

Public Methods

Method Description
getStatements ( ) : string
render ( $writer ) Renders the evaluation result of the statements.
setStatements ( $value )

Method Details

getStatements() public method

public getStatements ( ) : string
return string the statements to be executed

render() public method

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

setStatements() public method

public setStatements ( $value )