From 5d88ad05e5956071d5904662d133625f157ce230 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 19 Jan 2006 02:54:27 +0000 Subject: Added documentation to validator controls. --- .../UI/WebControls/TRegularExpressionValidator.php | 27 +++++++++++----------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'framework/Web/UI/WebControls/TRegularExpressionValidator.php') diff --git a/framework/Web/UI/WebControls/TRegularExpressionValidator.php b/framework/Web/UI/WebControls/TRegularExpressionValidator.php index 9fe0f778..f20c2d16 100644 --- a/framework/Web/UI/WebControls/TRegularExpressionValidator.php +++ b/framework/Web/UI/WebControls/TRegularExpressionValidator.php @@ -21,7 +21,7 @@ Prado::using('System.Web.UI.WebControls.TBaseValidator'); * TRegularExpressionValidator validates whether the value of an associated * input component matches the pattern specified by a regular expression. * - * You can specify the regular expression by setting the RegularExpression + * You can specify the regular expression by setting the {@link setRegularExpression RegularExpression} * property. Some commonly used regular expressions include: *
* French Phone Number: (0( \d|\d ))?\d\d \d\d(\d \d| \d\d )\d\d @@ -40,6 +40,9 @@ Prado::using('System.Web.UI.WebControls.TBaseValidator'); * U.S. Social Security Number: \d{3}-\d{2}-\d{4} ** + * Note, the validation succeeds if the associated input control contains empty input. + * Use a {@link TRequiredFieldValidator} to ensure the input is not empty. + * * @author Qiang Xue