Level51\Cloudinary\MultiUploadField
Multi file upload field for cloudinary using their javascript widget.
Synopsis
class MultiUploadField
extends UploadField
{
- // members
- private $relation;
- private array|null $files;
- private integer $allowedMaxFileNumber = 10;
- // Inherited members from UploadField
- protected string $fieldHolderTemplate;
- protected array $extraClasses;
- public array $allowedExtensions;
- // methods
- public void getPayload()
- public void setValue()
- public mixed getFiles()
- public array getFilesPayload()
- public $this setRelation()
- public $this setAllowedMaxFileNumber()
- public int getAllowedMaxFileNumber()
- // Inherited methods from UploadField
- public string Field()
- public UploadField|FormField performReadonlyTransformation()
- public boolean showRemove()
- public string|array getPayload()
- public DataObject|Image|null getFile()
- public string getFolder()
- public string getFolderName()
- public string getCloudName()
- public array|null getAllowedExtensions()
- public $this setFolder()
- public $this setFolderName()
- public $this disableCropping()
- public $this setRatio()
- public UploadField|void setAllowedExtensions()
- public UploadField setAllowedFileCategories()
Hierarchy
Extends
Members
private
- $allowedMaxFileNumber — int
- $files — Level51\Cloudinary\array|null
- $relation — array
protected
- $extraClasses
- $fieldHolderTemplate
public
- $allowedExtensions
Methods
public
- getAllowedMaxFileNumber() — Get the max file limit.
- getFiles() — Get already stored files if there are any
- getFilesPayload() — Get the flat image info of each stored file.
- getPayload()
- setAllowedMaxFileNumber() — Limit the amount of files that can be uploaded.
- setRelation() — Set the relation from the CloudinaryImage to the rel. object.
- setValue()
Inherited from Level51\Cloudinary\UploadField
public
- Field() — Get the actual upload field.
- disableCropping() — Disable the cropping interface before the actual upload.
- getAllowedExtensions() — Get allowed file extensions.
- getCloudName() — Get the Cloudinary "cloud name".
- getFile() — Get the cloudinary image record according to the value if set.
- getFolder() — Get the upload folder/path.
- getFolderName() — Get the upload folder/path.
- getPayload() — Get the frontend payload passed to the vue component.
- performReadonlyTransformation() — Return a clone with readonly flag set to true.
- setAllowedExtensions() — Set allowed file extensions.
- setAllowedFileCategories() — Set allowed file extensions by category.
- setFolder() — Change the folder to save into.
- setFolderName() — Change the folder to save into.
- setRatio() — Set a aspect ratio for the image cropping.
- showRemove() — Check if the remove button should be shown.