ILIAS
trunk Revision v5.2.0beta1-34132-g2d4d73d4a0
|
Public Member Functions | |
getSpecificAnswerFeedbackTestPresentation (int $question_id, int $question_index, int $answer_index) | |
returns the html of SPECIFIC feedback for the given question id and answer index for test presentation More... | |
completeSpecificFormProperties (ilPropertyFormGUI $form) | |
completes a given form object with the specific form properties required by this question type More... | |
initSpecificFormProperties (ilPropertyFormGUI $form) | |
initialises a given form object's specific form properties relating to this question type More... | |
saveSpecificFormProperties (ilPropertyFormGUI $form) | |
getSpecificAnswerFeedbackContent (int $question_id, int $question_index, int $answer_index) | |
getAllSpecificAnswerFeedbackContents (int $question_id) | |
getAllSpecificAnswerPageEditorFeedbackContents (int $question_id) | |
saveSpecificAnswerFeedbackContent (int $question_id, int $question_index, int $answer_index, string $feedback_content) | |
deleteSpecificAnswerFeedbacks (int $question_id, bool $is_additional_content_editing_mode_page_object) | |
getAnswerOptionsByAnswerIndex () | |
getSpecificAnswerFeedbackExportPresentation (int $question_id, int $question_index, int $answer_index) | |
importSpecificAnswerFeedback (int $question_id, int $question_index, int $answer_index, string $feedback_content) | |
specificAnswerFeedbackExists () | |
Public Member Functions inherited from ilAssQuestionFeedback | |
__construct (assQuestion $questionOBJ, ilCtrl $ctrl, ilDBInterface $db, ilLanguage $lng) | |
constructor More... | |
getGenericFeedbackTestPresentation (int $question_id, bool $solution_completed) | |
returns the html of GENERIC feedback for the given question id for test presentation (either for the complete solution or for the incomplete solution) More... | |
getSpecificAnswerFeedbackTestPresentation (int $question_id, int $question_index, int $answer_index) | |
returns the html of SPECIFIC feedback for the given question id and answer index for test presentation More... | |
completeGenericFormProperties (ilPropertyFormGUI $form) | |
completes a given form object with the GENERIC form properties required by all question types More... | |
completeSpecificFormProperties (ilPropertyFormGUI $form) | |
completes a given form object with the SPECIFIC form properties required by this question type More... | |
initGenericFormProperties (ilPropertyFormGUI $form) | |
initialises a given form object's GENERIC form properties relating to all question types More... | |
initSpecificFormProperties (ilPropertyFormGUI $form) | |
initialises a given form object's SPECIFIC form properties relating to this question type More... | |
saveGenericFormProperties (ilPropertyFormGUI $form) | |
saves a given form object's GENERIC form properties relating to all question types More... | |
saveSpecificFormProperties (ilPropertyFormGUI $form) | |
saves a given form object's SPECIFIC form properties relating to this question type More... | |
isSaveableInPageObjectEditingMode () | |
returns the fact wether the feedback editing form is saveable in page object editing or not. More... | |
getGenericFeedbackContent (int $question_id, bool $solution_completed) | |
returns the GENERIC feedback content for a given question state. More... | |
getSpecificAnswerFeedbackContent (int $question_id, int $question_index, int $answer_index) | |
getAllSpecificAnswerFeedbackContents (int $question_id) | |
isSpecificAnswerFeedbackAvailable (int $question_id) | |
saveGenericFeedbackContent (int $question_id, bool $solution_completed, string $feedback_content) | |
saves GENERIC feedback content for the given question id to the database. More... | |
saveSpecificAnswerFeedbackContent (int $question_id, int $question_index, int $answer_index, string $feedback_content) | |
deleteGenericFeedbacks (int $question_id, bool $isAdditionalContentEditingModePageObject) | |
deletes all GENERIC feedback contents (and page objects if required) for the given question id More... | |
deleteSpecificAnswerFeedbacks (int $question_id, bool $isAdditionalContentEditingModePageObject) | |
duplicateFeedback (int $originalQuestionId, int $duplicateQuestionId) | |
duplicates the feedback relating to the given original question id and saves it for the given duplicate question id More... | |
syncFeedback (int $originalQuestionId, int $duplicateQuestionId) | |
syncs the feedback from a duplicated question back to the original question More... | |
checkFeedbackParent (int $feedbackId) | |
getClassNameByType (string $a_type, bool $a_gui=false) | |
setPageObjectOutputMode (string $page_obj_output_mode) | |
getPageObjectOutputMode () | |
getGenericFeedbackExportPresentation (int $question_id, bool $solution_completed) | |
returns the generic feedback export presentation for given question id either for solution completed or incompleted More... | |
getSpecificAnswerFeedbackExportPresentation (int $question_id, int $question_index, int $answer_index) | |
returns the generic feedback export presentation for given question id either for solution completed or incompleted More... | |
importGenericFeedback (int $question_id, bool $solution_completed, string $feedback_content) | |
imports the given feedback content as generic feedback for the given question id for either the complete or incomplete solution More... | |
importSpecificAnswerFeedback (int $question_id, int $question_index, int $answer_index, string $feedback_content) | |
migrateContentForLearningModule (ilAssSelfAssessmentMigrator $migrator, int $question_id) | |
Data Fields | |
const | TABLE_NAME_SPECIFIC_FEEDBACK = 'qpl_fb_specific' |
table name for specific feedback More... | |
Data Fields inherited from ilAssQuestionFeedback | |
const | CSS_CLASS_FEEDBACK_CORRECT = 'ilc_qfeedr_FeedbackRight' |
const | CSS_CLASS_FEEDBACK_WRONG = 'ilc_qfeedw_FeedbackWrong' |
const | PAGE_OBJECT_TYPE_GENERIC_FEEDBACK = 'qfbg' |
type for generic feedback page objects More... | |
const | PAGE_OBJECT_TYPE_SPECIFIC_FEEDBACK = 'qfbs' |
type for specific feedback page objects More... | |
const | FEEDBACK_SOLUTION_INCOMPLETE_PAGE_OBJECT_ID = 1 |
id for page object relating to generic incomplete solution feedback More... | |
const | FEEDBACK_SOLUTION_COMPLETE_PAGE_OBJECT_ID = 2 |
id for page object relating to generic complete solution feedback More... | |
const | TABLE_NAME_GENERIC_FEEDBACK = 'qpl_fb_generic' |
Protected Member Functions | |
duplicateSpecificFeedback (int $original_question_id, int $duplicate_question_id) | |
syncSpecificFeedback (int $original_question_id, int $duplicate_question_id) | |
getSpecificAnswerFeedbackId (int $question_id, int $question_index, int $answer_index) | |
getSpecificFeedbackContentForFeedbackIds (array $feedback_ids) | |
isSpecificAnswerFeedbackId (int $feedback_id) | |
getSpecificFeedbackTableName () | |
buildAnswerOptionLabel (int $index, $answer) | |
getSpecificAnswerFeedbackPageObjectId (int $question_id, int $question_index, int $answer_index) | |
returns a useable page object id for specific answer feedback page objects for the given question id and answer index (using the id sequence of non page object specific answer feedback) More... | |
Protected Member Functions inherited from ilAssQuestionFeedback | |
buildFeedbackContentFormProperty (string $label, string $post_var, bool $as_non_editable) | |
builds and returns a form property gui object with the given label and postvar that is addable to property forms depending on the given flag "asNonEditable" it returns a ... More... | |
duplicateSpecificFeedback (int $originalQuestionId, int $duplicateQuestionId) | |
duplicates the SPECIFIC feedback relating to the given original question id and saves it for the given duplicate question id More... | |
getGenericFeedbackId (int $question_id, bool $solution_completed) | |
returns the SPECIFIC answer feedback ID for a given question id and answer index. More... | |
isGenericFeedbackId (int $feedbackId) | |
isSpecificAnswerFeedbackId (int $feedbackId) | |
syncSpecificFeedback (int $originalQuestionId, int $duplicateQuestionId) | |
syncs the SPECIFIC feedback from a duplicated question back to the original question More... | |
getGenericFeedbackTableName () | |
getPageObjectNonEditableValueHTML (string $page_object_type, int $page_object_id) | |
returns html content to be used as value for non editable value form properties in feedback editing form More... | |
getPageObjectContent (string $page_object_type, int $page_object_id) | |
getPageObjectXML (string $page_object_type, int $page_object_id) | |
createPageObject (string $page_object_type, int $page_object_id, string $page_object_content) | |
duplicatePageObject (string $page_object_type, int $original_page_object_id, int $duplicate_page_object_id, int $duplicate_page_object_parent_id) | |
ensurePageObjectDeleted (string $page_object_type, int $page_object_id) | |
getGenericFeedbackPageObjectType () | |
getSpecificAnswerFeedbackPageObjectType () | |
getGenericFeedbackPageObjectId (int $question_id, bool $solution_completed) | |
returns a useable page object id for generic feedback page objects for the given question id for either the complete or incomplete solution (using the id sequence of non page object generic feedback) More... | |
cleanupPageContent (string $content) | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilAssQuestionFeedback | |
static | isValidFeedbackPageObjectType (string $feedbackPageObjectType) |
returns the fact whether the given page object type relates to generic or specific feedback page objects More... | |
Protected Attributes inherited from ilAssQuestionFeedback | |
assQuestion | $questionOBJ |
ilCtrl | $ctrl |
ilDBInterface | $db |
ilLanguage | $lng |
string | $page_obj_output_mode = "presentation" |
Definition at line 30 of file class.ilAssMultiOptionQuestionFeedback.php.
|
protected |
Definition at line 350 of file class.ilAssMultiOptionQuestionFeedback.php.
Referenced by ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), and completeSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::completeSpecificFormProperties | ( | ilPropertyFormGUI | $form | ) |
completes a given form object with the specific form properties required by this question type
Definition at line 61 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilPropertyFormGUI\addItem(), buildAnswerOptionLabel(), ilAssQuestionFeedback\buildFeedbackContentFormProperty(), getAnswerOptionsByAnswerIndex(), ILIAS\Repository\lng(), and ilLegacyFormElementsUtil\prepareTextareaOutput().
ilAssMultiOptionQuestionFeedback::deleteSpecificAnswerFeedbacks | ( | int | $question_id, |
bool | $is_additional_content_editing_mode_page_object | ||
) |
Definition at line 217 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilAssQuestionFeedback\ensurePageObjectDeleted(), and ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType().
|
protected |
Definition at line 238 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, ilAssQuestionFeedback\duplicatePageObject(), ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType(), and getSpecificFeedbackTableName().
ilAssMultiOptionQuestionFeedback::getAllSpecificAnswerFeedbackContents | ( | int | $question_id | ) |
Definition at line 145 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, and ilRTE\_replaceMediaObjectImageSrc().
Referenced by specificAnswerFeedbackExists().
ilAssMultiOptionQuestionFeedback::getAllSpecificAnswerPageEditorFeedbackContents | ( | int | $question_id | ) |
Definition at line 162 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilAssQuestionFeedback\cleanupPageContent(), ilAssQuestionFeedback\getPageObjectContent(), and ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType().
Referenced by specificAnswerFeedbackExists().
ilAssMultiOptionQuestionFeedback::getAnswerOptionsByAnswerIndex | ( | ) |
Definition at line 345 of file class.ilAssMultiOptionQuestionFeedback.php.
Referenced by ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), completeSpecificFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), initSpecificFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), and saveSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::getSpecificAnswerFeedbackContent | ( | int | $question_id, |
int | $question_index, | ||
int | $answer_index | ||
) |
Definition at line 123 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, and ilRTE\_replaceMediaObjectImageSrc().
Referenced by getSpecificAnswerFeedbackExportPresentation(), ilAssClozeTestFeedback\getSpecificAnswerFeedbackFormValue(), getSpecificAnswerFeedbackTestPresentation(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), and initSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::getSpecificAnswerFeedbackExportPresentation | ( | int | $question_id, |
int | $question_index, | ||
int | $answer_index | ||
) |
Definition at line 371 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilAssQuestionFeedback\getPageObjectXML(), getSpecificAnswerFeedbackContent(), getSpecificAnswerFeedbackPageObjectId(), and ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType().
|
finalprotected |
Definition at line 296 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res.
Referenced by getSpecificAnswerFeedbackPageObjectId(), and saveSpecificAnswerFeedbackContent().
|
finalprotected |
returns a useable page object id for specific answer feedback page objects for the given question id and answer index (using the id sequence of non page object specific answer feedback)
Definition at line 360 of file class.ilAssMultiOptionQuestionFeedback.php.
References getSpecificAnswerFeedbackId(), and saveSpecificAnswerFeedbackContent().
Referenced by getSpecificAnswerFeedbackExportPresentation(), ilAssClozeTestFeedback\getSpecificAnswerFeedbackFormValue(), getSpecificAnswerFeedbackTestPresentation(), importSpecificAnswerFeedback(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), and initSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::getSpecificAnswerFeedbackTestPresentation | ( | int | $question_id, |
int | $question_index, | ||
int | $answer_index | ||
) |
returns the html of SPECIFIC feedback for the given question id and answer index for test presentation
Definition at line 41 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilAssQuestionFeedback\getPageObjectContent(), getSpecificAnswerFeedbackContent(), getSpecificAnswerFeedbackPageObjectId(), and ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType().
Referenced by ilAssClozeTestFeedback\determineTestOutputGapFeedback().
|
protected |
array<int> | $feedback_ids |
Definition at line 314 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, and ilDBConstants\T_INTEGER.
Referenced by ilAssClozeTestFeedback\isSpecificAnswerFeedbackAvailable().
|
finalprotected |
Definition at line 340 of file class.ilAssMultiOptionQuestionFeedback.php.
Referenced by duplicateSpecificFeedback(), saveSpecificAnswerFeedbackContent(), and syncSpecificFeedback().
ilAssMultiOptionQuestionFeedback::importSpecificAnswerFeedback | ( | int | $question_id, |
int | $question_index, | ||
int | $answer_index, | ||
string | $feedback_content | ||
) |
Definition at line 387 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilAssQuestionFeedback\createPageObject(), getSpecificAnswerFeedbackPageObjectId(), ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType(), and saveSpecificAnswerFeedbackContent().
ilAssMultiOptionQuestionFeedback::initSpecificFormProperties | ( | ilPropertyFormGUI | $form | ) |
initialises a given form object's specific form properties relating to this question type
Definition at line 89 of file class.ilAssMultiOptionQuestionFeedback.php.
References getAnswerOptionsByAnswerIndex(), ilPropertyFormGUI\getItemByPostVar(), ilAssQuestionFeedback\getPageObjectNonEditableValueHTML(), getSpecificAnswerFeedbackContent(), getSpecificAnswerFeedbackPageObjectId(), ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType(), and ilLegacyFormElementsUtil\prepareTextareaOutput().
|
protected |
Definition at line 328 of file class.ilAssMultiOptionQuestionFeedback.php.
ilAssMultiOptionQuestionFeedback::saveSpecificAnswerFeedbackContent | ( | int | $question_id, |
int | $question_index, | ||
int | $answer_index, | ||
string | $feedback_content | ||
) |
Definition at line 179 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilRTE\_replaceMediaObjectImageSrc(), getSpecificAnswerFeedbackId(), and getSpecificFeedbackTableName().
Referenced by getSpecificAnswerFeedbackPageObjectId(), importSpecificAnswerFeedback(), ilAssClozeTestFeedback\saveFbPropsForNumericGap(), ilAssClozeTestFeedback\saveFbPropsForSelectGap(), ilAssClozeTestFeedback\saveFbPropsForTextGap(), ilAssClozeTestFeedback\saveFeedbackFieldsPerGapQuestion(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), and saveSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::saveSpecificFormProperties | ( | ilPropertyFormGUI | $form | ) |
Definition at line 109 of file class.ilAssMultiOptionQuestionFeedback.php.
References getAnswerOptionsByAnswerIndex(), ilPropertyFormGUI\getInput(), and saveSpecificAnswerFeedbackContent().
ilAssMultiOptionQuestionFeedback::specificAnswerFeedbackExists | ( | ) |
Definition at line 399 of file class.ilAssMultiOptionQuestionFeedback.php.
References getAllSpecificAnswerFeedbackContents(), and getAllSpecificAnswerPageEditorFeedbackContents().
|
protected |
Definition at line 265 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, and getSpecificFeedbackTableName().
const ilAssMultiOptionQuestionFeedback::TABLE_NAME_SPECIFIC_FEEDBACK = 'qpl_fb_specific' |
table name for specific feedback
Definition at line 35 of file class.ilAssMultiOptionQuestionFeedback.php.
Referenced by ilAssSpecificFeedbackIdentifierList\getSpecificFeedbackTableName().