diff options
author | ctrlaltca@gmail.com <> | 2012-01-18 09:35:07 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2012-01-18 09:35:07 +0000 |
commit | a26837b0990f65b7091263026296d2aff68d9838 (patch) | |
tree | 3eea57ec60f9c7136a42183e1f6d057a0a1bc997 /demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php | |
parent | e3e61542d5a5292b12c987998326f686a5e11d81 (diff) |
fixed #380 (TCustomValidator's ControlToValidate should be optional); added a quickstart example, updated 2 tests that were broken + HISTORY
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php index 0db261b9..da0d15b2 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php +++ b/demos/quickstart/protected/pages/Controls/Samples/TCustomValidator/Home.php @@ -7,6 +7,12 @@ class Home extends TPage if($param->Value!=='test')
$param->IsValid=false;
}
+
+ public function serverValidateNoControl($sender,$param)
+ {
+ if($this->TextBox4->Text!=='test')
+ $param->IsValid=false;
+ }
}
?>
\ No newline at end of file |