Bitrix API

File implements Storage

Table of Contents

Interfaces

Storage

Constants

ROOT_DIRECTORY_NAME  = 'body'

Methods

delete()  : bool
download()  : bool
getModificationTime()  : false|int
getSize()  : false|int
read()  : false|string
Try to read of the file from $path.
upload()  : AddResult
write()  : AddResult
Try to write $content to the file on $path.

Constants

ROOT_DIRECTORY_NAME

public mixed ROOT_DIRECTORY_NAME = 'body'

Methods

delete()

public delete(mixed $path) : bool
Parameters
$path : mixed
Return values
bool

download()

public download(string $path[, string $fileName = '' ]) : bool
Parameters
$path : string
$fileName : string = ''
Tags
throws
FileNotFoundException
Return values
bool

getModificationTime()

public getModificationTime(mixed $path) : false|int
Parameters
$path : mixed
Tags
throws
FileNotFoundException
Return values
false|int

read()

Try to read of the file from $path.

public read(string $path) : false|string
Parameters
$path : string
Return values
false|string

upload()

public upload(array<string|int, mixed> $file) : AddResult
Parameters
$file : array<string|int, mixed>
Tags
throws
NotImplementedException
Return values
AddResult

write()

Try to write $content to the file on $path.

public write(string $content[, array<string|int, mixed> $options = [] ]) : AddResult
Parameters
$content : string
$options : array<string|int, mixed> = []
Return values
AddResult

        
On this page

Search results