From 5d6b7068de8768d56c4731cc7301438b69354d57 Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 19 Oct 2006 01:00:00 +0000 Subject: remove duplicate methods. --- framework/Web/UI/WebControls/TBaseValidator.php | 43 +++---------------------- 1 file changed, 4 insertions(+), 39 deletions(-) (limited to 'framework/Web') diff --git a/framework/Web/UI/WebControls/TBaseValidator.php b/framework/Web/UI/WebControls/TBaseValidator.php index 59af7e7f..6f32ae4f 100644 --- a/framework/Web/UI/WebControls/TBaseValidator.php +++ b/framework/Web/UI/WebControls/TBaseValidator.php @@ -614,7 +614,7 @@ class TValidatorClientSide extends TClientSideOptions * This will override the default client-side validator behaviour. * @param string javascript code for client-side OnSuccess event. */ - public function setOnSuccess($javascript) + public function setOnValidationSuccess($javascript) { $this->setFunction('OnValidationSuccess', $javascript); } @@ -622,7 +622,7 @@ class TValidatorClientSide extends TClientSideOptions /** * @return string javascript code for client-side OnSuccess event. */ - public function getOnSuccess() + public function getOnValidationSuccess() { return $this->getOption('OnValidationSuccess'); } @@ -632,44 +632,9 @@ class TValidatorClientSide extends TClientSideOptions * This will override the default client-side validator behaviour. * @param string javascript code for client-side OnError event. */ - public function setOnError($javascript) - { - $this->setFunction('OnValidationError', $javascript); - } - - /** - * @return string javascript code for client-side OnError event. - */ - public function getOnError() - { - return $this->getOption('OnValidationError'); - } - - - /** - * Alias for OnSuccess - * @param string javascript code for client-side OnSuccess event. - */ - public function setOnValidationSuccess($javascript) - { - $this->setOnSuccess($javascript); - } - - /** - * @return string javascript code for client-side OnSuccess event. - */ - public function getOnValidationSuccess() - { - return $this->getOnSuccess(); - } - - /** - * Alias for OnError - * @param string javascript code for client-side OnError event. - */ public function setOnValidationError($javascript) { - $this->setOnError($javascript); + $this->setFunction('OnValidationError', $javascript); } /** @@ -677,7 +642,7 @@ class TValidatorClientSide extends TClientSideOptions */ public function getOnValidationError() { - return $this->getOnError(); + return $this->getOption('OnValidationError'); } /** -- cgit v1.2.3