public function UcTreeNode::__construct in Ubercart 7.3
Same name and namespace in other branches
- 6.2 uc_catalog/uc_catalog.module \UcTreeNode::__construct()
Constructor.
File
- uc_catalog/
classes/ treenode.inc, line 21 - Utility classes for catalog module.
Class
- UcTreeNode
- Data structure to mimic Drupal's menu system.
Code
public function __construct($term = NULL) {
if ($term) {
$this->tid = $term->tid;
$this->name = $term->name;
$this->depth = $term->depth;
$this->sequence = $term->sequence;
}
}