original_string: public function force_transaction_rollback() {
          if ($this->transactions) {
              try {
                  $this->rollback_transaction();
              } catch (dml_exception $e) {
                  // ignore any sql errors here, the connection might be broken
              }
          }
  
          // now enable transactions again
          $this->transactions = array();
          $this->force_rollback = false;
  
          \core\event\manager::database_transaction_rolledback();
          \core\message\manager::database_transaction_rolledback();
      }
code: public function force_transaction_rollback() {
          if ($this->transactions) {
              try {
                  $this->rollback_transaction();
              } catch (dml_exception $e) {
                  // ignore any sql errors here, the connection might be broken
              }
          }
  
          // now enable transactions again
          $this->transactions = array();
          $this->force_rollback = false;
  
          \core\event\manager::database_transaction_rolledback();
          \core\message\manager::database_transaction_rolledback();
      }
code_tokens: public function force_transaction_rollback ( ) { if ( $ this -> transactions ) { try { $ this -> rollback_transaction ( ) ; } catch ( dml_exception $ e ) { // ignore any sql errors here, the connection might be broken } } // now enable transactions again $ this -> transactions = array ( ) ; $ this -> force_rollback = false ; \ core \ event \ manager :: database_transaction_rolledback ( ) ; \ core \ message \ manager :: database_transaction_rolledback ( ) ; }
docstring: Force rollback of all delegated transaction.
  Does not throw any exceptions and does not log anything.
  
  This method should be used only from default exception handlers and other
  core code.
  
  @return void
docstring_tokens: Force rollback of all delegated transaction . Does not throw any exceptions and does not log anything .