Conditions | 3 |
Paths | 4 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function create() |
||
25 | { |
||
26 | parent::create(); |
||
27 | |||
28 | $this->setLabel($this->definition['label']); |
||
29 | |||
30 | $output = '<' . $this->inputType; |
||
31 | |||
32 | foreach ($this->definition['attributes'] as $attr => $value) { |
||
33 | $output .= ' ' . $attr . '="' . $value . '" '; |
||
34 | } |
||
35 | |||
36 | if (!empty($this->getValue())) { |
||
37 | $output .= ' value="' . $this->getValue() . '"'; |
||
38 | } |
||
39 | |||
40 | $output .= '/>'; |
||
41 | |||
42 | $this->element = $output; |
||
43 | |||
44 | return $this; |
||
45 | } |
||
46 | } |