PHP Класс Jackalope\Transaction\UserTransaction

Автор: Johannes Stark ([email protected])
Наследование: implements PHPCR\Transaction\UserTransactionInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$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

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

Метод Описание
__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}

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

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

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() публичный Метод

{@inheritDoc}
public begin ( )

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

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

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

{@inheritDoc}
public inTransaction ( )

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

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

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

{@inheritDoc}
public setTransactionTimeout ( $seconds )

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

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

The factory to instantiate objects
protected FactoryInterface,Jackalope $factory
Результат Jackalope\FactoryInterface

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

Stores the current state of the application, whether it is inside a transaction or not
protected bool $inTransaction
Результат boolean

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

protected ObjectManager,Jackalope $objectManager
Результат Jackalope\ObjectManager

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

Instance of an implementation of the \PHPCR\SessionInterface.
protected SessionInterface,PHPCR $session
Результат PHPCR\SessionInterface

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

Instance of an implementation of the TransactionInterface transport
protected TransactionInterface,Jackalope\Transport $transport
Результат Jackalope\Transport\TransactionInterface