PHP Class pharext\Tempfile

Inheritance: extends SplFileInfo
Afficher le fichier Open project: m6w6/pharext Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $prefix, string $suffix = ".tmp" )
__destruct ( ) Unlink the file
closeStream ( ) Close the stream
getStream ( ) : resource Retrieve the stream resource

Method Details

__construct() public méthode

public __construct ( string $prefix, string $suffix = ".tmp" )
$prefix string uniqid() prefix
$suffix string e.g. file extension

__destruct() public méthode

Unlink the file
public __destruct ( )

closeStream() public méthode

Close the stream
public closeStream ( )

getStream() public méthode

Retrieve the stream resource
public getStream ( ) : resource
Résultat resource