PHP 클래스 Jackalope\Lock\LockManager

저자: D. Barsotti ([email protected])
상속: implements IteratorAggregat\IteratorAggregate, implements PHPCR\Lock\LockManagerInterface
파일 보기 프로젝트 열기: jackalope/jackalope 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$factory Jackalope\FactoryInterface The jackalope object factory for this object
$locks Contains a list of nodes locks
$objectmanager Jackalope\ObjectManager
$session PHPCR\SessionInterface
$transport Jackalope\Transport\LockingInterface

공개 메소드들

메소드 설명
__construct ( Jackalope\FactoryInterface $factory, ObjectManager $objectManager, PHPCR\SessionInterface $session, Jackalope\Transport\LockingInterface $transport ) : LockManager Create the version manager - there should be only one per session.
addLockToken ( $lockToken ) {@inheritDoc}
createLockInfo ( ) {@inheritDoc}
getIterator ( )
getLock ( $absPath ) {@inheritDoc}
getLockTokens ( ) {@inheritDoc}
getSession ( ) : PHPCR\SessionInterface for the locks to get the session to get their root node
holdsLock ( $absPath ) {@inheritDoc}
isLocked ( $absPath ) {@inheritDoc}
lock ( $absPath, $isDeep, $isSessionScoped, $timeoutHint = PHP_INT_MAX, $ownerInfo = null ) {@inheritDoc}
lockWithInfo ( $absPath, PHPCR\Lock\LockInfoInterface $lockInfo ) {@inheritDoc}
logout ( ) The session logout needs to call this so we are able to release any session based locks that where created through this lock manager.
removeLockToken ( $lockToken ) {@inheritDoc}
unlock ( $absPath ) {@inheritDoc}

메소드 상세

__construct() 공개 메소드

Create the version manager - there should be only one per session.
public __construct ( Jackalope\FactoryInterface $factory, ObjectManager $objectManager, PHPCR\SessionInterface $session, Jackalope\Transport\LockingInterface $transport ) : LockManager
$factory Jackalope\FactoryInterface An object factory implementing "get" as described in \Jackalope\FactoryInterface
$objectManager Jackalope\ObjectManager
$session PHPCR\SessionInterface
$transport Jackalope\Transport\LockingInterface
리턴 LockManager

addLockToken() 공개 메소드

{@inheritDoc}
public addLockToken ( $lockToken )

createLockInfo() 공개 메소드

{@inheritDoc}
public createLockInfo ( )

getIterator() 공개 메소드

public getIterator ( )

getLock() 공개 메소드

{@inheritDoc}
public getLock ( $absPath )

getLockTokens() 공개 메소드

{@inheritDoc}
public getLockTokens ( )

getSession() 공개 메소드

for the locks to get the session to get their root node
public getSession ( ) : PHPCR\SessionInterface
리턴 PHPCR\SessionInterface

holdsLock() 공개 메소드

{@inheritDoc}
public holdsLock ( $absPath )

isLocked() 공개 메소드

{@inheritDoc}
public isLocked ( $absPath )

lock() 공개 메소드

{@inheritDoc}
public lock ( $absPath, $isDeep, $isSessionScoped, $timeoutHint = PHP_INT_MAX, $ownerInfo = null )

lockWithInfo() 공개 메소드

Convenience method forwarding to lock()
public lockWithInfo ( $absPath, PHPCR\Lock\LockInfoInterface $lockInfo )
$lockInfo PHPCR\Lock\LockInfoInterface

logout() 공개 메소드

The session logout needs to call this so we are able to release any session based locks that where created through this lock manager.
public logout ( )

removeLockToken() 공개 메소드

{@inheritDoc}
public removeLockToken ( $lockToken )

unlock() 공개 메소드

{@inheritDoc}
public unlock ( $absPath )

프로퍼티 상세

$factory 보호되어 있는 프로퍼티

The jackalope object factory for this object
protected FactoryInterface,Jackalope $factory
리턴 Jackalope\FactoryInterface

$locks 보호되어 있는 프로퍼티

Contains a list of nodes locks
protected $locks

$objectmanager 보호되어 있는 프로퍼티

protected ObjectManager,Jackalope $objectmanager
리턴 Jackalope\ObjectManager

$session 보호되어 있는 프로퍼티

protected SessionInterface,PHPCR $session
리턴 PHPCR\SessionInterface

$transport 보호되어 있는 프로퍼티

protected LockingInterface,Jackalope\Transport $transport
리턴 Jackalope\Transport\LockingInterface