You are here

private static function TaxonomyEdgeDatabaseTransaction::end in Taxonomy Edge 6

2 calls to TaxonomyEdgeDatabaseTransaction::end()
TaxonomyEdgeDatabaseTransaction::commit in ./taxonomy_edge.module
TaxonomyEdgeDatabaseTransaction::rollback in ./taxonomy_edge.module

File

./taxonomy_edge.module, line 626
Selecting all children of a given taxonomy term can be a pain. This module makes it easier to do this, by maintaining a complete list of edges for each term using the adjecency matrix graph theory.

Class

TaxonomyEdgeDatabaseTransaction
Class for simulating DBTNG transactions

Code

private static function end($commit = TRUE) {
  self::$counter--;
  if (self::$counter == 0) {
    if ($commit) {
      db_query('COMMIT');
    }
    else {
      db_query('ROLLBACK');
    }
  }
}