FileSystem
Table of Contents
- IMAGES_DIRECTORY = 'images'
- PUBLIC_DIRECTORY = 'public'
- STORAGE = '/public/storage'
- STORAGE_NAME = 'storage'
- getUri() : string
- Returns uri to file
- isAbsolute() : bool
- Check if path is absolute
- open() : File
- Open file in file system
- upload() : void
- Uploads file to web storage
Constants
IMAGES_DIRECTORY
public
string
IMAGES_DIRECTORY
= 'images'
PUBLIC_DIRECTORY
public
string
PUBLIC_DIRECTORY
= 'public'
STORAGE
public
string
STORAGE
= '/public/storage'
STORAGE_NAME
public
string
STORAGE_NAME
= 'storage'
Methods
getUri()
Returns uri to file
public
static getUri(File|Image $file) : string
Parameters
Return values
string —isAbsolute()
Check if path is absolute
public
static isAbsolute(string $path) : bool
Parameters
- $path : string
Return values
bool —open()
Open file in file system
public
static open(string $path) : File
Parameters
- $path : string
Return values
File —upload()
Uploads file to web storage
public
static upload(File &$file[, string $directory = "" ]) : void
Parameters
- $file : File
- $directory : string = ""