Stud.IP  5.4
EvaluationTreeShowUser Class Reference

Public Member Functions

 __construct ($evalID)
 
 showTree ($item_id="root")
 
 printLevelOutput ($group_id)
 
 printItemOutput ($group_id)
 
 printItemDetails ($group)
 
 getGroupContent ($group)
 
 getQuestionContent ($question, $group)
 

Data Fields

 $tree
 
 $anchor
 
 $start_item_id
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $evalID)

constructor public

Parameters
stringthe eval's ID

Member Function Documentation

◆ getGroupContent()

getGroupContent (   $group)

returns html for the content of a group

private

Parameters
objectEvaluationGroup the group object.
Returns
string

◆ getQuestionContent()

getQuestionContent (   $question,
  $group 
)

returns html for a question and its answers

private

Parameters
objectEvaluationQuestion the question object.
objectEvaluationGroup the question's parent-group object.
Returns
string

◆ printItemDetails()

printItemDetails (   $group)

prints out the details for a group

private

Parameters
objectEvaluationGroup the group object.

◆ printItemOutput()

printItemOutput (   $group_id)

prints out one group

private

Parameters
stringID of the item to print (which is an EvaluationGroup).

◆ printLevelOutput()

printLevelOutput (   $group_id)

prints out ... hmm ... the group's level indentation space, and a table start

private

Parameters
stringID of the item (which is an EvaluationGroup) to print the space for.

◆ showTree()

showTree (   $item_id = "root")

prints out the tree beginning with a given item

public

Parameters
stringID of the start item, shouldnt be needed.

Field Documentation

◆ $anchor

string $anchor

contains the item with the current html anchor (currently unused)

public

◆ $start_item_id

string $start_item_id

the item to start with

private

◆ $tree

object EvaluationTree $tree

Reference to the tree structure

private


The documentation for this class was generated from the following file: