summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TBaseValidator.php
diff options
context:
space:
mode:
authorxue <>2006-01-31 01:30:28 +0000
committerxue <>2006-01-31 01:30:28 +0000
commit99ecc26ddd9c6f0233aff2770e82c9db80fd0b4c (patch)
tree598a306e5431e8dccf81ce6cdf812902145f22b6 /framework/Web/UI/WebControls/TBaseValidator.php
parente326bab1cc979cadb01ef3e3c213838e046a42d7 (diff)
All events are now defined with public on-functions. This is to comply with the new change introduced since 5.1.
Diffstat (limited to 'framework/Web/UI/WebControls/TBaseValidator.php')
-rw-r--r--framework/Web/UI/WebControls/TBaseValidator.php6
1 files changed, 3 insertions, 3 deletions
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();