UploadingFile
in package
implements
Creatable, Deletable
Uses
EntityTrait
This class contains an uploading file.
Uploading files are temporary entities used to handle the chunked upload feature of Jinya CMS
Tags
Interfaces, Classes, Traits and Enums
- Creatable
- Deletable
Table of Contents
- $fileId : int
- $id : string
- __construct() : mixed
- create() : void
- delete() : void
- findByFile() : UploadingFile|null
- Finds an uploading file by the ID of the connected file
- getChunks() : Iterator
- Gets all chunks
- getFile() : File|null
- Gets the corresponding file
Properties
$fileId
public
int
$fileId
The ID of the file the uploading file belongs to
Tags
$id
public
string
$id
Tags
Methods
__construct()
public
__construct() : mixed
Tags
Return values
mixed —create()
public
create() : void
Tags
Return values
void —delete()
public
delete() : void
Tags
Return values
void —findByFile()
Finds an uploading file by the ID of the connected file
public
static findByFile(int $fileId) : UploadingFile|null
Parameters
- $fileId : int
Tags
Return values
UploadingFile|null —getChunks()
Gets all chunks
public
getChunks() : Iterator
Tags
Return values
Iterator —getFile()
Gets the corresponding file
public
getFile() : File|null