summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket504.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket504.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket504.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket504.php b/tests/FunctionalTests/tickets/protected/pages/Ticket504.php
new file mode 100644
index 00000000..f61bfec3
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket504.php
@@ -0,0 +1,27 @@
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket504 extends TPage
+{
+ private $panels = array('panelA', 'panelB', 'panelC','panelD',);
+ private function showPanel($id, $param) {
+ foreach($this->panels as $panel) {
+ if($id == $panel) {
+ $this->$panel->setAttribute('style', 'display: block;');
+ $this->$panel->render($param->NewWriter);
+ $this->$panel->setVisible(true);
+ } else {
+ $this->$panel->setVisible(false);
+ }
+ }
+ }
+ public function changePanel($sender,$param){
+ $this->showPanel($param->CallbackParameter, $param);
+ }
+ public function loadData_Callback($sender, $param){
+ die("parameter is ".$param->CallbackParameter);
+ }
+}
+
+?> \ No newline at end of file