Method | Description | |
---|---|---|
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 | |
return |
public changeExtension ( string $extension ) : |
||
$extension | string | |
return |
public changePath ( string $path ) : |
||
$path | string | |
return |
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) |
return | string |
public getBasename ( string $suffix = null ) : string | ||
$suffix | string | |
return | string |
public getPathRelativeTo ( string $basePath ) : string | ||
$basePath | string | |
return | string |
public getPathnameRelativeTo ( string $basePathname ) : string | ||
$basePathname | string | |
return | string |
public static purifyBasename ( string $basename ) : string | ||
$basename | string | |
return | string |
public static purifyExtension ( string $extension ) : string | ||
$extension | string | |
return | string |
public static purifyPath ( string $path ) : string | ||
$path | string | |
return | string |