class Temporary (View source)

Methods

void
__construct(string $lock_filename = 'php://temp')

Temporary Constructor

bool
isOpen()

Check if the streaming is open

void
open()

Open the streaming

void
lockFile(string $lock_filename)

Set the Lock file name

void
close()

Close the streaming

int|bool
write(string $content)

Write content

string
read()

Read content of temp

__destruct()

Temporary destructor

Details

void __construct(string $lock_filename = 'php://temp')

Temporary Constructor

Parameters

string $lock_filename

Return Value

void

Exceptions

ResourceException

bool isOpen()

Check if the streaming is open

Return Value

bool

void open()

Open the streaming

Return Value

void

Exceptions

ResourceException

void lockFile(string $lock_filename)

Set the Lock file name

Parameters

string $lock_filename

Return Value

void

Exceptions

ResourceException

void close()

Close the streaming

Return Value

void

int|bool write(string $content)

Write content

Parameters

string $content

Return Value

int|bool

Exceptions

ResourceException

string read()

Read content of temp

Return Value

string

Exceptions

ResourceException

__destruct()

Temporary destructor