BinaryPayload
in package
Represents a request binary payload.
Tags
Table of Contents
Constants
- TS_VECTOR_MAX_LEN = 1048575
Properties
- $hash : string|null
- $id : int
- $imagePxHeight : int
- $imagePxWidth : int
- $size : int
- $tmpPath : string
Methods
- __construct() : mixed
- __destruct() : mixed
- backup() : void
- delete() : bool
- getHeaders() : array<string, mixed>
- getPath() : string
- getRequestMetadata() : DatasetNode
- getStorageDir() : string
- restore() : bool
- upload() : void
- getRequestMetadataRaw() : array<string|int, string|null>
- readImageDimensions() : void
- toBytes() : int
- updateFts() : bool
- updateSpatialSearch() : void
Constants
TS_VECTOR_MAX_LEN
public
mixed
TS_VECTOR_MAX_LEN
= 1048575
Properties
$hash
private
string|null
$hash
$id
private
int
$id
$imagePxHeight
private
int
$imagePxHeight
$imagePxWidth
private
int
$imagePxWidth
$size
private
int
$size
$tmpPath
private
string
$tmpPath
Methods
__construct()
public
__construct(int $id) : mixed
Parameters
- $id : int
__destruct()
public
__destruct() : mixed
backup()
public
backup(string $suffix) : void
Parameters
- $suffix : string
delete()
public
delete([string $suffix = '' ]) : bool
Parameters
- $suffix : string = ''
Return values
boolgetHeaders()
public
getHeaders() : array<string, mixed>
Tags
Return values
array<string, mixed>getPath()
public
getPath([bool $create = false ][, string $suffix = '' ]) : string
Parameters
- $create : bool = false
- $suffix : string = ''
Return values
stringgetRequestMetadata()
public
getRequestMetadata() : DatasetNode
Return values
DatasetNodegetStorageDir()
public
static getStorageDir(int $id, string $path, int $level, int $levelMax) : string
Parameters
- $id : int
- $path : string
- $level : int
- $levelMax : int
Return values
stringrestore()
public
restore(string $suffix) : bool
Parameters
- $suffix : string
Return values
boolupload()
public
upload() : void
getRequestMetadataRaw()
private
getRequestMetadataRaw() : array<string|int, string|null>
Return values
array<string|int, string|null>readImageDimensions()
private
readImageDimensions() : void
toBytes()
private
toBytes(string $number) : int
Parameters
- $number : string
Return values
intupdateFts()
private
updateFts() : bool
Return values
boolupdateSpatialSearch()
private
updateSpatialSearch(SpatialInterface $spatial) : void
Parameters
- $spatial : SpatialInterface