AirLay backend

DownloadedFileEntity extends DatabaseEntity
in package

Table of Contents

AVAILABLE_STATUS  = [self::WAIT_STATUS, self::PROGRESS_STATUS, self::FINISH_STATUS, self::ERROR_STATUS, self::DOWNLOADED_STATUS]
DOWNLOADED_STATUS  = 'downloaded'
ERROR_STATUS  = 'error'
FINISH_STATUS  = 'finish'
PROGRESS_STATUS  = 'progress'
WAIT_STATUS  = 'wait'
$_id  : ObjectId
$createTime  : int
$extension  : string
$fileName  : string
$filePath  : string
$organizationId  : ObjectId
$status  : string
$userId  : ObjectId
__construct()  : mixed
__toString()  : string
bsonSerialize()  : array<string|int, mixed>
bsonUnserialize()  : void
getExtension()  : string
getFileName()  : string
getFilePath()  : string
getId()  : ObjectId
getOrganizationId()  : ObjectId
getStatus()  : string
getUserId()  : ObjectId
jsonSerialize()  : array<string|int, mixed>
parseObjectId()  : ObjectId|null
setExtension()  : self
setFilePath()  : self
setId()  : self
setStatus()  : self
toArray()  : array<string|int, mixed>

Constants

AVAILABLE_STATUS

public mixed AVAILABLE_STATUS = [self::WAIT_STATUS, self::PROGRESS_STATUS, self::FINISH_STATUS, self::ERROR_STATUS, self::DOWNLOADED_STATUS]

Properties

Methods

__construct()

public __construct(ObjectId $organizationId, ObjectId $userId, string $fileName, string $extension[, ObjectId|null $id = null ]) : mixed
Parameters
$organizationId : ObjectId
$userId : ObjectId
$fileName : string
$extension : string
$id : ObjectId|null = null
Return values
mixed

__toString()

public __toString() : string
Return values
string

bsonSerialize()

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

bsonUnserialize()

public bsonUnserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>
Return values
void

jsonSerialize()

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

parseObjectId()

public static parseObjectId(mixed $objectId) : ObjectId|null
Parameters
$objectId : mixed
Return values
ObjectId|null

setExtension()

public setExtension(string $extension) : self
Parameters
$extension : string
Return values
self

setFilePath()

public setFilePath(string $filePath) : self
Parameters
$filePath : string
Return values
self

setId()

public setId(ObjectId $id) : self
Parameters
$id : ObjectId
Return values
self

setStatus()

public setStatus(string $status) : self
Parameters
$status : string
Return values
self

toArray()

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

Search results