PHP 클래스 Dmyers\Storage\Adapter\Base

파일 보기 프로젝트 열기: dmyers/laravel-storage

보호된 프로퍼티들

프로퍼티 타입 설명
$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