Documentation

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

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 = ""
Return values
void

Search results