summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/features/protected/pages/ActiveControls/Calculator2.php
blob: 8d184cb9cde20466e68fddef0c3e40719704b80a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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); 
	}
}