FormFlashFile
in package
implements
UploadedFileInterface, JsonSerializable
Class FormFlashFile
Table of Contents
Interfaces
- UploadedFileInterface
- JsonSerializable
Properties
Methods
- __construct() : mixed
- FormFlashFile constructor.
- __debugInfo() : array<string|int, mixed>
- checkXss() : void
- getClientFilename() : string
- getClientMediaType() : string
- getDestination() : string
- getError() : int
- getField() : string
- getId() : string
- getMetaData() : array<string|int, mixed>
- getSize() : int
- getStream() : StreamInterface
- getTmpFile() : string|null
- isMoved() : bool
- jsonSerialize() : array<string|int, mixed>
- moveTo() : void
- isOk() : bool
- validateActive() : void
Properties
$field
private
string
$field
$flash
private
FormFlash
$flash
$id
private
string
$id
$moved
private
bool
$moved
= false
$upload
private
array<string|int, mixed>
$upload
Methods
__construct()
FormFlashFile constructor.
public
__construct(string $field, array<string|int, mixed> $upload, FormFlash $flash) : mixed
Parameters
- $field : string
- $upload : array<string|int, mixed>
- $flash : FormFlash
__debugInfo()
public
__debugInfo() : array<string|int, mixed>
Attributes
- #[ReturnTypeWillChange]
Return values
array<string|int, mixed>checkXss()
public
checkXss() : void
getClientFilename()
public
getClientFilename() : string
Return values
stringgetClientMediaType()
public
getClientMediaType() : string
Return values
stringgetDestination()
public
getDestination() : string
Return values
stringgetError()
public
getError() : int
Return values
intgetField()
public
getField() : string
Return values
stringgetId()
public
getId() : string
Return values
stringgetMetaData()
public
getMetaData() : array<string|int, mixed>
Return values
array<string|int, mixed>getSize()
public
getSize() : int
Return values
intgetStream()
public
getStream() : StreamInterface
Return values
StreamInterfacegetTmpFile()
public
getTmpFile() : string|null
Return values
string|nullisMoved()
public
isMoved() : bool
Return values
booljsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Attributes
- #[ReturnTypeWillChange]
Return values
array<string|int, mixed>moveTo()
public
moveTo(string $targetPath) : void
Parameters
- $targetPath : string
isOk()
private
isOk() : bool
Return values
bool —return true if there is no upload error
validateActive()
private
validateActive() : void