PHP 클래스 Filesystem, spaghettiphp

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

공개 프로퍼티들

프로퍼티 타입 설명
$rewrite

공개 메소드들

메소드 설명
copy ( $file, $destination )
createDir ( $dir, $mode = 420 )
delete ( $file, $deleteIfNotEmpty = true )
exists ( $file )
extension ( $file )
filename ( $file )
getFiles ( $path )
hasPermission ( $file, $permission = ['execute', 'read', 'write'] )
isDir ( $path )
isUploaded ( $file )
path ( $path, $absolute = true )
read ( $file )
rename ( $file, $newName )
size ( $file, $rewrite = true )
write ( $file, $content = '', $append = false ) @todo rewrite from scratch

메소드 상세

copy() 공개 정적인 메소드

public static copy ( $file, $destination )

createDir() 공개 정적인 메소드

public static createDir ( $dir, $mode = 420 )

delete() 공개 정적인 메소드

public static delete ( $file, $deleteIfNotEmpty = true )

exists() 공개 정적인 메소드

public static exists ( $file )

extension() 공개 정적인 메소드

public static extension ( $file )

filename() 공개 정적인 메소드

public static filename ( $file )

getFiles() 공개 정적인 메소드

public static getFiles ( $path )

hasPermission() 공개 정적인 메소드

public static hasPermission ( $file, $permission = ['execute', 'read', 'write'] )

isDir() 공개 정적인 메소드

public static isDir ( $path )

isUploaded() 공개 정적인 메소드

public static isUploaded ( $file )

path() 공개 정적인 메소드

public static path ( $path, $absolute = true )

read() 공개 정적인 메소드

public static read ( $file )

rename() 공개 정적인 메소드

public static rename ( $file, $newName )

size() 공개 정적인 메소드

public static size ( $file, $rewrite = true )

write() 공개 정적인 메소드

@todo rewrite from scratch
public static write ( $file, $content = '', $append = false )

프로퍼티 상세

$rewrite 공개적으로 정적으로 프로퍼티

public static $rewrite