PHP Class NinjaMutex\Lock\DirectoryLock

Author: Jan Voracek ([email protected])
Inheritance: extends NinjaMutex\Lock\LockAbstract
Show file Open project: arvenil/ninja-mutex

Protected Properties

Property Type Description
$dirname

Public Methods

Method Description
__construct ( string $dirname )
isLocked ( string $name ) : boolean Check if lock is locked
releaseLock ( string $name ) : boolean Release lock

Protected Methods

Method Description
getDirectoryPath ( string $name ) : string
getLock ( string $name, boolean $blocking ) : boolean

Method Details

__construct() public method

public __construct ( string $dirname )
$dirname string

getDirectoryPath() protected method

protected getDirectoryPath ( string $name ) : string
$name string
return string

getLock() protected method

protected getLock ( string $name, boolean $blocking ) : boolean
$name string
$blocking boolean
return boolean

isLocked() public method

Check if lock is locked
public isLocked ( string $name ) : boolean
$name string name of lock
return boolean

releaseLock() public method

Release lock
public releaseLock ( string $name ) : boolean
$name string name of lock
return boolean

Property Details

$dirname protected property

protected $dirname