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
booldownload()
public
download(string $path[, string $fileName = '' ]) : bool
Parameters
- $path : string
- $fileName : string = ''
Tags
Return values
boolgetModificationTime()
public
getModificationTime(mixed $path) : false|int
Parameters
- $path : mixed
Tags
Return values
false|intgetSize()
public
getSize(mixed $path) : false|int
Parameters
- $path : mixed
Tags
Return values
false|intread()
Try to read of the file from $path.
public
read(string $path) : false|string
Parameters
- $path : string
Return values
false|stringupload()
public
upload(array<string|int, mixed> $file) : AddResult
Parameters
- $file : array<string|int, mixed>
Tags
Return values
AddResultwrite()
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> = []