Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
EvalTemplateGUI Class Reference
Collaboration diagram for EvalTemplateGUI:
Collaboration graph

Public Member Functions

 EvalTemplateGUI ()
 createSelections ($polTemplates, $skalaTemplates, $normalTemplates, $freeTemplates, $myuserid)
 createTemplateForm (&$question, $onthefly="")
 createTemplateFormFree (&$question)
 createHeadline ($text)
 createSubHeadline ($text)
 createInfoBox ($command)
 makeNewAnswer ()
 deleteAnswer ($pos, &$answers, &$deleteAnswers)
 getPageCommand ()
 setUniqueName (&$question, $db, $myuserid, $rootTag=NO)

Member Function Documentation

createHeadline (   $text)

create a blue headline

createInfoBox (   $command)

creates the infobox

Here is the call graph for this function:

createSelections (   $polTemplates,
  $skalaTemplates,
  $normalTemplates,
  $freeTemplates,
  $myuserid 
)

Creates the two (?) template selection lists

Parameters

Here is the call graph for this function:

createSubHeadline (   $text)

create a fat-printed sub headline with some space

Here is the caller graph for this function:

createTemplateForm ( $question,
  $onthefly = "" 
)

Creates the form for the template

Parameters

Here is the call graph for this function:

createTemplateFormFree ( $question)

Creates the form for the Polskala templates

Parameters

Here is the call graph for this function:

deleteAnswer (   $pos,
$answers,
$deleteAnswers 
)

deletes the answer at position 'pos' from the array 'answers' and modifies the array 'deleteAnswers' respectively

public

Parameters
array&$answersthe answerarray
array&$deleteAnswersthe array containing the deleteCheckbox-bool-value for each answer
int$posthe position of the answer to be deleted

Here is the call graph for this function:

getPageCommand ( )

checks which button was pressed

public

Returns
string the command "add_answers", "delete_answers", etc.

Here is the caller graph for this function:

makeNewAnswer ( )

creates a new answer

private

Returns
array the created answer as an array with keys 'answer_id' => new md5 id, 'text' => "", 'counter' => 0, 'correct' => NO
setUniqueName ( $question,
  $db,
  $myuserid,
  $rootTag = NO 
)

Checks if a template with the same name already exists and modifies the text of the template if necessary.

Parameters
object$templateThe template
object$dbThe EvaluationQuestionDB
string$myuseridMy userid
boolean$rootTagIf yes, add the root tag if necessary private

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