AddItemsAlbumMobileForm
extends AbstractForm
in package
Uses
MultipleTypeUploadTrait
Class CreateAlbumForm.
Tags
Table of Contents
Properties
- $resource : Album
- $allowVideo : bool
Methods
- boot() : void
- canUploadVideos() : bool
- getAcceptableMimeTypes() : string
- getAcceptableTypes() : array<string|int, string>
- allowUploadVideo() : bool
- initialize() : void
- itemUploadValidator() : Shape
- prepare() : void
Properties
$resource
public
Album
$resource
$allowVideo
protected
bool
$allowVideo
= false
Methods
boot()
public
boot(AlbumRepositoryInterface $repository[, int|null $id = null ]) : void
Parameters
- $repository : AlbumRepositoryInterface
- $id : int|null = null
Tags
canUploadVideos()
public
canUploadVideos() : bool
Return values
boolgetAcceptableMimeTypes()
public
getAcceptableMimeTypes(array<string|int, string> $allowedTypes) : string
Parameters
- $allowedTypes : array<string|int, string>
Return values
stringgetAcceptableTypes()
public
getAcceptableTypes() : array<string|int, string>
Return values
array<string|int, string>allowUploadVideo()
protected
allowUploadVideo(User $context) : bool
Parameters
- $context : User
Return values
boolinitialize()
protected
initialize() : void
itemUploadValidator()
protected
itemUploadValidator() : Shape
Return values
Shapeprepare()
protected
prepare() : void