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
| createInfoBox |
( |
|
$command | ) |
|
| createSelections |
( |
|
$polTemplates, |
|
|
|
$skalaTemplates, |
|
|
|
$normalTemplates, |
|
|
|
$freeTemplates, |
|
|
|
$myuserid |
|
) |
| |
Creates the two (?) template selection lists
- Parameters
-
| createSubHeadline |
( |
|
$text | ) |
|
create a fat-printed sub headline with some space
| createTemplateForm |
( |
& |
$question, |
|
|
|
$onthefly = "" |
|
) |
| |
Creates the form for the template
- Parameters
-
| createTemplateFormFree |
( |
& |
$question | ) |
|
Creates the form for the Polskala templates
- Parameters
-
| deleteAnswer |
( |
|
$pos, |
|
|
& |
$answers, |
|
|
& |
$deleteAnswers |
|
) |
| |
deletes the answer at position 'pos' from the array 'answers' and modifies the array 'deleteAnswers' respectively
public
- Parameters
-
| array | &$answers | the answerarray |
| array | &$deleteAnswers | the array containing the deleteCheckbox-bool-value for each answer |
| int | $pos | the position of the answer to be deleted |
checks which button was pressed
public
- Returns
- string the command "add_answers", "delete_answers", etc.
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 | $template | The template |
| object | $db | The EvaluationQuestionDB |
| string | $myuserid | My userid |
| boolean | $rootTag | If yes, add the root tag if necessary private |
The documentation for this class was generated from the following file: