Docs Goabase

FormFile
in package
uses TraitImageTags

FinalYes

Table of Contents

Properties

$typeData  : array<string|int, mixed>

Methods

__construct()  : mixed
getImageTagInstance()  : ImageTag
getInput()  : string
Gets a dropzone for the automatic upload and the option to remove it
getInputFile()  : string
Gets a dropzone for the automatic upload and the option to remove it
getPredefine()  : array{'filePath': string, 'fileField': string, 'btnTitle': string, 'width': string, 'height': string, 'rnd': string}

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' => 'BtnUploadPhotos', 'width' => 'MEDIUM_WIDTH', 'height' => 'MEDIUM_HEIGHT', 'files' => 6]]

Methods

__construct()

public __construct() : mixed

getInput()

Gets a dropzone for the automatic upload and the option to remove it

public getInput(string $strType[, int $nFilesLeft = 0 ]) : string
Parameters
$strType : string
  • flyer, profile
$nFilesLeft : int = 0
Return values
string

getInputFile()

Gets a dropzone for the automatic upload and the option to remove it

public getInputFile(mixed $strType[, string $strFile = '' ]) : string
Parameters
$strType : mixed
  • flyer, profile
$strFile : string = ''
  • the file
Return values
string

getPredefine()

private getPredefine(string $strType) : array{'filePath': string, 'fileField': string, 'btnTitle': string, 'width': string, 'height': string, 'rnd': string}
Parameters
$strType : string
Return values
array{'filePath': string, 'fileField': string, 'btnTitle': string, 'width': string, 'height': string, 'rnd': string}

        
On this page

Search results