ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
getSpecificAnswerFeedbackTestPresentation ($questionId, $answerIndex) | |
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) | |
saves a given form object's specific form properties relating to this question type More... | |
getSpecificAnswerFeedbackContent ($questionId, $answerIndex) | |
returns the SPECIFIC answer feedback content for a given question id and answer index. More... | |
getAllSpecificAnswerFeedbackContents ($questionId) | |
returns the SPECIFIC feedback content for a given question id and answer index. More... | |
saveSpecificAnswerFeedbackContent ($questionId, $answerIndex, $feedbackContent) | |
saves SPECIFIC answer feedback content for the given question id and answer index to the database. More... | |
deleteSpecificAnswerFeedbacks ($questionId, $isAdditionalContentEditingModePageObject) | |
deletes all SPECIFIC answer feedback contents (and page objects if required) for the given question id More... | |
getAnswerOptionsByAnswerIndex () | |
returns the answer options mapped by answer index (can be overwritten by concrete question type class) More... | |
getSpecificAnswerFeedbackExportPresentation ($questionId, $answerIndex) | |
returns the generic feedback export presentation for given question id either for solution completed or incompleted More... | |
importSpecificAnswerFeedback ($questionId, $answerIndex, $feedbackContent) | |
imports the given feedback content as specific feedback for the given question id and answer index More... | |
specificAnswerFeedbackExists ($answerIndexes) | |
Public Member Functions inherited from ilAssQuestionFeedback | |
__construct (assQuestion $questionOBJ, ilCtrl $ctrl, ilDBInterface $db, ilLanguage $lng) | |
constructor More... | |
getGenericFeedbackTestPresentation ($questionId, $solutionCompleted) | |
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 ($questionId, $answerIndex) | |
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 ($questionId, $solutionCompleted) | |
returns the GENERIC feedback content for a given question state. More... | |
getSpecificAnswerFeedbackContent ($questionId, $answerIndex) | |
returns the SPECIFIC feedback content for a given question id and answer index. More... | |
getAllSpecificAnswerFeedbackContents ($questionId) | |
returns the SPECIFIC feedback content for a given question id and answer index. More... | |
saveGenericFeedbackContent ($questionId, $solutionCompleted, $feedbackContent) | |
saves GENERIC feedback content for the given question id to the database. More... | |
saveSpecificAnswerFeedbackContent ($questionId, $answerIndex, $feedbackContent) | |
saves SPECIFIC feedback content for the given question id and answer index to the database. More... | |
deleteGenericFeedbacks ($questionId, $isAdditionalContentEditingModePageObject) | |
deletes all GENERIC feedback contents (and page objects if required) for the given question id More... | |
deleteSpecificAnswerFeedbacks ($questionId, $isAdditionalContentEditingModePageObject) | |
deletes all SPECIFIC feedback contents for the given question id More... | |
duplicateFeedback ($originalQuestionId, $duplicateQuestionId) | |
duplicates the feedback relating to the given original question id and saves it for the given duplicate question id More... | |
syncFeedback ($originalQuestionId, $duplicateQuestionId) | |
syncs the feedback from a duplicated question back to the original question More... | |
checkFeedbackParent ($feedbackId) | |
getClassNameByType ($a_type, $a_gui=false) | |
Get class name by type. More... | |
setPageObjectOutputMode ($a_val) | |
Set page object output mode. More... | |
getPageObjectOutputMode () | |
Get page object output mode. More... | |
getGenericFeedbackExportPresentation ($questionId, $solutionCompleted) | |
returns the generic feedback export presentation for given question id either for solution completed or incompleted More... | |
getSpecificAnswerFeedbackExportPresentation ($questionId, $answerIndex) | |
returns the generic feedback export presentation for given question id either for solution completed or incompleted More... | |
importGenericFeedback ($questionId, $solutionCompleted, $feedbackContent) | |
imports the given feedback content as generic feedback for the given question id for either the complete or incomplete solution More... | |
importSpecificAnswerFeedback ($questionId, $answerIndex, $feedbackContent) | |
imports the given feedback content as specific feedback for the given question id and answer index More... | |
migrateContentForLearningModule (ilAssSelfAssessmentMigrator $migrator, $questionId) | |
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' |
table name for specific feedback More... | |
Protected Member Functions | |
duplicateSpecificFeedback ($originalQuestionId, $duplicateQuestionId) | |
duplicates the SPECIFIC feedback relating to the given original question id and saves it for the given duplicate question id More... | |
syncSpecificFeedback ($originalQuestionId, $duplicateQuestionId) | |
syncs the SPECIFIC feedback from a duplicated question back to the original question More... | |
getSpecificAnswerFeedbackId ($questionId, $answerIndex) | |
returns the SPECIFIC answer feedback ID for a given question id and answer index. More... | |
isSpecificAnswerFeedbackId ($feedbackId) | |
getSpecificAnswerFeedbackIdByAnswerIndexMap ($questionId) | |
returns an array mapping feedback ids to answer indexes for all answer options of question More... | |
getSpecificFeedbackTableName () | |
returns the table name for specific feedback More... | |
buildAnswerOptionLabel ($index, $answer) | |
builds an answer option label from given (mixed type) index and answer (can be overwritten by concrete question types) More... | |
getSpecificAnswerFeedbackPageObjectId ($questionId, $answerIndex) | |
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 ($label, $postVar, $asNonEditable) | |
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 ($originalQuestionId, $duplicateQuestionId) | |
duplicates the SPECIFIC feedback relating to the given original question id and saves it for the given duplicate question id More... | |
getGenericFeedbackId ($questionId, $solutionCompleted) | |
returns the SPECIFIC answer feedback ID for a given question id and answer index. More... | |
isGenericFeedbackId ($feedbackId) | |
isSpecificAnswerFeedbackId ($feedbackId) | |
syncSpecificFeedback ($originalQuestionId, $duplicateQuestionId) | |
syncs the SPECIFIC feedback from a duplicated question back to the original question More... | |
getGenericFeedbackTableName () | |
returns the table name for specific feedback More... | |
getPageObjectNonEditableValueHTML ($pageObjectType, $pageObjectId) | |
returns html content to be used as value for non editable value form properties in feedback editing form More... | |
getPageObjectContent ($pageObjectType, $pageObjectId) | |
returns the content of page object with given type and id More... | |
getPageObjectXML ($pageObjectType, $pageObjectId) | |
returns the xml of page object with given type and id More... | |
createPageObject ($pageObjectType, $pageObjectId, $pageObjectContent) | |
creates a new page object with given page object id and page object type and passed page object content More... | |
duplicatePageObject ($pageObjectType, $originalPageObjectId, $duplicatePageObjectId, $duplicatePageObjectParentId) | |
duplicates the page object with given type and original id to new page object with same type and given duplicate id and duplicate parent id More... | |
ensurePageObjectDeleted ($pageObjectType, $pageObjectId) | |
ensures a no more existing page object for given type and id More... | |
getGenericFeedbackPageObjectType () | |
returns the type for generic feedback page objects defined in local constant More... | |
getSpecificAnswerFeedbackPageObjectType () | |
returns the type for specific feedback page objects defined in local constant More... | |
getGenericFeedbackPageObjectId ($questionId, $solutionCompleted) | |
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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from ilAssQuestionFeedback | |
static | isValidFeedbackPageObjectType ($feedbackPageObjectType) |
returns the fact wether the given page object type relates to generic or specific feedback page objects More... | |
Protected Attributes inherited from ilAssQuestionFeedback | |
$questionOBJ = null | |
$ctrl = null | |
$db = null | |
$lng = null | |
$page_obj_output_mode = "presentation" | |
Definition at line 17 of file class.ilAssMultiOptionQuestionFeedback.php.
|
protected |
builds an answer option label from given (mixed type) index and answer (can be overwritten by concrete question types)
protected
integer | $index | |
mixed | $answer |
Definition at line 419 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
public
ilPropertyFormGUI | $form |
Definition at line 57 of file class.ilAssMultiOptionQuestionFeedback.php.
References $header, $index, ilPropertyFormGUI\addItem(), buildAnswerOptionLabel(), ilAssQuestionFeedback\buildFeedbackContentFormProperty(), and getAnswerOptionsByAnswerIndex().
ilAssMultiOptionQuestionFeedback::deleteSpecificAnswerFeedbacks | ( | $questionId, | |
$isAdditionalContentEditingModePageObject | |||
) |
deletes all SPECIFIC answer feedback contents (and page objects if required) for the given question id
public
integer | $questionId | |
boolean | $isAdditionalContentEditingModePageObject |
Definition at line 234 of file class.ilAssMultiOptionQuestionFeedback.php.
References array, ilAssQuestionFeedback\ensurePageObjectDeleted(), getSpecificAnswerFeedbackIdByAnswerIndexMap(), and ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType().
|
protected |
duplicates the SPECIFIC feedback relating to the given original question id and saves it for the given duplicate question id
protected
integer | $originalQuestionId | |
integer | $duplicateQuestionId |
Definition at line 256 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, $row, array, ilAssQuestionFeedback\duplicatePageObject(), ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType(), getSpecificFeedbackTableName(), and time.
ilAssMultiOptionQuestionFeedback::getAllSpecificAnswerFeedbackContents | ( | $questionId | ) |
returns the SPECIFIC feedback content for a given question id and answer index.
public
integer | $questionId |
Definition at line 162 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, $row, ilRTE\_replaceMediaObjectImageSrc(), and array.
ilAssMultiOptionQuestionFeedback::getAnswerOptionsByAnswerIndex | ( | ) |
returns the answer options mapped by answer index (can be overwritten by concrete question type class)
Definition at line 405 of file class.ilAssMultiOptionQuestionFeedback.php.
Referenced by ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), completeSpecificFormProperties(), initSpecificFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), saveSpecificFormProperties(), and ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::getSpecificAnswerFeedbackContent | ( | $questionId, | |
$answerIndex | |||
) |
returns the SPECIFIC answer feedback content for a given question id and answer index.
public
integer | $questionId | |
boolean | $answerIndex |
Definition at line 136 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, $row, ilRTE\_replaceMediaObjectImageSrc(), and array.
Referenced by getSpecificAnswerFeedbackExportPresentation(), getSpecificAnswerFeedbackTestPresentation(), initSpecificFormProperties(), and ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::getSpecificAnswerFeedbackExportPresentation | ( | $questionId, | |
$answerIndex | |||
) |
returns the generic feedback export presentation for given question id either for solution completed or incompleted
public
integer | $questionId | |
integer | $answerIndex |
Definition at line 455 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilAssQuestionFeedback\getPageObjectXML(), getSpecificAnswerFeedbackContent(), getSpecificAnswerFeedbackPageObjectId(), and ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType().
Referenced by specificAnswerFeedbackExists().
|
finalprotected |
returns the SPECIFIC answer feedback ID for a given question id and answer index.
protected
integer | $questionId | |
boolean | $answerIndex |
Definition at line 328 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, $row, and array.
Referenced by getSpecificAnswerFeedbackPageObjectId(), and saveSpecificAnswerFeedbackContent().
|
finalprotected |
returns an array mapping feedback ids to answer indexes for all answer options of question
protected
integer | $questionId |
Definition at line 371 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, $row, and array.
Referenced by deleteSpecificAnswerFeedbacks().
|
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)
protected
integer | $questionId | |
integer | $answerIndex |
Definition at line 435 of file class.ilAssMultiOptionQuestionFeedback.php.
References getSpecificAnswerFeedbackId(), and saveSpecificAnswerFeedbackContent().
Referenced by getSpecificAnswerFeedbackExportPresentation(), getSpecificAnswerFeedbackTestPresentation(), importSpecificAnswerFeedback(), initSpecificFormProperties(), and ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::getSpecificAnswerFeedbackTestPresentation | ( | $questionId, | |
$answerIndex | |||
) |
returns the html of SPECIFIC feedback for the given question id and answer index for test presentation
public
integer | $questionId | |
integer | $answerIndex |
Definition at line 33 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilAssQuestionFeedback\getPageObjectContent(), getSpecificAnswerFeedbackContent(), getSpecificAnswerFeedbackPageObjectId(), and ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType().
|
finalprotected |
returns the table name for specific feedback
Definition at line 394 of file class.ilAssMultiOptionQuestionFeedback.php.
Referenced by ilAssConfigurableMultiOptionQuestionFeedback\duplicateSpecificFeedback(), duplicateSpecificFeedback(), saveSpecificAnswerFeedbackContent(), ilAssConfigurableMultiOptionQuestionFeedback\syncSpecificFeedback(), and syncSpecificFeedback().
ilAssMultiOptionQuestionFeedback::importSpecificAnswerFeedback | ( | $questionId, | |
$answerIndex, | |||
$feedbackContent | |||
) |
imports the given feedback content as specific feedback for the given question id and answer index
public
integer | $questionId | |
integer | $answerIndex | |
string | $feedbackContent |
Definition at line 481 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
public
ilPropertyFormGUI | $form |
Definition at line 88 of file class.ilAssMultiOptionQuestionFeedback.php.
References $index, getAnswerOptionsByAnswerIndex(), ilPropertyFormGUI\getItemByPostVar(), ilAssQuestionFeedback\getPageObjectNonEditableValueHTML(), getSpecificAnswerFeedbackContent(), getSpecificAnswerFeedbackPageObjectId(), and ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType().
|
protected |
int | $feedbackId |
Definition at line 350 of file class.ilAssMultiOptionQuestionFeedback.php.
ilAssMultiOptionQuestionFeedback::saveSpecificAnswerFeedbackContent | ( | $questionId, | |
$answerIndex, | |||
$feedbackContent | |||
) |
saves SPECIFIC answer feedback content for the given question id and answer index to the database.
public
integer | $questionId | |
integer | $answerIndex | |
string | $feedbackContent |
Definition at line 190 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilRTE\_replaceMediaObjectImageSrc(), array, getSpecificAnswerFeedbackId(), getSpecificFeedbackTableName(), and time.
Referenced by getSpecificAnswerFeedbackPageObjectId(), importSpecificAnswerFeedback(), saveSpecificFormProperties(), and ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::saveSpecificFormProperties | ( | ilPropertyFormGUI | $form | ) |
saves a given form object's specific form properties relating to this question type
public
ilPropertyFormGUI | $form |
Definition at line 115 of file class.ilAssMultiOptionQuestionFeedback.php.
References $index, getAnswerOptionsByAnswerIndex(), ilPropertyFormGUI\getInput(), and saveSpecificAnswerFeedbackContent().
ilAssMultiOptionQuestionFeedback::specificAnswerFeedbackExists | ( | $answerIndexes | ) |
Definition at line 493 of file class.ilAssMultiOptionQuestionFeedback.php.
References getSpecificAnswerFeedbackExportPresentation().
|
protected |
syncs the SPECIFIC feedback from a duplicated question back to the original question
protected
integer | $originalQuestionId | |
integer | $duplicateQuestionId |
Definition at line 289 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, $row, array, getSpecificFeedbackTableName(), and time.
const ilAssMultiOptionQuestionFeedback::TABLE_NAME_SPECIFIC_FEEDBACK = 'qpl_fb_specific' |
table name for specific feedback
Definition at line 22 of file class.ilAssMultiOptionQuestionFeedback.php.