コード例 #1
0
ファイル: InputBlock.php プロジェクト: fewagency/fluent-form
 /**
  * @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);
 }
コード例 #2
0
 /**
  * @param string $name of input
  */
 public function __construct($name)
 {
     $this->withInputName($name);
     parent::__construct();
     $this->containingCheckbox($this->getInputName());
 }