Documentation

SplFileInfo extends SplFileInfo
in package

Class \Hoa\Iterator\SplFileInfo.

Enhance SplFileInfo implementation.

Tags
copyright

Copyright © 2007-2017 Hoa community

license

New BSD License

Table of Contents

Properties

$_hash  : string
Hash.
$_relativePath  : string
Relative path.

Methods

__construct()  : mixed
Construct.
getHash()  : string
Get the hash.
getMTime()  : int
Get the MTime.
getRelativePath()  : string
Get relative path (if given).
getRelativePathname()  : string
Get relative pathname (if possible).
setRelativePath()  : string
Set relative path.

Properties

$_relativePath

Relative path.

protected string $_relativePath = null

Methods

__construct()

Construct.

public __construct(string $filename[, string $relativePath = null ]) : mixed
Parameters
$filename : string

Filename.

$relativePath : string = null

Relative path.

getHash()

Get the hash.

public getHash() : string
Return values
string

getMTime()

Get the MTime.

public getMTime() : int
Return values
int

getRelativePath()

Get relative path (if given).

public getRelativePath() : string
Return values
string

getRelativePathname()

Get relative pathname (if possible).

public getRelativePathname() : string
Return values
string

setRelativePath()

Set relative path.

public setRelativePath(string $relativePath) : string
Parameters
$relativePath : string

Relative path.

Return values
string

        
On this page

Search results