| @@ 614-626 (lines=13) @@ | ||
| 611 | * |
|
| 612 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 613 | */ |
|
| 614 | public function commit() |
|
| 615 | { |
|
| 616 | if ($this->_in_transaction === false) { |
|
| 617 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 618 | ||
| 619 | return false; |
|
| 620 | } |
|
| 621 | ||
| 622 | $return = mysqli_commit($this->link); |
|
| 623 | \mysqli_autocommit($this->link, true); |
|
| 624 | $this->_in_transaction = false; |
|
| 625 | ||
| 626 | return $return; |
|
| 627 | } |
|
| 628 | ||
| 629 | /** |
|
| @@ 1679-1691 (lines=13) @@ | ||
| 1676 | * |
|
| 1677 | * @return bool <p>Boolean true on success, false otherwise.</p> |
|
| 1678 | */ |
|
| 1679 | public function rollback() |
|
| 1680 | { |
|
| 1681 | if ($this->_in_transaction === false) { |
|
| 1682 | $this->_debug->displayError('Error: mysql server is not in transaction!', false); |
|
| 1683 | ||
| 1684 | return false; |
|
| 1685 | } |
|
| 1686 | ||
| 1687 | $return = \mysqli_rollback($this->link); |
|
| 1688 | \mysqli_autocommit($this->link, true); |
|
| 1689 | $this->_in_transaction = false; |
|
| 1690 | ||
| 1691 | return $return; |
|
| 1692 | } |
|
| 1693 | ||
| 1694 | /** |
|