Documentation

BinaryPayload
in package

Represents a request binary payload.

Tags
author

zozlak

Table of Contents

Properties

$hash  : string|null
$id  : 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>
toBytes()  : int
updateFts()  : bool
updateSpatialSearch()  : void

Properties

Methods

__construct()

public __construct(int $id) : mixed
Parameters
$id : int

backup()

public backup(string $suffix) : void
Parameters
$suffix : string

delete()

public delete([string $suffix = '' ]) : bool
Parameters
$suffix : string = ''
Return values
bool

getPath()

public getPath([bool $create = false ][, string $suffix = '' ]) : string
Parameters
$create : bool = false
$suffix : string = ''
Return values
string

getRequestMetadata()

public getRequestMetadata() : DatasetNode
Return values
DatasetNode

getStorageDir()

public static getStorageDir(int $id, string $path, int $level, int $levelMax) : string
Parameters
$id : int
$path : string
$level : int
$levelMax : int
Return values
string

restore()

public restore(string $suffix) : bool
Parameters
$suffix : string
Return values
bool

getRequestMetadataRaw()

private getRequestMetadataRaw() : array<string|int, string|null>
Return values
array<string|int, string|null>

toBytes()

private toBytes(string $number) : int
Parameters
$number : string
Return values
int

        
On this page

Search results