PHP Class Jackalope\Lock\LockManager

Author: D. Barsotti ([email protected])
Inheritance: implements IteratorAggregat\IteratorAggregate, implements PHPCR\Lock\LockManagerInterface
Afficher le fichier Open project: jackalope/jackalope Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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}

Method Details

__construct() public méthode

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
Résultat LockManager

addLockToken() public méthode

{@inheritDoc}
public addLockToken ( $lockToken )

createLockInfo() public méthode

{@inheritDoc}
public createLockInfo ( )

getIterator() public méthode

public getIterator ( )

getLock() public méthode

{@inheritDoc}
public getLock ( $absPath )

getLockTokens() public méthode

{@inheritDoc}
public getLockTokens ( )

getSession() public méthode

for the locks to get the session to get their root node
public getSession ( ) : PHPCR\SessionInterface
Résultat PHPCR\SessionInterface

holdsLock() public méthode

{@inheritDoc}
public holdsLock ( $absPath )

isLocked() public méthode

{@inheritDoc}
public isLocked ( $absPath )

lock() public méthode

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

lockWithInfo() public méthode

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

logout() public méthode

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() public méthode

{@inheritDoc}
public removeLockToken ( $lockToken )

unlock() public méthode

{@inheritDoc}
public unlock ( $absPath )

Property Details

$factory protected_oe property

The jackalope object factory for this object
protected FactoryInterface,Jackalope $factory
Résultat Jackalope\FactoryInterface

$locks protected_oe property

Contains a list of nodes locks
protected $locks

$objectmanager protected_oe property

protected ObjectManager,Jackalope $objectmanager
Résultat Jackalope\ObjectManager

$session protected_oe property

protected SessionInterface,PHPCR $session
Résultat PHPCR\SessionInterface

$transport protected_oe property

protected LockingInterface,Jackalope\Transport $transport
Résultat Jackalope\Transport\LockingInterface