PHP Класс Dmyers\Storage\Adapter\Base

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$name

Открытые методы

Метод Описание
copy ( string $path, string $target ) : boolean Copy a file in storage.
delete ( string $path ) : boolean Delete a file from storage.
download ( string $path, string $target ) : boolean Download a file from storage.
exists ( string $path ) : boolean Check if a file exists in storage.
files ( string $path ) : array List all files in storage.
get ( string $path ) : string Get a file's contents from storage.
isDirectory ( string $path ) : boolean Check if a path is a directory in storage.
lastModified ( string $path ) : string Get a file's last modification date from storage.
mime ( string $path ) : string Get a file's mime type from storage.
move ( string $path, string $target ) : boolean Move a file in storage.
put ( string $path, string $contents ) : boolean Put a file into storage.
remoteDownload ( string $url, string $target ) : boolean Download a remote file locally.
remoteUpload ( string $url, string $target ) : boolean Upload a remote file into storage.
render ( string $path ) : Response Render a file from storage to the browser.
size ( string $path ) : string Get a file's size from storage.
type ( string $path ) : string Get a file's type from storage.
upload ( string $path, string $target ) : boolean Upload a file into storage.
url ( string $path ) : string Get the full URL to a file in storage.

Защищенные методы

Метод Описание
config ( $key, $default = null )

Описание методов

config() защищенный Метод

protected config ( $key, $default = null )

copy() абстрактный публичный Метод

Copy a file in storage.
abstract public copy ( string $path, string $target ) : boolean
$path string The path to the file to copy.
$target string The path to the file to store.
Результат boolean

delete() абстрактный публичный Метод

Delete a file from storage.
abstract public delete ( string $path ) : boolean
$path string The path to the file to delete.
Результат boolean

download() абстрактный публичный Метод

Download a file from storage.
abstract public download ( string $path, string $target ) : boolean
$path string The path to the file to download.
$target string The path to the local file to store.
Результат boolean

exists() абстрактный публичный Метод

Check if a file exists in storage.
abstract public exists ( string $path ) : boolean
$path string The path to the file to check.
Результат boolean

files() абстрактный публичный Метод

List all files in storage.
abstract public files ( string $path ) : array
$path string The path to list files from.
Результат array

get() абстрактный публичный Метод

Get a file's contents from storage.
abstract public get ( string $path ) : string
$path string The path to the file to get.
Результат string

isDirectory() абстрактный публичный Метод

Check if a path is a directory in storage.
abstract public isDirectory ( string $path ) : boolean
$path string The path to check.
Результат boolean

lastModified() абстрактный публичный Метод

Get a file's last modification date from storage.
abstract public lastModified ( string $path ) : string
$path string The path to the file to get the last modified date.
Результат string

mime() абстрактный публичный Метод

Get a file's mime type from storage.
abstract public mime ( string $path ) : string
$path string The path to the file to get the mime.
Результат string

move() абстрактный публичный Метод

Move a file in storage.
abstract public move ( string $path, string $target ) : boolean
$path string The current path to the file to move.
$target string The new path to the file.
Результат boolean

put() абстрактный публичный Метод

Put a file into storage.
abstract public put ( string $path, string $contents ) : boolean
$path string The path to the file to store.
$contents string The file contents to store.
Результат boolean

remoteDownload() публичный Метод

Download a remote file locally.
public remoteDownload ( string $url, string $target ) : boolean
$url string The url to the remote file to download.
$target string The path to the local file to store.
Результат boolean

remoteUpload() публичный Метод

Upload a remote file into storage.
public remoteUpload ( string $url, string $target ) : boolean
$url string The url to the remote file to upload.
$target string The path to the file to store.
Результат boolean

render() публичный Метод

Render a file from storage to the browser.
public render ( string $path ) : Response
$path string The path to the file to render.
Результат Response

size() абстрактный публичный Метод

Get a file's size from storage.
abstract public size ( string $path ) : string
$path string The path to the file to get the size.
Результат string

type() абстрактный публичный Метод

Get a file's type from storage.
abstract public type ( string $path ) : string
$path string The path to the file to get the type.
Результат string

upload() абстрактный публичный Метод

Upload a file into storage.
abstract public upload ( string $path, string $target ) : boolean
$path string The path to the local file to upload.
$target string The path to the file to store.
Результат boolean

url() абстрактный публичный Метод

Get the full URL to a file in storage.
abstract public url ( string $path ) : string
$path string The path to the file to get the url.
Результат string

Описание свойств

$name защищенное свойство

protected $name