TYPO3  7.6
Public Member Functions | Private Attributes | List of all members
SplFileInfo Class Reference
Inheritance diagram for SplFileInfo:
MockSplFileInfo

Public Member Functions

 __construct ($file, $relativePath, $relativePathname)
 
 getRelativePath ()
 
 getRelativePathname ()
 
 getContents ()
 

Private Attributes

 $relativePath
 
 $relativePathname
 

Detailed Description

Extends to support relative paths.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Definition at line 19 of file SplFileInfo.php.

Constructor & Destructor Documentation

__construct (   $file,
  $relativePath,
  $relativePathname 
)

Constructor.

Parameters
string$fileThe file name
string$relativePathThe relative path
string$relativePathnameThe relative path name

Definition at line 31 of file SplFileInfo.php.

References SplFileInfo\$relativePath, and SplFileInfo\$relativePathname.

Member Function Documentation

getContents ( )

Returns the contents of the file.

Returns
string the contents of the file
Exceptions
\RuntimeException

Definition at line 65 of file SplFileInfo.php.

getRelativePath ( )

Returns the relative path.

Returns
string the relative path

Definition at line 43 of file SplFileInfo.php.

References SplFileInfo\$relativePath.

getRelativePathname ( )

Returns the relative path name.

Returns
string the relative path name

Definition at line 53 of file SplFileInfo.php.

References SplFileInfo\$relativePathname.

Member Data Documentation

$relativePath
private

Definition at line 21 of file SplFileInfo.php.

Referenced by SplFileInfo\__construct(), and SplFileInfo\getRelativePath().

$relativePathname
private

Definition at line 22 of file SplFileInfo.php.

Referenced by SplFileInfo\__construct(), and SplFileInfo\getRelativePathname().