コード例 #1
0
ファイル: Submit.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("submit");
     $this->setAttribute("value", __('btn.submit'));
     $this->setAttribute("name", "submit");
 }
コード例 #2
0
ファイル: Save.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("submit");
     $this->setAttribute("name", "save");
     $this->setValue("Save");
 }
コード例 #3
0
ファイル: Password.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("password");
     $this->setAttribute('autocomplete', 'off');
     $this->readonly();
     $this->setAttribute('onfocus', "if (this.hasAttribute('readonly')) { this.removeAttribute('readonly'); this.blur(); this.focus(); }");
 }
コード例 #4
0
ファイル: Hidden.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("hidden");
 }
コード例 #5
0
ファイル: Date.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType('text');
     $this->addClass('date');
 }
コード例 #6
0
ファイル: Text.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("text");
 }
コード例 #7
0
ファイル: Email.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("email");
 }
コード例 #8
0
ファイル: Datetime.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->addClass('datetime');
 }
コード例 #9
0
ファイル: Radio.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("radio");
 }
コード例 #10
0
ファイル: Checkbox.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("checkbox");
     $this->setValue(1);
 }
コード例 #11
0
ファイル: Cancel.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("reset");
     $this->setAttribute("value", "Cancel");
 }
コード例 #12
0
ファイル: Time.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->addClass("time");
 }
コード例 #13
0
ファイル: Number.php プロジェクト: pckg/htmlbuilder
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType("number");
 }