MadeHQ\Cloudinary\Forms\UploadFileField
Synopsis
class UploadFileField
extends FormField
{
- // members
- private $fields;
- private $uploadField;
- private static array $allowed_actions = ;
- // methods
- public void __construct()
- public UploadFileField addField()
- public HTTPResponse upload()
- public UploadFileField removeField()
- public FieldList getFieldList()
- public FieldList setForm()
- public void saveInto()
- public void setValue()
- public void setSubmittedValue()
- public boolean isComposite()
- public Upload_Validator getValidator()
- public string getRelationAutosetClass()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Uses
- SilverStripe\Forms\FileUploadReceiver
Members
private
- $allowed_actions — array
- $fields
- $uploadField
Methods
public
- __construct() — {@inheritdoc}
- addField() — Inserts the given field to the list of fields to show in the CMS
- getFieldList()
- getRelationAutosetClass() — Gets the foreign class that needs to be created, or 'File' as default if there is no relationship, or it cannot be determined.
- getValidator()
- isComposite()
- removeField() — Removes the field with the given name from the list of fields to show in the CMS
- saveInto() — {@inheritdoc}
- setForm()
- setSubmittedValue() — {@inheritdoc}
- setValue() — {@inheritdoc}
- upload() — Creates a single file based on a form-urlencoded upload.