summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TBaseValidator.php
diff options
context:
space:
mode:
authorgodzilla80@gmx.net <>2009-04-04 09:53:57 +0000
committergodzilla80@gmx.net <>2009-04-04 09:53:57 +0000
commit9cb370b04651c559391e475db3696c99e7be2dcd (patch)
tree6cce32ff0bcfd9dc441b21b0d6745a5bfe9ea695 /framework/Web/UI/WebControls/TBaseValidator.php
parent466c414ebc9dde38e80f20fd96fd891431404fca (diff)
TBaseValidator, TCustomValidator: change visibilty (protected => public) of getValidationTarget()
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
-rw-r--r--framework/Web/UI/WebControls/TBaseValidator.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php
index e276bb55..6daae4d0 100644
--- a/framework/Web/UI/WebControls/TBaseValidator.php
+++ b/framework/Web/UI/WebControls/TBaseValidator.php
@@ -246,15 +246,15 @@ abstract class TBaseValidator extends TLabel implements IValidator
}
/**
- * Override parent implementation to update the control CSS Class before
- * the validated control is rendered
+ * Override parent implementation to update the control CSS Class before
+ * the validated control is rendered
*/
public function onPreRender ($param)
{
parent::onPreRender($param);
$this->updateControlCssClass();
}
-
+
/**
* Update the ControlToValidate component's css class depending
* if the ControlCssClass property is set, and whether this is valid.
@@ -464,7 +464,7 @@ abstract class TBaseValidator extends TLabel implements IValidator
* @throws TConfigurationException if {@link getControlToValidate
* ControlToValidate} is empty or does not point to a valid control
*/
- protected function getValidationTarget()
+ public function getValidationTarget()
{
if(($id=$this->getControlToValidate())!=='' && ($control=$this->findControl($id))!==null)
return $control;
@@ -496,7 +496,7 @@ abstract class TBaseValidator extends TLabel implements IValidator
$this->setIsValid(true);
$this->onValidate();
if($this->getVisible(true) && $this->getEnabled(true))
- {
+ {
// if the target is not a disabled web control
if(($target=$this->getValidationTarget())!==null && !($target instanceof TWebControl && !$target->getEnabled(true)))
{