예제 #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
 /**
  * @param Element $element
  */
 function transferFromElement(Element $element)
 {
     parent::transferFromElement($element);
     $topParent = $this->getTopParent();
     if ($form = $this->closest('form')) {
         $form->setAttribute('autocomplete', 'off');
     } elseif ($topParent instanceof Form) {
         $topParent->setAttribute('autocomplete', 'off');
     }
 }
예제 #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
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->addClass('datetime');
 }
예제 #9
0
파일: Radio.php 프로젝트: pckg/htmlbuilder
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("radio");
 }
예제 #10
0
 /**
  *
  */
 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");
 }