summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket769.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket769.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket769.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket769.php b/tests/FunctionalTests/tickets/protected/pages/Ticket769.php
new file mode 100644
index 00000000..e1a86f0d
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket769.php
@@ -0,0 +1,26 @@
+<?php
+
+Prado::Using ('System.Web.UI.ActiveControls.*');
+
+class Ticket769 extends TPage
+{
+ public function showAcallback( $sender, $param )
+ {
+ $this->A->Visible = true;
+ $this->B->Visible = false;
+ $this->Main->render( $param->NewWriter );
+ }
+
+ public function showBcallback( $sender, $param )
+ {
+ $this->A->Visible = false;
+ $this->B->Visible = true;
+ $this->Main->render( $param->NewWriter );
+ }
+
+ public function clicked( $sender, $param )
+ {
+ $sender->Text = $sender->Text.' clicked';
+ }
+}
+?> \ No newline at end of file