/** * */ function __construct() { parent::__construct(); $this->setType("submit"); $this->setAttribute("value", __('btn.submit')); $this->setAttribute("name", "submit"); }
/** * */ function __construct() { parent::__construct(); $this->setType("submit"); $this->setAttribute("name", "save"); $this->setValue("Save"); }
/** * @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'); } }
/** * */ function __construct() { parent::__construct(); $this->setType("hidden"); }
/** * */ function __construct() { parent::__construct(); $this->setType('text'); $this->addClass('date'); }
/** * */ function __construct() { parent::__construct(); $this->setType("text"); }
/** * */ function __construct() { parent::__construct(); $this->setType("email"); }
/** * */ function __construct() { parent::__construct(); $this->addClass('datetime'); }
/** * */ function __construct() { parent::__construct(); $this->setType("radio"); }
/** * */ function __construct() { parent::__construct(); $this->setType("checkbox"); $this->setValue(1); }
/** * */ function __construct() { parent::__construct(); $this->setType("reset"); $this->setAttribute("value", "Cancel"); }
/** * */ function __construct() { parent::__construct(); $this->addClass("time"); }
/** * */ public function __construct() { parent::__construct(); $this->setType("number"); }