1 | <?php |
||
31 | class Input extends Common |
||
32 | { |
||
33 | /** |
||
34 | * the name of element |
||
35 | * |
||
36 | * @access private |
||
37 | * @var string |
||
38 | */ |
||
39 | private $_sType = null; |
||
40 | |||
41 | /** |
||
42 | * the label of element |
||
43 | * |
||
44 | * @access private |
||
45 | * @var string |
||
46 | */ |
||
47 | private $_sLabel = null; |
||
48 | |||
49 | /** |
||
50 | * the value of element |
||
51 | * |
||
52 | * @access private |
||
53 | * @var string |
||
54 | */ |
||
55 | private $_sValue = null; |
||
56 | |||
57 | /** |
||
58 | * constructor that it increment (static) for all use |
||
59 | * |
||
60 | * @access public |
||
61 | * @param string $sName name |
||
62 | * @param string $sType type of input |
||
63 | * @param string $sLabel label of input |
||
64 | * @param string $sValue value of input |
||
65 | */ |
||
66 | public function __construct(string $sName, string $sType, string $sLabel = null, string $sValue = null) |
||
74 | |||
75 | /** |
||
76 | * get the type |
||
77 | * |
||
78 | * @access public |
||
79 | * @return string |
||
80 | */ |
||
81 | public function getType() : string |
||
85 | |||
86 | /** |
||
87 | * set the type |
||
88 | * |
||
89 | * @access public |
||
90 | * @param string $sType type of input; |
||
91 | * @return \Venus\lib\Form\Input |
||
92 | */ |
||
93 | public function setType(string $sType) : Input |
||
98 | |||
99 | /** |
||
100 | * get the Value |
||
101 | * |
||
102 | * @access public |
||
103 | * @return string |
||
104 | */ |
||
105 | public function getValue() : string |
||
109 | |||
110 | /** |
||
111 | * set the Value |
||
112 | * |
||
113 | * @access public |
||
114 | * @param string $sValue Value of input; |
||
115 | * @return \Venus\lib\Form\Input |
||
116 | */ |
||
117 | public function setValue(string $sValue) : Input |
||
122 | |||
123 | /** |
||
124 | * get the Label |
||
125 | * |
||
126 | * @access public |
||
127 | * @return string |
||
128 | */ |
||
129 | public function getLabel() : string |
||
133 | |||
134 | /** |
||
135 | * set the Label |
||
136 | * |
||
137 | * @access public |
||
138 | * @param string $sLabel Label of input; |
||
139 | * @return \Venus\lib\Form\Input |
||
140 | */ |
||
141 | public function setLabel(string $sLabel) : Input |
||
146 | |||
147 | /** |
||
148 | * if the button is clicked |
||
149 | * |
||
150 | * @access public |
||
151 | * @param string $sType type of input; |
||
152 | * @return boolean |
||
153 | */ |
||
154 | public function isClicked(string $sType) : bool |
||
163 | |||
164 | /** |
||
165 | * get the <html> |
||
166 | * |
||
167 | * @access public |
||
168 | * @return string |
||
169 | */ |
||
170 | public function fetch() : string |
||
191 | } |
||
192 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.