From 4282256a7bf5580cd0fa22ce9686024352f23a6f Mon Sep 17 00:00:00 2001 From: xue <> Date: Mon, 23 Jan 2006 21:37:31 +0000 Subject: Passing an empty validationgroup will only return validators that do not belong to any group. --- framework/Web/UI/TPage.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI') diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php index c58ebefe..1dfc3b1e 100644 --- a/framework/Web/UI/TPage.php +++ b/framework/Web/UI/TPage.php @@ -257,13 +257,13 @@ class TPage extends TTemplateControl * Returns a list of registered validators. * If validation group is specified, only the validators in that group will be returned. * @param string validation group - * @return TList registered validators + * @return TList registered validators in the requested group. If the group is null, all validators will be returned. */ - public function getValidators($validationGroup='') + public function getValidators($validationGroup=null) { if(!$this->_validators) $this->_validators=new TList; - if($validationGroup==='') + if($validationGroup===null) return $this->_validators; else { -- cgit v1.2.3