ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Public Member Functions | |
completeSpecificFormProperties (ilPropertyFormGUI $form) | |
initSpecificFormProperties (ilPropertyFormGUI $form) | |
saveSpecificFormProperties (ilPropertyFormGUI $form) | |
isSaveableInPageObjectEditingMode () | |
returns the fact that the feedback editing form is saveable in page object editing mode, because this question type has additional feedback settings More... | |
saveSpecificFeedbackSetting (int $questionId, int $specificFeedbackSetting) | |
saves the given specific feedback setting for the given question id to the db. 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... | |
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 () | |
![]() | |
__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... | |
cloneFeedback (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) | |
createFeedbackPages (string $mode) | |
Data Fields | |
const | FEEDBACK_SETTING_ALL = 1 |
const | FEEDBACK_SETTING_CHECKED = 2 |
const | FEEDBACK_SETTING_CORRECT = 3 |
![]() | |
const | TABLE_NAME_SPECIFIC_FEEDBACK = 'qpl_fb_specific' |
table name for specific feedback More... | |
![]() | |
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 | |
getSpecificQuestionTableName () | |
cloneSpecificFeedback (int $source_question_id, int $target_question_id) | |
![]() | |
cloneSpecificFeedback (int $source_question_id, int $target_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... | |
![]() | |
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... | |
cloneSpecificFeedback (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) | |
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... | |
getPageObjectXML (string $page_object_type, int $page_object_id) | |
createPageObject (string $page_object_type, int $page_object_id, string $page_object_content) | |
clonePageObject (string $page_object_type, int $source_page_object_id, int $target_page_object_id, int $target_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) | |
Private Member Functions | |
cloneSpecificFeedbackSetting (int $source_question_id, int $target_question_id) | |
Additional Inherited Members | |
![]() | |
static | isValidFeedbackPageObjectType (string $feedbackPageObjectType) |
returns the fact whether the given page object type relates to generic or specific feedback page objects More... | |
![]() | |
assQuestion | $questionOBJ |
ilCtrl | $ctrl |
ilDBInterface | $db |
ilLanguage | $lng |
string | $page_obj_output_mode = "presentation" |
Definition at line 31 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
|
protected |
Definition at line 148 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
References cloneSpecificFeedbackSetting().
|
private |
Definition at line 154 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
References $res, and getSpecificQuestionTableName().
Referenced by cloneSpecificFeedback().
ilAssConfigurableMultiOptionQuestionFeedback::completeSpecificFormProperties | ( | ilPropertyFormGUI | $form | ) |
Definition at line 39 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
References ilPropertyFormGUI\addItem(), ilRadioGroupInputGUI\addOption(), ilAssMultiOptionQuestionFeedback\buildAnswerOptionLabel(), ilAssQuestionFeedback\buildFeedbackContentFormProperty(), ilAssMultiOptionQuestionFeedback\getAnswerOptionsByAnswerIndex(), ILIAS\Repository\lng(), and ilLegacyFormElementsUtil\prepareTextareaOutput().
|
abstractprotected |
Referenced by cloneSpecificFeedbackSetting(), and saveSpecificFeedbackSetting().
ilAssConfigurableMultiOptionQuestionFeedback::initSpecificFormProperties | ( | ilPropertyFormGUI | $form | ) |
Definition at line 77 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
References ilAssMultiOptionQuestionFeedback\getAnswerOptionsByAnswerIndex(), ilPropertyFormGUI\getItemByPostVar(), ilAssQuestionFeedback\getPageObjectNonEditableValueHTML(), ilAssMultiOptionQuestionFeedback\getSpecificAnswerFeedbackContent(), ilAssMultiOptionQuestionFeedback\getSpecificAnswerFeedbackPageObjectId(), ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType(), and ilLegacyFormElementsUtil\prepareTextareaOutput().
ilAssConfigurableMultiOptionQuestionFeedback::isSaveableInPageObjectEditingMode | ( | ) |
returns the fact that the feedback editing form is saveable in page object editing mode, because this question type has additional feedback settings
Definition at line 130 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
ilAssConfigurableMultiOptionQuestionFeedback::saveSpecificFeedbackSetting | ( | int | $questionId, |
int | $specificFeedbackSetting | ||
) |
saves the given specific feedback setting for the given question id to the db.
(It::s stored to dataset of question itself)
Definition at line 139 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
References getSpecificQuestionTableName().
Referenced by saveSpecificFormProperties().
ilAssConfigurableMultiOptionQuestionFeedback::saveSpecificFormProperties | ( | ilPropertyFormGUI | $form | ) |
Definition at line 101 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
References ilAssMultiOptionQuestionFeedback\getAnswerOptionsByAnswerIndex(), ilPropertyFormGUI\getInput(), ILIAS\Repository\int(), ilAssMultiOptionQuestionFeedback\saveSpecificAnswerFeedbackContent(), and saveSpecificFeedbackSetting().
const ilAssConfigurableMultiOptionQuestionFeedback::FEEDBACK_SETTING_ALL = 1 |
Definition at line 33 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
Referenced by assKprimChoiceGUI\populateSpecificFeedbackInline().
const ilAssConfigurableMultiOptionQuestionFeedback::FEEDBACK_SETTING_CHECKED = 2 |
Definition at line 34 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
Referenced by assKprimChoiceGUI\populateSpecificFeedbackInline().
const ilAssConfigurableMultiOptionQuestionFeedback::FEEDBACK_SETTING_CORRECT = 3 |
Definition at line 35 of file class.ilAssConfigurableMultiOptionQuestionFeedback.php.
Referenced by assKprimChoiceGUI\populateSpecificFeedbackInline().