diff --git a/src/core/connect/DB.php b/src/core/connect/DB.php index bccccfc..413372e 100644 --- a/src/core/connect/DB.php +++ b/src/core/connect/DB.php @@ -198,4 +198,19 @@ private function ExceptionLog($message, $sql = "") header("Status: 500 Internal Server Error"); return $exception; } + + public function beginTransaction() + { + $this->pdo->beginTransaction(); + } + + public function commit() + { + $this->pdo->commit(); + } + + public function rollBack() + { + $this->pdo->rollBack(); + } }