MetaFox

UploadPhotoForm extends AbstractForm
in package
Uses MultipleTypeUploadTrait

Class UploadPhotoForm.

Tags
SuppressWarnings

(PHPMD.CouplingBetweenObjects)

SuppressWarnings

(PHPMD.UnusedLocalVariable)

SuppressWarnings

(PHPMD.ExcessiveMethodLength)

Table of Contents

Properties

$resource  : Photo

Methods

boot()  : void
canUploadVideos()  : bool
getAcceptableMimeTypes()  : string
getAcceptableTypes()  : array<string|int, string>
getLabel()  : string|null
fileUploadValidator()  : Shape
initialize()  : void
prepare()  : void
canCreateAlbum()  : bool

Properties

Methods

getAcceptableMimeTypes()

public getAcceptableMimeTypes(array<string|int, string> $allowedTypes) : string
Parameters
$allowedTypes : array<string|int, string>
Return values
string

getAcceptableTypes()

public getAcceptableTypes() : array<string|int, string>
Return values
array<string|int, string>

getLabel()

public getLabel(array<string|int, string> $types) : string|null
Parameters
$types : array<string|int, string>
Return values
string|null

fileUploadValidator()

protected fileUploadValidator() : Shape
Return values
Shape

prepare()

protected prepare() : void
Tags
throws
AuthenticationException

canCreateAlbum()

private canCreateAlbum(User $context) : bool
Parameters
$context : User
Return values
bool

        
On this page

Search results