for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ajax\semantic\html\collections\form;
use Ajax\common\html\html5\HtmlInput;
use Ajax\semantic\html\collections\form\traits\TextFieldsTrait;
use Ajax\semantic\html\collections\form\traits\FieldTrait;
class HtmlFormInput extends HtmlFormField {
use TextFieldsTrait,FieldTrait;
public function __construct($identifier, $label=NULL,$type="text",$value=NULL,$placeholder=NULL) {
if(!isset($placeholder) && $type==="text")
$placeholder=$label;
parent::__construct("field-".$identifier, new HtmlInput($identifier,$type,$value,$placeholder), $label);
}