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

class ActiveHiddenFieldTest extends TPage
{
    public function onSetValue($sender, $param)
    {
        $this->HiddenFieldEmpty->setValue('No longer empty');
        $this->ResponseLabel->setText($this->HiddenFieldEmpty->getValue());
    }
    
    public function onGetValue($sender, $param)
    {
        $this->ResponseLabel->setText($this->HiddenFieldUsed->getValue());
    }
    
    public function onGetBothValues($sender, $param)
    {
        $this->ResponseLabel->setText($this->HiddenFieldEmpty->getValue().'|'.$this->HiddenFieldUsed->getValue());
    }
}