Orpheus

CreateTransactionOperation extends TransactionOperation
in package

The CreateTransactionOperation class

Transaction operation to create objects into DBMS

Tags
author

Florent Hazard contact@sowapps.com

Table of Contents

Properties

$class  : PermanentEntity>
The class of this operation
$data  : array<string|int, mixed>
The data to insert
$fields  : array<string|int, string>
Fields to restrict creation
$insertId  : string|null
The resulting ID after inserted data
$isValid  : bool
If this Operation is valid
$sqlAdapter  : AbstractSqlAdapter|null
The SQL Adapter
$transactionOperationSet  : TransactionOperationSet|null
The transaction set

Methods

__construct()  : mixed
Constructor
getInsertId()  : string|null
Get the last inserted data's id
getSqlAdapter()  : AbstractSqlAdapter|null
Get the SQL Adapter
getTransactionOperationSet()  : TransactionOperationSet
Get the TransactionOperationSet
isValid()  : bool
If this operation is valid
run()  : string|false
Run this operation
runIfValid()  : mixed
Run this operation only if valid
setSqlAdapter()  : static
Set the SQL Adapter
setTransactionOperationSet()  : static
Set the TransactionOperationSet
validate()  : void
Validate this operation
setIsValid()  : static
Set this operation validity

Properties

Methods

__construct()

Constructor

public __construct(string $class, array<string|int, mixed> $data, array<string|int, mixed>|null $fields) : mixed
Parameters
$class : string
$data : array<string|int, mixed>
$fields : array<string|int, mixed>|null

setIsValid()

Set this operation validity

protected setIsValid(bool $valid) : static
Parameters
$valid : bool
Return values
static

							
On this page

Search results