SilverStripe\UserForms\Model\Submission\SubmittedFileField
A file uploaded on a {@link UserDefinedForm} and attached to a single {@link SubmittedForm}.
Synopsis
class SubmittedFileField
extends SubmittedFormField
{
- // members
- private static array $has_one = ;
- private static string $table_name = 'SubmittedFileField';
- // methods
- public string getFormattedValue()
- public string getExportValue()
- public string getLink()
- public string getFileName()
- // Inherited methods from SubmittedFormField
- public boolean canCreate()
- public boolean canView()
- public boolean canEdit()
- public boolean canDelete()
- public string getFormattedValue()
- public Text getExportValue()
- public EditableFormField getEditableField()
Hierarchy
Members
private
- $has_one
- $table_name
Methods
public
- getExportValue() — Return the value for this field in the CSV export.
- getFileName() — Return the name of the file, if present
- getFormattedValue() — Return the value of this field for inclusion into things such as reports.
- getLink() — Return the link for the file attached to this submitted form field.
Inherited from SilverStripe\UserForms\Model\Submission\SubmittedFormField
public
- canCreate()
- canDelete()
- canEdit()
- canView()
- getEditableField() — Find equivalent editable field for this submission.
- getExportValue() — Return the value of this submitted form field suitable for inclusion into the CSV
- getFormattedValue() — Generate a formatted value for the reports and email notifications.