PHP 클래스 Pagekit\Filesystem\Filesystem

파일 보기 프로젝트 열기: pagekit/pagekit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$adapters Pagekit\Filesystem\Adapter\AdapterInterface[]

공개 메소드들

메소드 설명
copy ( string $source, string $target ) : boolean Copies a file.
copyDir ( string $source, string $target ) : boolean Copies a directory.
delete ( string | array $files ) : boolean Deletes a file.
exists ( string | array $files ) : boolean Checks whether a file or directory exists.
getAdapter ( string $protocol ) : Pagekit\Filesystem\Adapter\AdapterInterface | null Gets a adapter.
getPath ( string $file, boolean $local = false ) : string | false Gets canonicalized file path or localpath.
getPathInfo ( string $file, string $option = null ) : string | array Gets file path info.
getUrl ( string $file, mixed $referenceType = UrlGenerator::ABSOLUTE_PATH ) : string | false Gets file path URL.
listDir ( string $dir ) : array List files and directories inside the specified path.
makeDir ( string $dir, integer $mode = 511, boolean $recursive = true ) : boolean Makes a directory.
registerAdapter ( string $protocol, Pagekit\Filesystem\Adapter\AdapterInterface $adapter ) Registers a adapter.

메소드 상세

copy() 공개 메소드

Copies a file.
public copy ( string $source, string $target ) : boolean
$source string
$target string
리턴 boolean

copyDir() 공개 메소드

Copies a directory.
public copyDir ( string $source, string $target ) : boolean
$source string
$target string
리턴 boolean

delete() 공개 메소드

Deletes a file.
public delete ( string | array $files ) : boolean
$files string | array
리턴 boolean

exists() 공개 메소드

Checks whether a file or directory exists.
public exists ( string | array $files ) : boolean
$files string | array
리턴 boolean

getAdapter() 공개 메소드

Gets a adapter.
public getAdapter ( string $protocol ) : Pagekit\Filesystem\Adapter\AdapterInterface | null
$protocol string
리턴 Pagekit\Filesystem\Adapter\AdapterInterface | null

getPath() 공개 메소드

Gets canonicalized file path or localpath.
public getPath ( string $file, boolean $local = false ) : string | false
$file string
$local boolean
리턴 string | false

getPathInfo() 공개 메소드

Gets file path info.
public getPathInfo ( string $file, string $option = null ) : string | array
$file string
$option string
리턴 string | array

getUrl() 공개 메소드

Gets file path URL.
public getUrl ( string $file, mixed $referenceType = UrlGenerator::ABSOLUTE_PATH ) : string | false
$file string
$referenceType mixed
리턴 string | false

listDir() 공개 메소드

List files and directories inside the specified path.
public listDir ( string $dir ) : array
$dir string
리턴 array

makeDir() 공개 메소드

Makes a directory.
public makeDir ( string $dir, integer $mode = 511, boolean $recursive = true ) : boolean
$dir string
$mode integer
$recursive boolean
리턴 boolean

registerAdapter() 공개 메소드

Registers a adapter.
public registerAdapter ( string $protocol, Pagekit\Filesystem\Adapter\AdapterInterface $adapter )
$protocol string
$adapter Pagekit\Filesystem\Adapter\AdapterInterface

프로퍼티 상세

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

protected AdapterInterface[],Pagekit\Filesystem\Adapter $adapters
리턴 Pagekit\Filesystem\Adapter\AdapterInterface[]