Example #1
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("submit");
     $this->setAttribute("value", __('btn.submit'));
     $this->setAttribute("name", "submit");
 }
Example #2
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("submit");
     $this->setAttribute("name", "save");
     $this->setValue("Save");
 }
Example #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');
     }
 }
Example #4
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("hidden");
 }
Example #5
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType('text');
     $this->addClass('date');
 }
Example #6
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("text");
 }
Example #7
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("email");
 }
Example #8
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->addClass('datetime');
 }
Example #9
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("radio");
 }
Example #10
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("checkbox");
     $this->setValue(1);
 }
Example #11
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->setType("reset");
     $this->setAttribute("value", "Cancel");
 }
Example #12
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->addClass("time");
 }
Example #13
0
 /**
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->setType("number");
 }