Bitrix API

FileRepository

Table of Contents

Methods

__construct()  : mixed
copyById()  : File|null
deleteById()  : Result
getById()  : File|null
getFileSrc()  : string|null
list()  : FileCollection
put()  : Result
readContent()  : FileContent

Methods

__construct()

public __construct(string $path) : mixed
Parameters
$path : string

deleteById()

public deleteById(int $id) : Result
Parameters
$id : int
Return values
Result

getById()

public getById(int $id[, bool $readContent = false ]) : File|null
Parameters
$id : int
$readContent : bool = false
Return values
File|null

getFileSrc()

public getFileSrc(int $id) : string|null
Parameters
$id : int
Return values
string|null

        
On this page

Search results