/** * @param string $name of input * @param string $input_type of input or fully qualified classname */ public function __construct($name, $input_type = 'text') { $this->withInputName($name); parent::__construct(); $input_element = $this->generateInputElement($input_type); $this->withInputElement($input_element); }
/** * @param string $name of input */ public function __construct($name) { $this->withInputName($name); parent::__construct(); $this->containingCheckbox($this->getInputName()); }