class SplFileInfo extends SplFileInfo

Extends \SplFileInfo to support relative paths.

Methods

__construct(string $file, string $relativePath, string $relativePathname)

No description

string
getRelativePath()

Returns the relative path.

string
getRelativePathname()

Returns the relative path name.

string
getContents()

Returns the contents of the file.

Details

__construct(string $file, string $relativePath, string $relativePathname)

Parameters

string $file The file name
string $relativePath The relative path
string $relativePathname The relative path name

string getRelativePath()

Returns the relative path.

This path does not contain the file name.

Return Value

string the relative path

string getRelativePathname()

Returns the relative path name.

This path contains the file name.

Return Value

string the relative path name

string getContents()

Returns the contents of the file.

Return Value

string the contents of the file

Exceptions

RuntimeException