/** * * @param string $controlName Control name * @param string $value The value to send, when the user check the box * @param string $label The label of the box. * @param boolean $checked The checkbox is pre-checked or not. */ public function __construct($controlName, $value, $label, $checked = false) { parent::__construct($controlName); $this->checked = $checked; $this->value = $value; $this->label = $label; }
/** * * @param string $controlName The control name * @param array $options Options which has the user. This is a key / value map. Where the value is the label of the select option. * @param array $defaultValues The pre-selected options. */ public function __construct($controlName, $options, $defaultValues = array()) { parent::__construct($controlName); $this->setDefaultValues($defaultValues); $this->options = $options; }
/** * The constructor. * * @param string $controlName Name of the control * @param string $defaultValue The default value set */ public function __construct($controlName, $defaultValue = '') { parent::__construct($controlName); $this->defaultValue = $defaultValue; }