Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | protected function createItem($value){ |
||
19 | if(\is_array($value)){ |
||
20 | $itemO=new HtmlFormInput(JArray::getDefaultValue($value, "id",""),JArray::getDefaultValue($value, "label",null),JArray::getDefaultValue($value, "type", "text"),JArray::getDefaultValue($value, "value",""),JArray::getDefaultValue($value, "placeholder",JArray::getDefaultValue($value, "label",null))); |
||
21 | return $itemO; |
||
22 | }else |
||
23 | return new HtmlFormInput($value); |
||
24 | } |
||
25 | |||
26 | } |