public function commit() {
		if ($this->txStatus == self::TX_STARTED && $this->txCounter == 1) {
			$this->txStatus = self::TX_NOT_STARTED;
			$this->txCounter = 0;
			return $this->driver->commit();
		}
		
		$this->txCounter--;
		return false;
	}
public function commit() {
		if ($this->txStatus == self::TX_STARTED && $this->txCounter == 1) {
			$this->txStatus = self::TX_NOT_STARTED;
			$this->txCounter = 0;
			return $this->driver->commit();
		}
		
		$this->txCounter--;
		return false;
	}
public function commit ( ) { if ( $ this -> txStatus == self :: TX_STARTED && $ this -> txCounter == 1 ) { $ this -> txStatus = self :: TX_NOT_STARTED ; $ this -> txCounter = 0 ; return $ this -> driver -> commit ( ) ; } $ this -> txCounter -- ; return false ; }
Commits current transaction
Commits current transaction