PHP 클래스 Sirius\Upload\Container\Local

상속: implements Sirius\Upload\Container\ContainerInterface
파일 보기 프로젝트 열기: siriusphp/upload

보호된 프로퍼티들

프로퍼티 타입 설명
$baseDirectory

공개 메소드들

메소드 설명
__construct ( $baseDirectory )
delete ( string $file ) : boolean Delete the file from the container
has ( string $file ) : boolean This will check if a file is in the container
isWritable ( ) Check if the container is writable
moveUploadedFile ( string $localFile, string $destination ) : boolean Moves a temporary uploaded file to a destination in the container
save ( string $file, string $content ) : boolean Saves the $content string as a file

보호된 메소드들

메소드 설명
ensureDirectory ( $directory )
normalizePath ( $path )

메소드 상세

__construct() 공개 메소드

public __construct ( $baseDirectory )

delete() 공개 메소드

Delete the file from the container
public delete ( string $file ) : boolean
$file string
리턴 boolean

ensureDirectory() 보호된 메소드

protected ensureDirectory ( $directory )

has() 공개 메소드

This will check if a file is in the container
public has ( string $file ) : boolean
$file string
리턴 boolean

isWritable() 공개 메소드

Check if the container is writable
public isWritable ( )

moveUploadedFile() 공개 메소드

Moves a temporary uploaded file to a destination in the container
public moveUploadedFile ( string $localFile, string $destination ) : boolean
$localFile string local path
$destination string
리턴 boolean

normalizePath() 보호된 메소드

protected normalizePath ( $path )

save() 공개 메소드

Saves the $content string as a file
public save ( string $file, string $content ) : boolean
$file string
$content string
리턴 boolean

프로퍼티 상세

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

protected $baseDirectory