/** * Constructor * * @param string $name The first bit of the name of this input. * @param array $options The options list for this select. * @param string $label The form label for this input. * @param string $selected The name of the selected item in this input. * @param bool $isdisabled Are we disabled? */ public function __construct($name, $options, $label, $selected = '', $isdisabled = false) { $this->selected = $selected; $this->options = $options; $this->isdisabled = $isdisabled; parent::__construct($name, $selected, $label); }
/** * Constructor * * @param string $name The element name * @param string $label The label for the form element * @param bool $ischecked Is this thing on? * @param int $tabindex The tab index for the form element. * @param int $locked Is this element locked either 0 or a time. */ public function __construct($name, $label, $ischecked = false, $tabindex = null, $locked = 0) { $this->ischecked = $ischecked; $this->tabindex = $tabindex; $this->locked = $locked; parent::__construct($name, 1, $label); }
/** * Constructor * * @param string $name The input name (the first bit) * @param string $value The input initial value. * @param string $label The label for this input field. * @param bool $isdisabled Is this input disabled. * @param int $tabindex Tab index for this input. */ public function __construct($name, $value, $label, $isdisabled = false, $tabindex = null) { $this->isdisabled = $isdisabled; $this->tabindex = $tabindex; parent::__construct($name, $value, $label); }
/** * Constructor * * @param string $name The input name (the first bit) * @param string $value The input initial value. * @param string $label The label for this input field. * @param bool $isdisabled Is this input disabled. */ public function __construct($name, $value, $label, $isdisabled = false) { $this->isdisabled = $isdisabled; parent::__construct($name, $value, $label); }