Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class db{
- //...
- public function rollback(){
- try{
- if ($this->isTransactionActive()){
- $this->dbh->rollBack();
- }
- } catch (Exception $e) {//перестраховка
- exceptionHandlerClass::exceptionLog($e);//статическая зависимость
- }
- }
- //...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement