summaryrefslogtreecommitdiff
path: root/tests/FunctionalTests/tickets/protected/pages/Ticket660.php
blob: 2785a81645ed06e63a1e6807515c3dd036036efc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
Prado::Using ('System.Web.UI.ActiveControls.*');
class Ticket660 extends TPage {

    public function __construct() {
        Prado::getApplication()->getGlobalization()->setCharset('ISO-8859-1');
        parent::__construct();
    }

    public function changeA($sender,$param) {
        $iso_text=iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ äöü');
        $this->A->setText($this->T->getText() . $iso_text);
    }

	public function suggest($sender, $param)
	{
        $token=$param->getCallbackParameter();
		$sender->setDataSource(array(
            1 => 'ABC Token:'.$token,
            2 => iconv('UTF-8', 'ISO-8859-1//IGNORE', 'ÄÖÜ').' Token:'.$token
        ));
		$sender->dataBind();
	}

}
?>