summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator2.php
blob: df07440fb71c44f3b8ee8ffbf7b19906ff88a917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
/*
 * Created on 13/05/2006
 */

class Calculator2 extends TPage
{
	public function do_sum($sender, $param)
	{
		$this->c->Text = floatval($this->a->Text) + floatval($this->b->Text);	
	}
	
	public function update_callback($sender, $param)
	{
		$this->do_sum($this->sum, null);
		$this->panel1->renderControl($param->Output); 
	}
}

?>