ModelX

Model extra methods.
Source
ModelX.php
Depends on
Database , Model

Static Methods

cancel

void ModelX::cancel(string modelGroup=null)

Cancels (rolls back) all open model SQL queues at once.

Arguments

    modelGroup=null (string)
    Model group name (all open SQL queues related to this group will be commited)

Returns

void

commit

bool ModelX::commit(string modelGroup=null, bool transaction=true)

Commits all open model SQL queues at once. This is the only way to execute more than one model object actions in one single SQL transaction.

Arguments

    modelGroup=null (string)
    Model group name (all open SQL queues related to this group will be commited)
    transaction=true (bool)
    true=execute SQLs in a database transaction, false=execute all the SQLs but not in a transaction

Returns

bool
State of success

inspect

void ModelX::inspect(string modelGroup)

Inspect model database object SQLs. Displays info.

Arguments

    modelGroup (string)
    Model group name

Returns

void