@@ 342-358 (lines=17) @@ | ||
339 | * @access public |
|
340 | * @return bool |
|
341 | */ |
|
342 | public function trans_commit() |
|
343 | { |
|
344 | if ( ! $this->trans_enabled) |
|
345 | { |
|
346 | return TRUE; |
|
347 | } |
|
348 | ||
349 | // When transactions are nested we only begin/commit/rollback the outermost ones |
|
350 | if ($this->_trans_depth > 0) |
|
351 | { |
|
352 | return TRUE; |
|
353 | } |
|
354 | ||
355 | $ret = oci_commit($this->conn_id); |
|
356 | $this->_commit = OCI_COMMIT_ON_SUCCESS; |
|
357 | return $ret; |
|
358 | } |
|
359 | ||
360 | // -------------------------------------------------------------------- |
|
361 | ||
@@ 368-384 (lines=17) @@ | ||
365 | * @access public |
|
366 | * @return bool |
|
367 | */ |
|
368 | public function trans_rollback() |
|
369 | { |
|
370 | if ( ! $this->trans_enabled) |
|
371 | { |
|
372 | return TRUE; |
|
373 | } |
|
374 | ||
375 | // When transactions are nested we only begin/commit/rollback the outermost ones |
|
376 | if ($this->_trans_depth > 0) |
|
377 | { |
|
378 | return TRUE; |
|
379 | } |
|
380 | ||
381 | $ret = oci_rollback($this->conn_id); |
|
382 | $this->_commit = OCI_COMMIT_ON_SUCCESS; |
|
383 | return $ret; |
|
384 | } |
|
385 | ||
386 | // -------------------------------------------------------------------- |
|
387 |