You are here

function TaxonomyEdgeDatabaseTransaction::__construct in Taxonomy Edge 6

File

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

function __construct($begin = NULL, $end = NULL) {
  if ($begin && $end) {
    $this->end = $end;
    call_user_func($begin);
  }
  else {
    self::begin();
  }
}