src/HTMLForm/FormElementFileMultiple.php 1 location
|
@@ 32-45 (lines=14) @@
|
29 |
|
* |
30 |
|
* @SuppressWarnings(PHPMD.UnusedLocalVariable) |
31 |
|
*/ |
32 |
|
public function getHTML() |
33 |
|
{ |
34 |
|
$details = $this->getHTMLDetails(); |
35 |
|
extract($details); |
36 |
|
|
37 |
|
return <<<EOD |
38 |
|
<{$wrapperElement}{$wrapperClass}> |
39 |
|
<label for='$id'>$label</label>$brAfterLabel |
40 |
|
<input id='$id' type='file' multiple{$class}{$name}{$value}{$autofocus}{$required}{$readonly}{$placeholder}{$title}{$multiple}{$pattern}{$max}{$min}{$step}/> |
41 |
|
{$messages} |
42 |
|
</{$wrapperElement}> |
43 |
|
<p class='cf-desc'>{$description}</p> |
44 |
|
EOD; |
45 |
|
} |
46 |
|
} |
47 |
|
|
src/HTMLForm/FormElementInput.php 1 location
|
@@ 17-30 (lines=14) @@
|
14 |
|
* |
15 |
|
* @SuppressWarnings(PHPMD.UnusedLocalVariable) |
16 |
|
*/ |
17 |
|
public function getHTML() |
18 |
|
{ |
19 |
|
$details = $this->getHTMLDetails(); |
20 |
|
extract($details); |
21 |
|
|
22 |
|
return <<<EOD |
23 |
|
<{$wrapperElement}{$wrapperClass}> |
24 |
|
<label for='$id'>$label</label>$brAfterLabel |
25 |
|
<input id='$id'{$type}{$class}{$name}{$value}{$autofocus}{$required}{$readonly}{$placeholder}{$title}{$multiple}{$pattern}{$max}{$min}{$step}/> |
26 |
|
{$messages} |
27 |
|
</{$wrapperElement}> |
28 |
|
<p class='cf-desc'>{$description}</p> |
29 |
|
EOD; |
30 |
|
} |
31 |
|
} |
32 |
|
|