diff options
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
-rw-r--r-- | framework/Web/UI/WebControls/TBaseValidator.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index 1ebf16ea..291a29e6 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -10,11 +10,8 @@ */ namespace Prado\Web\UI\WebControls; - -/** - * Using TLabel class - */ -Prado::using('System.Web.UI.WebControls.TLabel'); +use Prado\TPropertyValue; +use Prado\Exceptions\TInvalidDataTypeException; /** * TBaseValidator class @@ -490,11 +487,11 @@ abstract class TBaseValidator extends TLabel implements IValidator * Retrieves the property value of the control being validated. * @param TControl control being validated * @return string property value to be validated - * @throws TInvalidDataTypeException if the control to be validated does not implement {@link IValidatable}. + * @throws TInvalidDataTypeException if the control to be validated does not implement {@link \Prado\Web\UI\IValidatable}. */ protected function getValidationValue($control) { - if($control instanceof IValidatable) + if($control instanceof \Prado\Web\UI\IValidatable) return $control->getValidationPropertyValue(); else throw new TInvalidDataTypeException('basevalidator_validatable_required',get_class($this)); |