trait MutexTrait (View source)

Trait that contains stuff that can be useful for Mutexes.

Properties

protected string $temporaryDirectory The temporary directory.

Methods

setTemporaryDirectory($temporaryDirectory)

Set the temporary directory.

string
getFilenameForMutexKey($mutexKey)

Get the full path of a temporary file that's unique for the concrete5 application and for the specified mutex key.

Details

protected setTemporaryDirectory($temporaryDirectory)

Set the temporary directory.

Parameters

$temporaryDirectory

protected string getFilenameForMutexKey($mutexKey)

Get the full path of a temporary file that's unique for the concrete5 application and for the specified mutex key.

Parameters

$mutexKey

Return Value

string

Exceptions

InvalidMutexKeyException