ImageUploadParty
in package
uses
TraitSeo, TraitImageTools
Table of Contents
Properties
- $autoFile : array<string|int, mixed>
- $image : Image
- $imageUpload : ImageUpload
- $input : Input
- $user : User
Methods
- __construct() : mixed
- checkCopyright() : bool
- Checks for copyright using a TinEye API by analyzing the provided image file.
- getImageToolsInstance() : ImageTools
- getSeoInstance() : Seo
- processPhotosParty() : void
- party photo upload
- uploadFlyer() : array<string|int, mixed>
- Uploads the flyer and renames it
- getSourceFile() : string
- uploadPhotosParty() : void
Properties
$autoFile
private
array<string|int, mixed>
$autoFile
$image
private
Image
$image
$imageUpload
private
ImageUpload
$imageUpload
$input read-only
private
Input
$input
$user read-only
private
User
$user
Methods
__construct()
public
__construct(User $user, Input $input) : mixed
Parameters
checkCopyright()
Checks for copyright using a TinEye API by analyzing the provided image file.
public
checkCopyright(array<string|int, mixed> $saParty) : bool
Parameters
- $saParty : array<string|int, mixed>
Return values
boolgetImageToolsInstance()
public
getImageToolsInstance() : ImageTools
Return values
ImageToolsgetSeoInstance()
public
getSeoInstance() : Seo
Return values
SeoprocessPhotosParty()
party photo upload
public
processPhotosParty(array<string|int, mixed> $saParty, array<string|int, mixed> $saInform) : void
Parameters
- $saParty : array<string|int, mixed>
- $saInform : array<string|int, mixed>
uploadFlyer()
Uploads the flyer and renames it
public
uploadFlyer(array<string|int, mixed> $saParty) : array<string|int, mixed>
Parameters
- $saParty : array<string|int, mixed>
Return values
array<string|int, mixed>getSourceFile()
private
getSourceFile() : string
Return values
stringuploadPhotosParty()
private
uploadPhotosParty(array<string|int, mixed> $saParty) : void
Parameters
- $saParty : array<string|int, mixed>