Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
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 (   $evalID)

constructor public

Parameters
stringthe eval's ID

Member Function Documentation

getGroupContent (   $group)

returns html for the content of a group

private

Parameters
objectEvaluationGroup the group object.
Returns
string
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 (   $group)

prints out the details for a group

private

Parameters
objectEvaluationGroup the group object.
printItemOutput (   $group_id)

prints out one group

private

Parameters
stringID of the item to print (which is an EvaluationGroup).
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 (   $item_id = "root")

prints out the tree beginning with a given item

public

Parameters
stringID of the start item, shouldnt be needed.

Field Documentation

string $anchor

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

public

string $start_item_id

the item to start with

private

object EvaluationTree $tree

Reference to the tree structure

private


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