| @@ 602-614 (lines=13) @@ | ||
| 599 | * |
|
| 600 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 601 | */ |
|
| 602 | public function commit() |
|
| 603 | { |
|
| 604 | if ($this->_in_transaction === false) { |
|
| 605 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 606 | ||
| 607 | return false; |
|
| 608 | } |
|
| 609 | ||
| 610 | $return = mysqli_commit($this->link); |
|
| 611 | \mysqli_autocommit($this->link, true); |
|
| 612 | $this->_in_transaction = false; |
|
| 613 | ||
| 614 | return $return; |
|
| 615 | } |
|
| 616 | ||
| 617 | /** |
|
| @@ 1656-1668 (lines=13) @@ | ||
| 1653 | * |
|
| 1654 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 1655 | */ |
|
| 1656 | public function rollback() |
|
| 1657 | { |
|
| 1658 | if ($this->_in_transaction === false) { |
|
| 1659 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 1660 | ||
| 1661 | return false; |
|
| 1662 | } |
|
| 1663 | ||
| 1664 | $return = \mysqli_rollback($this->link); |
|
| 1665 | \mysqli_autocommit($this->link, true); |
|
| 1666 | $this->_in_transaction = false; |
|
| 1667 | ||
| 1668 | return $return; |
|
| 1669 | } |
|
| 1670 | ||
| 1671 | /** |
|