blob: fcb70751651a7cd0a5521f562be629c7513038d5 (
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
27
28
29
30
31
32
33
34
35
36
37
38
|
<?php
Prado::Using ('System.Web.UI.ActiveControls.*');
class Ticket671_reopened extends TPage
{
public function save( $sender, $param )
{
$txt="Save callback called ";
if ( $this->isValid )
$txt .= "DATA OK";
else
$txt .= "DATA NOK";
$this->Result->Text.= ' --- ' . $txt;
}
public function check( $sender, $param )
{
//$c=$this->CheckCount;
$this->Result->Text="Check callback called (".++$this->CheckCount.")";
//$this->CheckCount=$c;
if ( $this->testField->getText() == 'Test' )
$param->isValid = true;
else
$param->isValid = false;
}
public function setCheckCount($value)
{
$this->setViewState('CheckCount', $value);
}
public function getCheckCount()
{
return $this->getViewState('CheckCount', 0);
}
}
|