private static function TaxonomyEdgeDatabaseTransaction::end in Taxonomy Edge 6
2 calls to TaxonomyEdgeDatabaseTransaction::end()
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');
}
}
}