18 lines
484 B
PHP
18 lines
484 B
PHP
<?php
|
|
|
|
namespace Itguild\App\active_fields;
|
|
|
|
use Itguild\Form2\ActiveField;
|
|
|
|
class TextActiveField extends ActiveField
|
|
{
|
|
|
|
public function fetchField(): string
|
|
{
|
|
$html = '';
|
|
$html .= "</br><label for='" . $this->data['id'] . ">" . $this->data['label'] . "</label>";
|
|
$html .= "<input type='" . $this->data['type'] . "' name='" . $this->data['id'] . "' id='" . $this->data['id'] . "' class='" . $this->data['class'] . "' >";
|
|
return $html;
|
|
}
|
|
|
|
} |