Bitrix API

FileData implements IErrorable

Table of Contents

Interfaces

IErrorable

Methods

__construct()  : mixed
getAttachedObject()  : AttachedObject
getErrorByCode()  : array<string|int, Error>
Getting once error with the necessary code.
getErrors()  : array<string|int, Error>
Getting array of errors.
getErrorsByCode()  : array<string|int, Error>
Getting array of errors with the necessary code.
getFile()  : File|null
getId()  : string
getLinkInService()  : string
getMetaData()  : array<string|int, mixed>
getMimeType()  : string
getName()  : string
getSize()  : int
getSrc()  : string|null
getVersion()  : Version|null
isNeededToConvert()  : bool
setAttachedObject()  : $this
setFile()  : $this
setId()  : $this
setLinkInService()  : $this
setMetaData()  : $this
setMimeType()  : $this
setName()  : $this
setNeedConvert()  : $this
setSize()  : $this
setSrc()  : $this
setVersion()  : $this
toArray()  : mixed

Methods

__construct()

public __construct() : mixed

getAttachedObject()

public getAttachedObject() : AttachedObject
Return values
AttachedObject

getErrorByCode()

Getting once error with the necessary code.

public getErrorByCode(mixed $code) : array<string|int, Error>
Parameters
$code : mixed

Code of error.

Tags
inheritdoc
Return values
array<string|int, Error>

getErrors()

Getting array of errors.

public getErrors() : array<string|int, Error>
Return values
array<string|int, Error>

getErrorsByCode()

Getting array of errors with the necessary code.

public getErrorsByCode(mixed $code) : array<string|int, Error>
Parameters
$code : mixed

Code of error.

Tags
inheritdoc
Return values
array<string|int, Error>

getFile()

public getFile() : File|null
Return values
File|null

getId()

public getId() : string
Return values
string

getLinkInService()

public getLinkInService() : string
Return values
string

getMetaData()

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

getMimeType()

public getMimeType() : string
Return values
string

getName()

public getName() : string
Return values
string

getSize()

public getSize() : int
Return values
int

getSrc()

public getSrc([bool $getFromFileIfPossible = true ]) : string|null
Parameters
$getFromFileIfPossible : bool = true
Return values
string|null

getVersion()

public getVersion() : Version|null
Return values
Version|null

isNeededToConvert()

public isNeededToConvert() : bool
Return values
bool

setAttachedObject()

public setAttachedObject(AttachedObject $attachedObject) : $this
Parameters
$attachedObject : AttachedObject
Return values
$this

setFile()

public setFile(File|null $file) : $this
Parameters
$file : File|null
Return values
$this

setId()

public setId(string $id) : $this
Parameters
$id : string
Return values
$this

setLinkInService()

public setLinkInService(string $linkInService) : $this
Parameters
$linkInService : string
Return values
$this

setMetaData()

public setMetaData(array<string|int, mixed> $metaData) : $this
Parameters
$metaData : array<string|int, mixed>
Return values
$this

setMimeType()

public setMimeType(string $mimeType) : $this
Parameters
$mimeType : string
Return values
$this

setName()

public setName(string $name) : $this
Parameters
$name : string
Return values
$this

setNeedConvert()

public setNeedConvert(bool $needConvert) : $this
Parameters
$needConvert : bool
Return values
$this

setSize()

public setSize(int $size) : $this
Parameters
$size : int
Return values
$this

setSrc()

public setSrc(string $src) : $this
Parameters
$src : string
Return values
$this

setVersion()

public setVersion(Version|null $version) : $this
Parameters
$version : Version|null
Return values
$this

        
On this page

Search results