| @@ 592-604 (lines=13) @@ | ||
| 589 | * |
|
| 590 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 591 | */ |
|
| 592 | public function commit() |
|
| 593 | { |
|
| 594 | if ($this->_in_transaction === false) { |
|
| 595 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 596 | ||
| 597 | return false; |
|
| 598 | } |
|
| 599 | ||
| 600 | $return = mysqli_commit($this->link); |
|
| 601 | \mysqli_autocommit($this->link, true); |
|
| 602 | $this->_in_transaction = false; |
|
| 603 | ||
| 604 | return $return; |
|
| 605 | } |
|
| 606 | ||
| 607 | /** |
|
| @@ 1609-1621 (lines=13) @@ | ||
| 1606 | * |
|
| 1607 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 1608 | */ |
|
| 1609 | public function rollback() |
|
| 1610 | { |
|
| 1611 | if ($this->_in_transaction === false) { |
|
| 1612 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 1613 | ||
| 1614 | return false; |
|
| 1615 | } |
|
| 1616 | ||
| 1617 | $return = \mysqli_rollback($this->link); |
|
| 1618 | \mysqli_autocommit($this->link, true); |
|
| 1619 | $this->_in_transaction = false; |
|
| 1620 | ||
| 1621 | return $return; |
|
| 1622 | } |
|
| 1623 | ||
| 1624 | /** |
|