class Manager

Methods

static Manager
singleton(bool $fresh = FALSE)

No description

__construct(CRM_Core_DAO $dao)

No description

inc(bool $nest = FALSE)

Increment the transaction count / add a new transaction level

dec()

Decrement the transaction count / close out a transaction level

forceRollback()

Force an immediate rollback, regardless of how many transaction or frame objects exist.

getFrame()

Get the (innermost) SQL transaction.

getBaseFrame()

Get the (outermost) SQL transaction (i.e. the one demarcated by BEGIN/COMMIT/ROLLBACK)

createBaseFrame()

No description

createSavePoint()

No description

Details

at line 58
static Manager singleton(bool $fresh = FALSE)

Parameters

bool $fresh

Return Value

Manager

at line 70
__construct(CRM_Core_DAO $dao)

Parameters

CRM_Core_DAO $dao Handle for the DB connection that will execute transaction statements. (all we really care about is the query() function)

at line 82
inc(bool $nest = FALSE)

Increment the transaction count / add a new transaction level

Parameters

bool $nest Determines what to do if there's currently an active transaction:. - If true, then make a new nested transaction ("SAVEPOINT") - If false, then attach to the existing transaction

at line 105
dec()

Decrement the transaction count / close out a transaction level

Exceptions

CRM_Core_Exception

at line 129
forceRollback()

Force an immediate rollback, regardless of how many transaction or frame objects exist.

This is only appropriate when it is certain that the callstack will not wind-down normally -- e.g. before a call to exit().

at line 145
Frame getFrame()

Get the (innermost) SQL transaction.

Return Value

Frame

at line 155
Frame getBaseFrame()

Get the (outermost) SQL transaction (i.e. the one demarcated by BEGIN/COMMIT/ROLLBACK)

Return Value

Frame

at line 165
protected Frame createBaseFrame()

Return Value

Frame

at line 172
protected Frame createSavePoint()

Return Value

Frame