You are here

public function MenuLeaf::__construct in Taxonomy Facets 7.3

File

classes/MenuLeaf.php, line 23

Class

MenuLeaf

Namespace

taxonomyFacets

Code

public function __construct($leaf, $numberOfItems = 1, $itemNumber = 1, $leafClass = 'first') {

  // Get fully loaded terms for all applied filters.
  $this->filtersObject = TaxoFacets::getInstance();
  $this->termName = check_plain($leaf->name);
  $this->tid = $leaf->tid;
  $this->vid = $leaf->vid;
  $this
    ->getTermUrlAlias();
  $this
    ->calculateLeafClass($numberOfItems, $itemNumber, $leafClass);
  $this
    ->buildLinkUrl();
}