/** * Creates a file field element allowing upload of file to the server (and attached to email) * @param string $id The ID of the file element * @param string $label The label of the file element */ function __construct($id, $label, $max_filesize_bytes = 2097152, $allowedExtensions = NULL) { parent::__construct($id, $label); $this->_fieldType = 'file'; $this->_showInEmail = true; $this->setAllowedExtensions($allowedExtensions); $this->setMaxFilesize($max_filesize_bytes); }
/** * JsonFormBuilder_elementPassword * * Creates a password field. * @param string $id The ID of the password field * @param string $label The label of the password field * @param string $defaultValue The default text to be written into the password field */ function __construct($id, $label, $defaultValue = NULL) { parent::__construct($id, $label, $defaultValue); $this->_fieldType = 'password'; }
/** * JsonFormBuilder_elementHidden * * Creates a hidden field. * @param string $id The ID of the hidden field * @param string $label The label of the hidden field * @param string $defaultValue The default value to be written into the hidden field */ function __construct($id, $label, $defaultValue = NULL) { parent::__construct($id, $label, $defaultValue); $this->_fieldType = 'hidden'; $this->_showInEmail = false; }