메소드 | 설명 | |
---|---|---|
changeBasename ( string $basename ) : |
Changes base name of file without extension (or base name of directory). | |
changeExtension ( string $extension ) : |
Changes file extension. | |
changePath ( string $path ) : |
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. |
public changeBasename ( string $basename ) : |
||
$basename | string | |
리턴 |
public changeExtension ( string $extension ) : |
||
$extension | string | |
리턴 |
public changePath ( string $path ) : |
||
$path | string | |
리턴 |
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 |
public getBasename ( string $suffix = null ) : string | ||
$suffix | string | |
리턴 | string |
public getPathRelativeTo ( string $basePath ) : string | ||
$basePath | string | |
리턴 | string |
public getPathnameRelativeTo ( string $basePathname ) : string | ||
$basePathname | string | |
리턴 | string |
public static purifyBasename ( string $basename ) : string | ||
$basename | string | |
리턴 | string |
public static purifyExtension ( string $extension ) : string | ||
$extension | string | |
리턴 | string |