summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket21.php
blob: 3caca20b8e30d205c63caf50cce949d725922197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php

class Ticket21 extends TPage
{
	public function onLoad($param)
	{
		parent::onLoad($param);

		if(!$this->IsPostBack)
			$this->setViewState("clicks", 0);
	}

	public function doClick($sender, $param)
	{
		$clicks = $this->getViewState("clicks");
		$clicks++;
		$this->label1->setText("Radio button clicks: $clicks");
		$this->setViewState("clicks", $clicks);
	}
}