PHP 클래스 FileNamingResolver\FileInfo

저자: Victor Bocharsky ([email protected])
상속: extends SplFileInfo
파일 보기 프로젝트 열기: bocharsky-bw/FileNamingResolver 1 사용 예제들

공개 메소드들

메소드 설명
changeBasename ( string $basename ) : FileInfo Changes base name of file without extension (or base name of directory).
changeExtension ( string $extension ) : FileInfo Changes file extension.
changePath ( string $path ) : FileInfo Changes directory path to the file / directory.
createPathname ( string $path, string $basename, string $extension = '' ) : string Creates full pathname to the file / directory based on its path, basename and extension
getBasename ( string $suffix = null ) : string Returns base name of file without extension (or base name of directory).
getPathRelativeTo ( string $basePath ) : string
getPathnameRelativeTo ( string $basePathname ) : string
isExists ( ) : boolean Checks whether a file / directory exists.
purifyBasename ( string $basename ) : string
purifyExtension ( string $extension ) : string
purifyPath ( string $path ) : string
toString ( ) : string Converts object to a string representation.

메소드 상세

changeBasename() 공개 메소드

Changes base name of file without extension (or base name of directory).
public changeBasename ( string $basename ) : FileInfo
$basename string
리턴 FileInfo

changeExtension() 공개 메소드

Changes file extension.
public changeExtension ( string $extension ) : FileInfo
$extension string
리턴 FileInfo

changePath() 공개 메소드

Changes directory path to the file / directory.
public changePath ( string $path ) : FileInfo
$path string
리턴 FileInfo

createPathname() 공개 정적인 메소드

Creates full pathname to the file / directory based on its path, basename and extension
public static createPathname ( string $path, string $basename, string $extension = '' ) : string
$path string Directory path to the file (or directory)
$basename string Base name of file without extension (or base name of directory)
$extension string [OPTIONAL] File extension (empty for directory)
리턴 string

getBasename() 공개 메소드

Returns base name of file without extension (or base name of directory).
public getBasename ( string $suffix = null ) : string
$suffix string
리턴 string

getPathRelativeTo() 공개 메소드

public getPathRelativeTo ( string $basePath ) : string
$basePath string
리턴 string

getPathnameRelativeTo() 공개 메소드

public getPathnameRelativeTo ( string $basePathname ) : string
$basePathname string
리턴 string

isExists() 공개 메소드

Checks whether a file / directory exists.
public isExists ( ) : boolean
리턴 boolean

purifyBasename() 공개 정적인 메소드

public static purifyBasename ( string $basename ) : string
$basename string
리턴 string

purifyExtension() 공개 정적인 메소드

public static purifyExtension ( string $extension ) : string
$extension string
리턴 string

purifyPath() 공개 정적인 메소드

public static purifyPath ( string $path ) : string
$path string
리턴 string

toString() 공개 메소드

Converts object to a string representation.
public toString ( ) : string
리턴 string