|
| | 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) |
| |
◆ createHeadline()
◆ createInfoBox()
| createInfoBox |
( |
|
$command | ) |
|
◆ createSelections()
| createSelections |
( |
|
$polTemplates, |
|
|
|
$skalaTemplates, |
|
|
|
$normalTemplates, |
|
|
|
$freeTemplates, |
|
|
|
$myuserid |
|
) |
| |
Creates the two (?) template selection lists
- Parameters
-
◆ createSubHeadline()
| createSubHeadline |
( |
|
$text | ) |
|
create a fat-printed sub headline with some space
◆ createTemplateForm()
| createTemplateForm |
( |
& |
$question, |
|
|
|
$onthefly = "" |
|
) |
| |
Creates the form for the template
- Parameters
-
◆ createTemplateFormFree()
| createTemplateFormFree |
( |
& |
$question | ) |
|
Creates the form for the Polskala templates
- Parameters
-
◆ deleteAnswer()
| deleteAnswer |
( |
|
$pos, |
|
|
& |
$answers, |
|
|
& |
$deleteAnswers |
|
) |
| |
deletes the answer at position 'pos' from the array 'answers' and modifies the array 'deleteAnswers' respectively
@access 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 |
◆ EvalTemplateGUI()
◆ getPageCommand()
checks which button was pressed
@access public
- Returns
- string the command "add_answers", "delete_answers", etc.
◆ makeNewAnswer()
creates a new answer
@access private
- Returns
- array the created answer as an array with keys 'answer_id' => new md5 id, 'text' => "", 'counter' => 0, 'correct' => NO
◆ setUniqueName()
| 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 @access private |
The documentation for this class was generated from the following file: