PHP 클래스 Xpressengine\Storage\FilesystemHandler

저자: XE Team (developers) ([email protected])
상속: implements Xpressengine\Storage\ContentReaderInterface
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$filesystem Illuminate\Filesystem\FilesystemManager filesystem manager instance

공개 메소드들

메소드 설명
__construct ( Illuminate\Filesystem\FilesystemManager $filesystem ) constructor
delete ( File $file ) : boolean remove file from storage
exists ( File $file ) : boolean check exists a file
getFilesystem ( ) : Illuminate\Filesystem\FilesystemManager filesystem manager instance
read ( File $file ) : string read file contents
store ( string $content, string $pathname, string $disk ) : boolean file content to disk storage

보호된 메소드들

메소드 설명
getDisk ( string $name ) : Illuminate\Contracts\Filesystem\Filesystem returns disk filesystem

메소드 상세

__construct() 공개 메소드

constructor
public __construct ( Illuminate\Filesystem\FilesystemManager $filesystem )
$filesystem Illuminate\Filesystem\FilesystemManager filesystem manager instance

delete() 공개 메소드

remove file from storage
public delete ( File $file ) : boolean
$file File file instance
리턴 boolean

exists() 공개 메소드

check exists a file
public exists ( File $file ) : boolean
$file File file instance
리턴 boolean

getDisk() 보호된 메소드

returns disk filesystem
protected getDisk ( string $name ) : Illuminate\Contracts\Filesystem\Filesystem
$name string disk name
리턴 Illuminate\Contracts\Filesystem\Filesystem

getFilesystem() 공개 메소드

filesystem manager instance
public getFilesystem ( ) : Illuminate\Filesystem\FilesystemManager
리턴 Illuminate\Filesystem\FilesystemManager

read() 공개 메소드

read file contents
public read ( File $file ) : string
$file File file instance
리턴 string

store() 공개 메소드

file content to disk storage
public store ( string $content, string $pathname, string $disk ) : boolean
$content string file content
$pathname string be saved path and file name
$disk string be saved disk name
리턴 boolean

프로퍼티 상세

$filesystem 보호되어 있는 프로퍼티

filesystem manager instance
protected FilesystemManager,Illuminate\Filesystem $filesystem
리턴 Illuminate\Filesystem\FilesystemManager