FormFile
in package
uses
TraitImageTools
Table of Contents
Properties
- $typeData : array<string|int, mixed>
Methods
- __construct() : mixed
- getImageTagInstance() : ImageTag
- getImageToolsInstance() : ImageTools
- getInput() : string
- Gets a dropzone for the automatic upload and the option to remove it
Properties
$typeData
private
static array<string|int, mixed>
$typeData
= ['flyer' => ['filePath' => 'FLYER_MEDIUM', 'fileField' => 'flyerfull', 'btnTitle' => 'BtnUploadFlyer', 'width' => 'LARGE_WIDTH', 'height' => 'LARGE_HEIGHT', 'files' => 1], 'profile' => ['filePath' => 'USER', 'fileField' => 'image', 'btnTitle' => 'BtnUploadProfile', 'width' => 'MEDIUM_WIDTH', 'height' => 'MEDIUM_HEIGHT', 'files' => 1], 'partyphotos' => ['filePath' => 'PARTY_FULL', 'fileField' => 'image_full', 'btnTitle' => 'BtnUploadPhotos', 'width' => 'MEDIUM_WIDTH', 'height' => 'MEDIUM_HEIGHT', 'files' => 100], 'memberphotos' => ['filePath' => 'GLY_FULL', 'fileField' => 'image_full', 'btnTitle' => 'BtnUploadPhotos', 'width' => 'SMALL_WIDTH', 'height' => 'SMALL_HEIGHT', 'files' => 100], 'data' => ['filePath' => 'RECORD_FULL', 'fileField' => 'image_full', 'btnTitle' => 'BtnUploadImage', 'width' => 'MEDIUM_WIDTH', 'height' => 'MEDIUM_HEIGHT', 'files' => 1]]
Methods
__construct()
public
__construct() : mixed
getImageTagInstance()
public
getImageTagInstance() : ImageTag
Return values
ImageTaggetImageToolsInstance()
public
getImageToolsInstance() : ImageTools
Return values
ImageToolsgetInput()
Gets a dropzone for the automatic upload and the option to remove it
public
getInput(mixed $strType[, string $strFile = '' ]) : string
Parameters
- $strType : mixed
-
- flyer, profile
- $strFile : string = ''
-
- the file