1 | <?php |
||
11 | class Select { |
||
12 | |||
13 | protected $options; |
||
14 | private $current; |
||
15 | |||
16 | /** |
||
17 | * Retorna selected="true" se os valores são iguais |
||
18 | * @param mixed $value1 |
||
19 | * @param mixed $value2 |
||
20 | */ |
||
21 | public static function active($value1, $value2 = true) { |
||
26 | |||
27 | /** |
||
28 | * Cria um select com options, selecionando automatico |
||
29 | * @param string[] $options |
||
30 | * @param string $current |
||
31 | */ |
||
32 | public function __construct($options, $current = '') { |
||
36 | |||
37 | /** |
||
38 | * Exibe os options do select |
||
39 | * @return string |
||
40 | */ |
||
41 | public function __toString() { |
||
48 | |||
49 | } |
||
50 |