1
|
|
|
<?php
|
2
|
|
|
/**
|
3
|
|
|
* ExtForms - Button.php
|
4
|
|
|
*
|
5
|
|
|
* Initial version by: MisterX
|
6
|
|
|
* Initial version created on: 31.07.2015
|
7
|
|
|
*/
|
8
|
|
|
|
9
|
|
|
namespace Ext\Button;
|
10
|
|
|
|
11
|
|
|
|
12
|
|
|
use Ext\Component;
|
13
|
|
|
|
14
|
|
|
class Button extends Component
|
15
|
|
|
{
|
16
|
|
|
|
17
|
|
|
public function setText($text){
|
18
|
|
|
return $this->setProperty('text',$text);
|
19
|
|
|
}
|
20
|
|
|
|
21
|
|
|
public function getText(){
|
22
|
|
|
return $this->getProperty('text');
|
23
|
|
|
}
|
24
|
|
|
|
25
|
|
|
public function setToggleGroup($toggleGroup){
|
26
|
|
|
return $this->setProperty('toggleGroup',$toggleGroup);
|
27
|
|
|
}
|
28
|
|
|
|
29
|
|
|
public function getToggleGroup(){
|
30
|
|
|
return $this->getProperty('toggleGroup');
|
31
|
|
|
}
|
32
|
|
|
|
33
|
|
|
public function setEnableToggle($enableToggle){
|
34
|
|
|
return $this->setProperty('enableToggle',$enableToggle);
|
35
|
|
|
}
|
36
|
|
|
|
37
|
|
|
public function getEnableToggle(){
|
38
|
|
|
return $this->getProperty('enableToggle');
|
39
|
|
|
}
|
40
|
|
|
|
41
|
|
|
public function setPressed($pressed){
|
42
|
|
|
return $this->setProperty('pressed',$pressed);
|
43
|
|
|
}
|
44
|
|
|
|
45
|
|
|
public function getPressed(){
|
46
|
|
|
return $this->getProperty('pressed');
|
47
|
|
|
}
|
48
|
|
|
|
49
|
|
|
public function setIcon($icon){
|
50
|
|
|
return $this->setProperty('icon',$icon);
|
51
|
|
|
}
|
52
|
|
|
|
53
|
|
|
public function getIcon(){
|
54
|
|
|
return $this->getProperty('icon');
|
55
|
|
|
}
|
56
|
|
|
|
57
|
|
|
public function setDisabled($disabled){
|
58
|
|
|
return $this->setProperty('disabled',$disabled);
|
59
|
|
|
}
|
60
|
|
|
|
61
|
|
|
public function getDisabled(){
|
62
|
|
|
return $this->getProperty('disabled');
|
63
|
|
|
}
|
64
|
|
|
|
65
|
|
|
/**
|
66
|
|
|
* The size of the Button.
|
67
|
|
|
* @param string $scale - small,medium,large
|
68
|
|
|
* @return $this
|
69
|
|
|
*/
|
70
|
|
|
public function setScale($scale){
|
71
|
|
|
return $this->setProperty('scale',$scale);
|
72
|
|
|
}
|
73
|
|
|
|
74
|
|
|
public function getScale(){
|
75
|
|
|
return $this->getProperty('scale');
|
76
|
|
|
}
|
77
|
|
|
|
78
|
|
|
public function setTooltip($tooltip){
|
79
|
|
|
return $this->setProperty('tooltip',$tooltip);
|
80
|
|
|
}
|
81
|
|
|
|
82
|
|
|
public function getTooltip(){
|
83
|
|
|
return $this->getProperty('tooltip');
|
84
|
|
|
}
|
85
|
|
|
|
86
|
|
|
|
87
|
|
|
|
88
|
|
|
|
89
|
|
|
} |