You are here

public function MenuTree::__construct in Taxonomy Facets 7.3

File

classes/MenuTree.php, line 24

Class

MenuTree

Namespace

taxonomyFacets

Code

public function __construct($vid) {
  $this->vid = $vid;

  // Get fully loaded terms for all applied filters.
  $this->filtersObject = TaxoFacets::getInstance();

  // Get the term id of the filter that belongs to given vocabulary.
  $this->tidSelected = $this->filtersObject
    ->getSelectedFilterForVocabulary($vid);
  $this->termSelected = $this->filtersObject
    ->getSelectedFilterTermForVocabulary($vid);
  $this
    ->buildMenyTreeHeader();
  $this
    ->buildMenuTreeRecursively(0);
}