Beispiel #1
0
 /**
  * Complete transaction
  *
  * @param type $success
  * @return boolean
  */
 public function completeTrans($success = true)
 {
     if (!$this->connection->inTransaction()) {
         return false;
     }
     if ($success) {
         $this->connection->commit();
     } else {
         $this->connection->rollBack();
     }
 }