summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls
diff options
context:
space:
mode:
authorwei <>2006-10-19 01:00:00 +0000
committerwei <>2006-10-19 01:00:00 +0000
commit5d6b7068de8768d56c4731cc7301438b69354d57 (patch)
tree68cb0198f50a545b07432901da6f29f4e7674732 /framework/Web/UI/WebControls
parenta36595a1470db259ce9e723f2ad13b63fd5e8eb6 (diff)
remove duplicate methods.
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r--framework/Web/UI/WebControls/TBaseValidator.php43
1 files changed, 4 insertions, 39 deletions
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');
}
/**