Class TreeView
The TreeView class is responsible for builing the html symptom tree for symptoms presentation and selection
Direct known subclasses
RevRep
Package: TreeView
Category: Homeopathy
Copyright: 2007-2014 Henri Schumacher
License: GNU Affero General Public License v3
Author: Henri Schumacher <henri.hulski@gazeta.pl>
Located at include/classes/treeview_class.php
Category: Homeopathy
Copyright: 2007-2014 Henri Schumacher
License: GNU Affero General Public License v3
Author: Henri Schumacher <henri.hulski@gazeta.pl>
Located at include/classes/treeview_class.php
public
|
|
public
string
|
#
build_symptomtree( boolean $static_tree = false )
build_symptomtree returns the html formatted symptom tree |
public
array
|
#
get_treeview( integer $pid = 0 )
get_treeview returns an array with the symptoms prepared for the treeview. |
public
string
|
#
generate_child( string $output_id, array $symptoms_ar, boolean $rep_select = false )
generate_child returns the recursively generated child nodes for the html symptom tree |
public
string
|
$symptoms_tbl |
|
#
Symptoms table |
public
string
|
$sym_rem_tbl |
|
#
Symptom-remedy-relations table |
protected
integer
|
$rubric_id |
|
#
Main rubric id for which we're building the treeview. If we build for all main rubrics it has the value -1. |
protected
string
|
$tree_symptoms_tbl | "" |
#
Symptoms table to build the tree from |
public
integer
|
$rem_id | 0 |
#
Remedy ID to use for the reversed repertorization in other cases 0 |