You are here

function UcTreeNode::__construct in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_catalog/classes/treenode.inc \UcTreeNode::__construct()

Constructor.

File

uc_catalog/uc_catalog.module, line 27
Ubercart Catalog module.

Class

UcTreeNode
Data structure to mimic Drupal's menu system.

Code

function __construct($term = NULL) {
  if ($term) {
    $this->tid = $term->tid;
    $this->name = $term->name;
    $this->depth = $term->depth;
    $this->sequence = $term->sequence;
  }
}