Documentation

SplFileInfo extends SplFileInfo
in package

Class \Hoa\File\SplFileInfo.

Link between \Hoa\Iterator\SplFileInfo and \Hoa\File.

Tags
copyright

Copyright © 2007-2017 Hoa community

license

New BSD License

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

$_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.

close()

Close the opened stream.

public close() : void

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