DB::commit PHP Method

commit() public static method

public static commit ( )
    public static function commit()
    {
        $args = func_get_args();
        return call_user_func_array(array(DB::getMDB(), 'commit'), $args);
    }

Usage Example

 /**
  * Setup global $DB as original DB object again.
  */
 function tearDown()
 {
     $this->test_DB->commit();
     if ($this->test_DB->error) {
         $this->fail('There has been a DB error.');
     }
     $this->dropTestDbTables();
     $GLOBALS['DB'] =& $this->old_DB;
     parent::tearDown();
 }
All Usage Examples Of DB::commit