From 99ecc26ddd9c6f0233aff2770e82c9db80fd0b4c Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 31 Jan 2006 01:30:28 +0000 Subject: All events are now defined with public on-functions. This is to comply with the new change introduced since 5.1. --- framework/Web/UI/WebControls/TBaseValidator.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI/WebControls/TBaseValidator.php') diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index eeb5d0e8..7520933a 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -90,7 +90,7 @@ abstract class TBaseValidator extends TLabel implements IValidator * Registers the validator with page. * @param mixed event parameter */ - protected function onInit($param) + public function onInit($param) { parent::onInit($param); $this->getPage()->getValidators()->add($this); @@ -101,7 +101,7 @@ abstract class TBaseValidator extends TLabel implements IValidator * Unregisters the validator from page. * @param mixed event parameter */ - protected function onUnload($param) + public function onUnload($param) { if($this->_registered && ($page=$this->getPage())!==null) $page->getValidators()->remove($this); @@ -147,7 +147,7 @@ abstract class TBaseValidator extends TLabel implements IValidator * so that the event handlers can be invoked. * @param TEventParameter event parameter to be passed to the event handlers */ - protected function onPreRender($param) + public function onPreRender($param) { $scripts = $this->getPage()->getClientScript(); $formID=$this->getPage()->getForm()->getClientID(); -- cgit v1.2.3