/** * Constructor * * @return void */ function FormCheckbox() { parent::FormElement(); $this->setAttribute('separator', ' '); $this->setAttribute('class', 'checkbox'); $this->return_type = strtolower($this->return_type); if (!($this->return_type == 'string' || $this->return_type == 'array')) { echo 'Checkbox return type (' . $this->return_type . ') is not supported'; exit; } }
/** * Constructor * * @return void */ function FormHidden() { parent::FormElement(); }
/** * Constructor * * @return void */ function FormFile() { parent::FormElement(); $this->setAttribute('class', 'file'); }
/** * Constructor * * @return void */ function FormButton() { parent::FormElement(); $this->setAttribute('class', 'button'); }
/** * Constructor * * @return void */ function FormText() { parent::FormElement(); }
/** * Constructor * * @return void */ function FormRadio() { parent::FormElement(); $this->setAttribute('separator', " "); $this->setAttribute('class', 'radio'); }
/** * Constructor * * @return void */ function FormPassword() { parent::FormElement(); }
/** * Constructor * * @return void */ function FormSubmit() { parent::FormElement(); $this->setAttribute('class', 'submit'); }
/** * Constructor * * @return void */ function FormSelect() { parent::FormElement(); }
/** * Constructor * * @return void */ function FormCheckbox() { parent::FormElement(); $this->setAttribute('separator', ' '); $this->setAttribute('class', 'checkbox'); }