From 74ad156f8f86ba8d258c5c2522f98a3e8d4bd914 Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 25 Nov 2005 04:16:06 +0000 Subject: --- framework/Web/UI/WebControls/TExpression.php | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'framework/Web/UI/WebControls/TExpression.php') diff --git a/framework/Web/UI/WebControls/TExpression.php b/framework/Web/UI/WebControls/TExpression.php index 9168f178..eb1151b0 100644 --- a/framework/Web/UI/WebControls/TExpression.php +++ b/framework/Web/UI/WebControls/TExpression.php @@ -3,9 +3,9 @@ * TExpression class file * * @author Qiang Xue - * @link http://www.xisc.com/ - * @copyright Copyright © 2004-2005, Qiang Xue - * @license http://www.opensource.org/licenses/bsd-license.php BSD License + * @link http://www.pradosoft.com/ + * @copyright Copyright © 2005 PradoSoft + * @license http://www.pradosoft.com/license/ * @version $Revision: $ $Date: $ * @package System.Web.UI.WebControls */ @@ -14,12 +14,12 @@ * TExpression class * * TExpression evaluates a PHP expression and renders the result. - * The expression is evaluated during rendering stage. You can set - * it via the property Expression. You should also specify - * the context object by Context property which is used as - * the object in which the expression is evaluated. If the Context - * property is not set, the TExpression component itself will be - * assumed as the context. + * 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. * * @author Qiang Xue * @version $Revision: $ $Date: $ @@ -28,6 +28,9 @@ */ class TExpression extends TControl { + /** + * @var string PHP expression to be evaluated + */ private $_e=''; /** @@ -39,8 +42,7 @@ class TExpression extends TControl } /** - * Sets the expression of the TExpression - * @param string the expression to be set + * @param string the expression to be evaluated */ public function setExpression($value) { -- cgit v1.2.3