summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket413.php
diff options
context:
space:
mode:
authorwei <>2006-12-13 10:42:43 +0000
committerwei <>2006-12-13 10:42:43 +0000
commitde545935560f9d3c28ff35da2d9a179279b68a40 (patch)
tree658a1f792ef99f0b258416c8b3794dd40b1365ed /tests/FunctionalTests/tickets/protected/pages/Ticket413.php
parent3c24d31c69dffb6f65214b6d383d446ac122ff14 (diff)
Invalidate #413
Diffstat (limited to 'tests/FunctionalTests/tickets/protected/pages/Ticket413.php')
-rw-r--r--tests/FunctionalTests/tickets/protected/pages/Ticket413.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/FunctionalTests/tickets/protected/pages/Ticket413.php b/tests/FunctionalTests/tickets/protected/pages/Ticket413.php
new file mode 100644
index 00000000..1da32b52
--- /dev/null
+++ b/tests/FunctionalTests/tickets/protected/pages/Ticket413.php
@@ -0,0 +1,31 @@
+<?php
+
+Prado::using('System.Web.UI.ActiveControls.*');
+
+class Ticket413 extends TPage
+{
+ private $_data = array(
+ array('id'=>'ITN001','name'=>'Motherboard','quantity'=>1,'price'=>100.00,'imported'=>true),
+ array('id'=>'ITN002','name'=>'CPU','quantity'=>1,'price'=>150.00,'imported'=>true),
+ array('id'=>'ITN003','name'=>'Harddrive','quantity'=>2,'price'=>80.00,'imported'=>true),
+ array('id'=>'ITN004','name'=>'Sound card','quantity'=>1,'price'=>40.00,'imported'=>false));
+ public function onLoad($param)
+ {
+ parent::onLoad($param);
+
+ if (!$this->IsPostBack)
+ {
+ $this->locations_datagrid->setDataSource($this->_data);
+ $this->locations_datagrid->dataBind();
+ }
+
+ }
+
+ public function bla($sender, $param)
+ {
+ $sender->Text = 'a';
+ }
+
+}
+
+?> \ No newline at end of file