PHP 클래스 Neos\Flow\Core\LockManager

파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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