You are here

function _taxonomy_edge_db_transaction in Taxonomy Edge 6

Transaction handler wrapper

4 calls to _taxonomy_edge_db_transaction()
taxonomy_edge_rebuild_edges in ./taxonomy_edge.rebuild.inc
Rebuild entire edge list.
taxonomy_edge_rebuild_order in ./taxonomy_edge.rebuild.inc
Rebuild the sorted tree.
_taxonomy_edge_taxonomy_term_insert in ./taxonomy_edge.module
Insert a term into the edge tree.
_taxonomy_edge_taxonomy_term_update in ./taxonomy_edge.module
Update a term in the edge tree.

File

./taxonomy_edge.module, line 589
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.

Code

function _taxonomy_edge_db_transaction() {
  if (function_exists('db_start_transaction')) {
    return new TaxonomyEdgeDatabaseTransaction('db_start_transaction', 'db_end_transaction');
  }
  elseif (variable_get('taxonomy_edge_use_custom_transactions', TAXONOMY_EDGE_USE_CUSTOM_TRANSACTIONS)) {
    return new TaxonomyEdgeDatabaseTransaction();
  }
}