PHP Класс Neos\Flow\Core\LockManager

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$lockFlagPathAndFilename string See https://jira.neos.io/browse/FLOW-365 for some background information
$lockPathAndFilename string This file contains the actual lock, set via \flock() in lockSiteOrExit()
$lockResource resource

Открытые методы

Метод Описание
__construct ( ) Initializes the manager, removing expired locks
exitIfSiteLocked ( ) : void Exits if the site is currently locked
isSiteLocked ( ) : boolean Tells if the site is currently locked
lockSiteOrExit ( ) : void Locks the site for further requests.
unlockSite ( ) : void Unlocks the site if this request has locked it.

Защищенные методы

Метод Описание
doExit ( ) : void Exit and emit a message about the reason.
getLockPath ( ) : string Returns the absolute path to a directory that should contain the lock files
removeExpiredLock ( ) : void

Описание методов

__construct() публичный Метод

Initializes the manager, removing expired locks
public __construct ( )

doExit() защищенный Метод

Exit and emit a message about the reason.
protected doExit ( ) : void
Результат void

exitIfSiteLocked() публичный Метод

Exits if the site is currently locked
public exitIfSiteLocked ( ) : void
Результат void

getLockPath() защищенный Метод

Returns the absolute path to a directory that should contain the lock files
protected getLockPath ( ) : string
Результат string

isSiteLocked() публичный Метод

Tells if the site is currently locked
public isSiteLocked ( ) : boolean
Результат boolean

lockSiteOrExit() публичный Метод

Locks the site for further requests.
public lockSiteOrExit ( ) : void
Результат void

removeExpiredLock() защищенный Метод

protected removeExpiredLock ( ) : void
Результат void

unlockSite() публичный Метод

Unlocks the site if this request has locked it.
public unlockSite ( ) : void
Результат void

Описание свойств

$lockFlagPathAndFilename защищенное свойство

See https://jira.neos.io/browse/FLOW-365 for some background information
protected string $lockFlagPathAndFilename
Результат string

$lockPathAndFilename защищенное свойство

This file contains the actual lock, set via \flock() in lockSiteOrExit()
protected string $lockPathAndFilename
Результат string

$lockResource защищенное свойство

protected resource $lockResource
Результат resource