private function commit() { if ($this->_in_trx === false) { throw new Ruckusing_Exception('Transaction not started', Ruckusing_Exception::QUERY_ERROR); } pg_query($this->conn, "COMMIT"); $this->_in_trx = false; }