class File

Properties

protected string $path

File path.

protected resource $handle

File handle.

Methods

static CsvFile
makeTmp()

Creates a new temporary file.

__construct(string $path = null)

Create a new file.

__destruct()

No description

delete()

Delete the file.

close()

Close the file.

string
getPath()

Returns the path to the file.

int
put(string $content)

Add content to the file.

Details

at line 29
static CsvFile makeTmp()

Creates a new temporary file.

Return Value

CsvFile

at line 39
__construct(string $path = null)

Create a new file.

Parameters

string $path

File path. If not set, a temporary file will be created.

at line 50
__destruct()

No description

at line 58
delete()

Delete the file.

at line 67
close()

Close the file.

at line 83
string getPath()

Returns the path to the file.

Return Value

string

at line 94
int put(string $content)

Add content to the file.

Parameters

string $content

File content

Return Value

int