|
ILIAS
trunk Revision v12.0_alpha-1540-g00f839d5fa1
|
Class for cloze question gaps. More...
Inheritance diagram for assClozeGap:
Collaboration diagram for assClozeGap:Public Member Functions | |
| __construct ($a_type) | |
| assClozeGap constructor More... | |
| getType () | |
| isTextGap () | |
| isSelectGap () | |
| isNumericGap () | |
| setType ($a_type=0) | |
| Sets the cloze gap type. More... | |
| getItems (Transformation $shuffler, ?int $gap_index=null) | |
| getItemsRaw () | |
| Gets the items of a cloze gap. More... | |
| getItemCount () | |
| Gets the item count. More... | |
| addItem ($a_item) | |
| Adds a gap item. More... | |
| setItemPoints ($order, $points) | |
| Sets the points for a given item. More... | |
| deleteItem ($order) | |
| Deletes an item at a given index. More... | |
| setItemLowerBound ($order, $bound) | |
| Sets the lower bound for a given item. More... | |
| setItemUpperBound ($order, $bound) | |
| Sets the upper bound for a given item. More... | |
| getItem ($a_index) | |
| Gets the item with a given index. More... | |
| clearItems () | |
| Removes all gap items. More... | |
| setShuffle ($a_shuffle=true) | |
| Sets the shuffle state of the items. More... | |
| getShuffle () | |
| Gets the shuffle state of the items. More... | |
| getMaxWidth () | |
| Returns the maximum width of the gap. More... | |
| getBestSolutionIndexes () | |
| Returns the indexes of the best solutions for the gap. More... | |
| getBestSolutionOutput (Transformation $shuffler, $combinations=null) | |
| setGapSize (int $gap_size) | |
| getGapSize () | |
| numericRangeExists () | |
Data Fields | |
| const | TYPE_TEXT = 0 |
| const | TYPE_SELECT = 1 |
| const | TYPE_NUMERIC = 2 |
| const | TEXTGAP_RATING_CASEINSENSITIVE = "ci" |
| const | TEXTGAP_RATING_CASESENSITIVE = "cs" |
| const | TEXTGAP_RATING_LEVENSHTEIN1 = "l1" |
| const | TEXTGAP_RATING_LEVENSHTEIN2 = "l2" |
| const | TEXTGAP_RATING_LEVENSHTEIN3 = "l3" |
| const | TEXTGAP_RATING_LEVENSHTEIN4 = "l4" |
| const | TEXTGAP_RATING_LEVENSHTEIN5 = "l5" |
| int | $type |
| $items | |
| $shuffle | |
Private Attributes | |
| Transformation | $shuffler = null |
| $gap_size = 0 | |
Class for cloze question gaps.
assClozeGap is a class for the abstraction of cloze gaps. It represents a text gap.
\
Definition at line 34 of file class.assClozeGap.php.
| assClozeGap::__construct | ( | $a_type | ) |
assClozeGap constructor
| int | $a_type |
Definition at line 76 of file class.assClozeGap.php.
References ILIAS\Repository\int().
Here is the call graph for this function:| assClozeGap::addItem | ( | $a_item | ) |
Adds a gap item.
Adds a gap item
| object | $a_item | Cloze gap item @access public |
Definition at line 176 of file class.assClozeGap.php.
Referenced by assClozeTest\addAnswerOptionValue(), and assClozeTest\createGapsFromQuestiontext().
Here is the caller graph for this function:| assClozeGap::clearItems | ( | ) |
Removes all gap items.
Removes all gap items
@access public
Definition at line 304 of file class.assClozeGap.php.
| assClozeGap::deleteItem | ( | $order | ) |
Deletes an item at a given index.
Deletes an item at a given index
| integer | $0order Order of the item @access public |
Definition at line 227 of file class.assClozeGap.php.
| assClozeGap::getBestSolutionIndexes | ( | ) |
Returns the indexes of the best solutions for the gap.
Returns the indexes of the best solutions for the gap
Definition at line 358 of file class.assClozeGap.php.
Referenced by assClozeTest\getCorrectSolutionForTextOutput().
Here is the caller graph for this function:| assClozeGap::getBestSolutionOutput | ( | Transformation | $shuffler, |
$combinations = null |
|||
| ) |
| Transformation | $shuffler | |
| null | array | $combinations |
Definition at line 380 of file class.assClozeGap.php.
References $DIC, $lng, getItems(), getType(), TYPE_NUMERIC, TYPE_SELECT, and TYPE_TEXT.
Here is the call graph for this function:| assClozeGap::getGapSize | ( | ) |
Definition at line 433 of file class.assClozeGap.php.
References $gap_size.
Referenced by assClozeTest\toJSON(), and assClozeTest\toLog().
Here is the caller graph for this function:| assClozeGap::getItem | ( | $a_index | ) |
Gets the item with a given index.
Gets the item with a given index
| integer | $a_index | Item index @access public |
Definition at line 287 of file class.assClozeGap.php.
Referenced by ilAssClozeTestFeedback\determineAnswerIndexForAnswerValue(), assClozeTest\getCorrectSolutionForTextOutput(), numericRangeExists(), assClozeTest\solutionValuesToLog(), and assClozeTest\solutionValuesToText().
Here is the caller graph for this function:| assClozeGap::getItemCount | ( | ) |
Gets the item count.
Gets the item count
Definition at line 162 of file class.assClozeGap.php.
Referenced by assClozeTest\addAnswerOptionValue().
Here is the caller graph for this function:| assClozeGap::getItems | ( | Transformation | $shuffler, |
| ?int | $gap_index = null |
||
| ) |
Definition at line 121 of file class.assClozeGap.php.
References $items, $shuffler, getShuffle(), and ILIAS\Refinery\Transformation\transform().
Referenced by ilAssClozeTestFeedback\buildGapFeedbackLabel(), ilAssClozeTestFeedback\completeFbPropsForSelectGap(), ilAssClozeTestFeedback\completeFbPropsForTextGap(), ilAssClozeTestFeedback\determineAnswerIndexForAnswerValue(), getBestSolutionOutput(), assClozeTest\getMaximumGapPoints(), assClozeTest\getMaximumPoints(), ilAssClozeTestFeedback\initFbPropsForSelectGap(), ilAssClozeTestFeedback\initFbPropsForTextGap(), assClozeTest\isAddableAnswerOptionValue(), ilAssClozeTestFeedback\saveFbPropsForSelectGap(), ilAssClozeTestFeedback\saveFbPropsForTextGap(), assClozeTest\toJSON(), and assClozeTest\toLog().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeGap::getItemsRaw | ( | ) |
Gets the items of a cloze gap.
Gets the items of a cloze gap
Definition at line 148 of file class.assClozeGap.php.
References $items.
Referenced by assClozeTest\deleteGap(), assClozeTestGUI\saveGapCorrectionFormProperty(), assClozeTestGUI\saveTextOrSelectGapCorrectionFormProperty(), and assClozeTest\updateClozeTextFromGaps().
Here is the caller graph for this function:| assClozeGap::getMaxWidth | ( | ) |
Returns the maximum width of the gap.
Returns the maximum width of the gap
Definition at line 339 of file class.assClozeGap.php.
| assClozeGap::getShuffle | ( | ) |
Gets the shuffle state of the items.
Definition at line 326 of file class.assClozeGap.php.
References $shuffle.
Referenced by getItems(), assClozeTest\toJSON(), and assClozeTest\toLog().
Here is the caller graph for this function:| assClozeGap::getType | ( | ) |
Definition at line 86 of file class.assClozeGap.php.
References $type.
Referenced by ilAssClozeTestFeedback\determineAnswerIndexForAnswerValue(), assClozeTest\fetchSolutionSubmit(), getBestSolutionOutput(), assClozeTest\getMaximumPoints(), assClozeTest\isAddableAnswerOptionValue(), numericRangeExists(), assClozeTest\saveClozeGapItemsToDb(), assClozeTestGUI\saveGapCorrectionFormProperty(), assClozeTest\solutionValuesToLog(), assClozeTest\solutionValuesToText(), assClozeTest\toJSON(), and assClozeTest\toLog().
Here is the caller graph for this function:| assClozeGap::isNumericGap | ( | ) |
Definition at line 101 of file class.assClozeGap.php.
References TYPE_NUMERIC.
| assClozeGap::isSelectGap | ( | ) |
Definition at line 96 of file class.assClozeGap.php.
References TYPE_SELECT.
| assClozeGap::isTextGap | ( | ) |
Definition at line 91 of file class.assClozeGap.php.
References TYPE_TEXT.
| assClozeGap::numericRangeExists | ( | ) |
Definition at line 438 of file class.assClozeGap.php.
References getItem(), and getType().
Referenced by ilAssClozeTestFeedback\completeFbPropsForNumericGap(), ilAssClozeTestFeedback\initFbPropsForNumericGap(), and ilAssClozeTestFeedback\saveFbPropsForNumericGap().
Here is the call graph for this function:
Here is the caller graph for this function:| assClozeGap::setGapSize | ( | int | $gap_size | ) |
Definition at line 425 of file class.assClozeGap.php.
References $gap_size.
| assClozeGap::setItemLowerBound | ( | $order, | |
| $bound | |||
| ) |
Sets the lower bound for a given item.
Sets the lower bound for a given item
| integer | $order | Order of the item |
| double | $bound | Lower bounds of the item @access public |
Definition at line 249 of file class.assClozeGap.php.
| assClozeGap::setItemPoints | ( | $order, | |
| $points | |||
| ) |
Sets the points for a given item.
Sets the points for a given item
| integer | $order | Order of the item |
| double | $points | Points of the item @access public |
Definition at line 209 of file class.assClozeGap.php.
| assClozeGap::setItemUpperBound | ( | $order, | |
| $bound | |||
| ) |
Sets the upper bound for a given item.
Sets the upper bound for a given item
| integer | $order | Order of the item |
| double | $bound | Upper bound of the item @access public |
Definition at line 268 of file class.assClozeGap.php.
| assClozeGap::setShuffle | ( | $a_shuffle = true | ) |
Sets the shuffle state of the items.
Sets the shuffle state of the items
| boolean | $a_shuffle | Shuffle state |
Definition at line 316 of file class.assClozeGap.php.
| assClozeGap::setType | ( | $a_type = 0 | ) |
Sets the cloze gap type.
| integer | $a_type | cloze gap type |
Definition at line 113 of file class.assClozeGap.php.
|
private |
Definition at line 68 of file class.assClozeGap.php.
Referenced by getGapSize(), and setGapSize().
| assClozeGap::$items |
Definition at line 59 of file class.assClozeGap.php.
Referenced by getItems(), and getItemsRaw().
| assClozeGap::$shuffle |
Definition at line 66 of file class.assClozeGap.php.
Referenced by getShuffle().
|
private |
Definition at line 48 of file class.assClozeGap.php.
Referenced by getItems().
| int assClozeGap::$type |
Definition at line 50 of file class.assClozeGap.php.
Referenced by getType().
| const assClozeGap::TEXTGAP_RATING_CASEINSENSITIVE = "ci" |
Definition at line 40 of file class.assClozeGap.php.
Referenced by assTextSubset\getMatchingMethodLangVar(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), assTextQuestion\isValidTextRating(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assClozeTest\setTextgapRating(), assTextQuestion\setTextRating(), and assTextSubset\setTextRating().
| const assClozeGap::TEXTGAP_RATING_CASESENSITIVE = "cs" |
Definition at line 41 of file class.assClozeGap.php.
Referenced by assTextSubset\getMatchingMethodLangVar(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), assTextQuestion\isValidTextRating(), assClozeTest\setTextgapRating(), assTextQuestion\setTextRating(), and assTextSubset\setTextRating().
| const assClozeGap::TEXTGAP_RATING_LEVENSHTEIN1 = "l1" |
Definition at line 42 of file class.assClozeGap.php.
Referenced by assTextSubset\getMatchingMethodLangVar(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), assTextQuestion\isValidTextRating(), assClozeTest\setTextgapRating(), assTextQuestion\setTextRating(), and assTextSubset\setTextRating().
| const assClozeGap::TEXTGAP_RATING_LEVENSHTEIN2 = "l2" |
Definition at line 43 of file class.assClozeGap.php.
Referenced by assTextSubset\getMatchingMethodLangVar(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), assTextQuestion\isValidTextRating(), assClozeTest\setTextgapRating(), assTextQuestion\setTextRating(), and assTextSubset\setTextRating().
| const assClozeGap::TEXTGAP_RATING_LEVENSHTEIN3 = "l3" |
Definition at line 44 of file class.assClozeGap.php.
Referenced by assTextSubset\getMatchingMethodLangVar(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), assTextQuestion\isValidTextRating(), assClozeTest\setTextgapRating(), assTextQuestion\setTextRating(), and assTextSubset\setTextRating().
| const assClozeGap::TEXTGAP_RATING_LEVENSHTEIN4 = "l4" |
Definition at line 45 of file class.assClozeGap.php.
Referenced by assTextSubset\getMatchingMethodLangVar(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), assTextQuestion\isValidTextRating(), assClozeTest\setTextgapRating(), assTextQuestion\setTextRating(), and assTextSubset\setTextRating().
| const assClozeGap::TEXTGAP_RATING_LEVENSHTEIN5 = "l5" |
Definition at line 46 of file class.assClozeGap.php.
Referenced by assTextSubset\getMatchingMethodLangVar(), assClozeTest\getTextgapPoints(), assTextSubset\isAnswerCorrect(), assTextQuestion\isKeywordMatching(), assTextQuestion\isValidTextRating(), assClozeTest\setTextgapRating(), assTextQuestion\setTextRating(), and assTextSubset\setTextRating().
| const assClozeGap::TYPE_NUMERIC = 2 |
Definition at line 38 of file class.assClozeGap.php.
Referenced by assClozeTest\addGapAnswer(), assClozeTest\calculateCombinationResult(), ilPageQuestionProcessor\calculatePoints(), assClozeTest\calculateReachedPointsForSolution(), ilClozeGapInputBuilderGUI\checkInput(), ilAssClozeTestFeedback\completeFormPropsForFeedbackModeGapAnswers(), ilAssClozeTestFeedback\determineAnswerIndexForAnswerValue(), assClozeTest\fetchSolutionSubmit(), assClozeTestGUI\getAnswerTextLabel(), getBestSolutionOutput(), assClozeTest\getMaximumPoints(), ilAssClozeTestFeedback\initFeedbackFieldsPerGapAnswers(), isNumericGap(), assClozeTest\loadFromDb(), assClozeTestGUI\populateGapCorrectionFormProperties(), assClozeTestGUI\populateGapFormPart(), assClozeTest\saveClozeGapItemsToDb(), ilAssClozeTestFeedback\saveFeedbackFieldsPerGapAnswers(), assClozeTestGUI\saveGapCorrectionFormProperty(), assClozeTest\toJSON(), assClozeTest\toLog(), assClozeTestExport\toXML(), and assClozeTestGUI\writeAnswerSpecificPostData().
| const assClozeGap::TYPE_SELECT = 1 |
Definition at line 37 of file class.assClozeGap.php.
Referenced by assClozeTest\calculateCombinationResult(), ilPageQuestionProcessor\calculatePoints(), assClozeTest\calculateReachedPointsForSolution(), ilClozeGapInputBuilderGUI\checkInput(), ilAssClozeTestFeedback\completeFormPropsForFeedbackModeGapAnswers(), ilAssClozeTestFeedback\determineAnswerIndexForAnswerValue(), assClozeTest\fetchSolutionSubmit(), assClozeTestGUI\getAnswerTextLabel(), getBestSolutionOutput(), assClozeTest\getMaximumPoints(), ilAssClozeTestFeedback\initFeedbackFieldsPerGapAnswers(), isSelectGap(), assClozeTest\loadFromDb(), assClozeTestGUI\populateGapCorrectionFormProperties(), assClozeTestGUI\populateGapFormPart(), assClozeTestGUI\populateSolutiontextToGapTpl(), assClozeTest\saveClozeGapItemsToDb(), ilAssClozeTestFeedback\saveFeedbackFieldsPerGapAnswers(), assClozeTestGUI\saveGapCorrectionFormProperty(), assClozeTest\solutionValuesToLog(), assClozeTest\solutionValuesToText(), assClozeTestExport\toXML(), and assClozeTestGUI\writeAnswerSpecificPostData().
| const assClozeGap::TYPE_TEXT = 0 |
Definition at line 36 of file class.assClozeGap.php.
Referenced by assClozeTest\calculateCombinationResult(), ilPageQuestionProcessor\calculatePoints(), assClozeTest\calculateReachedPointsForSolution(), ilClozeGapInputBuilderGUI\checkInput(), assClozeTestGUI\completeAddAnswerAction(), ilAssClozeTestFeedback\completeFormPropsForFeedbackModeGapAnswers(), assClozeTest\createGapsFromQuestiontext(), ilAssClozeTestFeedback\determineAnswerIndexForAnswerValue(), assClozeTestGUI\getAnswerTextLabel(), getBestSolutionOutput(), assClozeTest\getMaximumPoints(), assClozeTestGUI\getSpecificFeedbackOutput(), ilAssClozeTestFeedback\initFeedbackFieldsPerGapAnswers(), assClozeTest\isAddableAnswerOptionValue(), isTextGap(), assClozeTest\loadFromDb(), assClozeTestGUI\populateGapCorrectionFormProperties(), assClozeTestGUI\populateGapFormPart(), assClozeTest\saveClozeGapItemsToDb(), ilAssClozeTestFeedback\saveFeedbackFieldsPerGapAnswers(), assClozeTestGUI\saveGapCorrectionFormProperty(), assClozeTest\toJSON(), assClozeTestExport\toXML(), and assClozeTestGUI\writeAnswerSpecificPostData().