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

Prado::using('System.Web.UI.ActiveControls.*');
class Ticket507 extends TPage
{

	public function onLoad($s)
	{
		//the following fixed the static declaration on the above
		$this->list1->SelectionMode="Multiple";
	}

	function list1_callback($sender, $param)
	{
		$values = $sender->getSelectedValues();
		$this->label1->setText("Selection: ".implode(', ', $values));
	}

	function enable_list()
	{
		$this->list1->enabled = true;
	}
}