PHP Class Jackalope\Transaction\UserTransaction

Author: Johannes Stark ([email protected])
Inheritance: implements PHPCR\Transaction\UserTransactionInterface
Show file Open project: jackalope/jackalope

Protected Properties

Property Type Description
$factory Jackalope\FactoryInterface The factory to instantiate objects
$inTransaction boolean Stores the current state of the application, whether it is inside a transaction or not
$objectManager Jackalope\ObjectManager
$session PHPCR\SessionInterface Instance of an implementation of the \PHPCR\SessionInterface.
$transport Jackalope\Transport\TransactionInterface Instance of an implementation of the TransactionInterface transport

Public Methods

Method Description
__construct ( Jackalope\FactoryInterface $factory, Jackalope\Transport\TransactionInterface $transport, PHPCR\SessionInterface $session, ObjectManager $objectManager ) Registers the provided parameters as attribute to the instance.
begin ( ) {@inheritDoc}
commit ( ) {@inheritDoc}
inTransaction ( ) {@inheritDoc}
rollback ( ) {@inheritDoc}
setTransactionTimeout ( $seconds ) {@inheritDoc}

Method Details

__construct() public method

Registers the provided parameters as attribute to the instance.
public __construct ( Jackalope\FactoryInterface $factory, Jackalope\Transport\TransactionInterface $transport, PHPCR\SessionInterface $session, ObjectManager $objectManager )
$factory Jackalope\FactoryInterface the object factory
$transport Jackalope\Transport\TransactionInterface
$session PHPCR\SessionInterface
$objectManager Jackalope\ObjectManager

begin() public method

{@inheritDoc}
public begin ( )

commit() public method

TODO: Make sure RollbackException and AccessDeniedException are thrown by the transport if corresponding problems occur
public commit ( )

inTransaction() public method

{@inheritDoc}
public inTransaction ( )

rollback() public method

TODO: Make sure RollbackException and AccessDeniedException are thrown by the transport if corresponding problems occur
public rollback ( )

setTransactionTimeout() public method

{@inheritDoc}
public setTransactionTimeout ( $seconds )

Property Details

$factory protected property

The factory to instantiate objects
protected FactoryInterface,Jackalope $factory
return Jackalope\FactoryInterface

$inTransaction protected property

Stores the current state of the application, whether it is inside a transaction or not
protected bool $inTransaction
return boolean

$objectManager protected property

protected ObjectManager,Jackalope $objectManager
return Jackalope\ObjectManager

$session protected property

Instance of an implementation of the \PHPCR\SessionInterface.
protected SessionInterface,PHPCR $session
return PHPCR\SessionInterface

$transport protected property

Instance of an implementation of the TransactionInterface transport
protected TransactionInterface,Jackalope\Transport $transport
return Jackalope\Transport\TransactionInterface