You are here

private static function TaxonomyEdgeDatabaseTransaction::begin in Taxonomy Edge 6

1 call to TaxonomyEdgeDatabaseTransaction::begin()
TaxonomyEdgeDatabaseTransaction::__construct in ./taxonomy_edge.module

File

./taxonomy_edge.module, line 619
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 begin() {
  if (self::$counter == 0) {
    db_query('BEGIN');
  }
  self::$counter++;
}