SplFileInfo
extends SplFileInfo
in package
Class \Hoa\File\SplFileInfo.
Link between \Hoa\Iterator\SplFileInfo and \Hoa\File.
Tags
Table of Contents
Properties
- $_hash : string
- Hash.
- $_relativePath : string
- Relative path.
- $_stream : Generic
- Current stream.
Methods
- __construct() : mixed
- Construct.
- __destruct() : void
- Destruct.
- close() : void
- Close the opened stream.
- getHash() : string
- Get the hash.
- getMTime() : int
- Get the MTime.
- getRelativePath() : string
- Get relative path (if given).
- getRelativePathname() : string
- Get relative pathname (if possible).
- open() : Generic
- Open the SplFileInfo as a Hoa\File stream.
- setRelativePath() : string
- Set relative path.
Properties
$_hash
Hash.
protected
string
$_hash
= null
$_relativePath
Relative path.
protected
string
$_relativePath
= null
$_stream
Current stream.
protected
Generic
$_stream
= null
Methods
__construct()
Construct.
public
__construct(string $filename[, string $relativePath = null ]) : mixed
Parameters
- $filename : string
-
Filename.
- $relativePath : string = null
-
Relative path.
__destruct()
Destruct.
public
__destruct() : void
close()
Close the opened stream.
public
close() : void
getHash()
Get the hash.
public
getHash() : string
Return values
stringgetMTime()
Get the MTime.
public
getMTime() : int
Return values
intgetRelativePath()
Get relative path (if given).
public
getRelativePath() : string
Return values
stringgetRelativePathname()
Get relative pathname (if possible).
public
getRelativePathname() : string
Return values
stringopen()
Open the SplFileInfo as a Hoa\File stream.
public
open() : Generic
Tags
Return values
GenericsetRelativePath()
Set relative path.
public
setRelativePath(string $relativePath) : string
Parameters
- $relativePath : string
-
Relative path.