public function getTermsTreeData($parentID = 0)
    {
        $tree = Hierarchy::getTree($this->id);

        $data = [];

        static::mapTreeDataRecursive($tree, $data, $parentID);

        return $data;
    }
public function getTermsTreeData($parentID = 0)
    {
        $tree = Hierarchy::getTree($this->id);

        $data = [];

        static::mapTreeDataRecursive($tree, $data, $parentID);

        return $data;
    }
public function getTermsTreeData ( $ parentID = 0 ) { $ tree = Hierarchy :: getTree ( $ this -> id ) ; $ data = [ ] ; static :: mapTreeDataRecursive ( $ tree , $ data , $ parentID ) ; return $ data ; }
Get tree of terms for select list
@param int $parentID
@return array
Get tree of terms for select list