Bitrix API

UploadResult extends Result implements JsonSerializable

Table of Contents

Interfaces

JsonSerializable

Methods

addError()  : mixed
The Uploader retries an upload request if a server returns a non-uploader error.
addErrors()  : mixed
getFileInfo()  : FileInfo|null
getTempFile()  : TempFile|null
getToken()  : string|null
isDone()  : bool
jsonSerialize()  : array<string|int, mixed>
reject()  : self
setDone()  : void
setFileInfo()  : void
setTempFile()  : void
setToken()  : mixed

Methods

addError()

The Uploader retries an upload request if a server returns a non-uploader error.

public addError(Error $error) : mixed

That's why we need to convert an error from Error to UploaderError.

Parameters
$error : Error

addErrors()

public addErrors(array<string|int, mixed> $errors) : mixed
Parameters
$errors : array<string|int, mixed>

getToken()

public getToken() : string|null
Return values
string|null

jsonSerialize()

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

reject()

public static reject(Error $error) : self
Parameters
$error : Error
Return values
self

setDone()

public setDone(bool $done) : void
Parameters
$done : bool

setToken()

public setToken(string $token) : mixed
Parameters
$token : string

        
On this page

Search results