JavascriptTransaction
extends Transaction
in package
FinalYes
Manages Javascript transactions
Tags
Table of Contents
Methods
- __construct() : mixed
- JavascriptTransaction constructor.
- execute() : mixed
- Execute the transaction.
Methods
__construct()
JavascriptTransaction constructor.
public
__construct(Connection $connection, string $action[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $connection : Connection
-
Connection object to use.
- $action : string
-
JavaScript code to execute on server
- $options : array<string|int, mixed> = []
-
Transaction options.
Tags
execute()
Execute the transaction.
public
execute() : mixed
Throws an exception if any error is detected.
Tags
Return values
mixed —The result value of transaction