Overview

Packages

  • Admin
  • Archive
  • Common
  • DB
  • Express
  • Form
  • Layout
  • Mailer
  • None
  • OpenHomeoDB
  • PDF
    • MC
  • Process
  • Rep
  • RevRep
  • SaveReps
  • Search
  • Session
  • SymRem
  • TreeView
  • UserDB

Classes

  • TreeView
  • Overview
  • Package
  • Class
  • Tree

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
Methods summary
public TreeView
# __construct( integer $rubric_id, string $tree_symptoms_tbl = "" )

Class constructor

Class constructor

Parameters

$rubric_id
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.
$tree_symptoms_tbl
string
$tree_symptoms_tbl Symptoms table to build the tree from.

Returns

TreeView
public string
# build_symptomtree( boolean $static_tree = false )

build_symptomtree returns the html formatted symptom tree

build_symptomtree returns the html formatted symptom tree

Parameters

$static_tree
boolean
$static_tree if false we're building a tree that will be dynamically expanded, if true we build a static tree

Returns

string
public array
# get_treeview( integer $pid = 0 )

get_treeview returns an array with the symptoms prepared for the treeview.

get_treeview returns an array with the symptoms prepared for the treeview.

Parameters

$pid
integer
$pid ID of the parents symptom, 0 if there is no parent

Returns

array
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

generate_child returns the recursively generated child nodes for the html symptom tree

Parameters

$output_id
string
$output_id id of the parent div, in which to put the child nodes
$symptoms_ar
array
$symptoms_ar array that contains the symptoms
$rep_select
boolean
$rep_select if true you can select the symptoms for repertorization, false otherwise

Returns

string
Properties summary
public string $symptoms_tbl
#

Symptoms table

Symptoms table

public string $sym_rem_tbl
#

Symptom-remedy-relations table

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.

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

Symptoms table to build the tree from

public integer $rem_id 0
#

Remedy ID to use for the reversed repertorization in other cases 0

Remedy ID to use for the reversed repertorization in other cases 0

OpenHomeopath PHP code documentation API documentation generated by ApiGen 2.8.0