ILIAS
Release_4_4_x_branch Revision 61816
|
Public Member Functions | |
getSpecificAnswerFeedbackTestPresentation ($questionId, $answerIndex) | |
returns the html of SPECIFIC feedback for the given question id and answer index for test presentation | |
completeSpecificFormProperties (ilPropertyFormGUI $form) | |
completes a given form object with the specific form properties required by this question type | |
initSpecificFormProperties (ilPropertyFormGUI $form) | |
initialises a given form object's specific form properties relating to this question type | |
saveSpecificFormProperties (ilPropertyFormGUI $form) | |
saves a given form object's specific form properties relating to this question type | |
getSpecificAnswerFeedbackContent ($questionId, $answerIndex) | |
returns the SPECIFIC answer feedback content for a given question id and answer index. | |
saveSpecificAnswerFeedbackContent ($questionId, $answerIndex, $feedbackContent) | |
saves SPECIFIC answer feedback content for the given question id and answer index to the database. | |
deleteSpecificAnswerFeedbacks ($questionId, $isAdditionalContentEditingModePageObject) | |
deletes all SPECIFIC answer feedback contents (and page objects if required) for the given question id | |
getSpecificAnswerFeedbackExportPresentation ($questionId, $answerIndex) | |
returns the generic feedback export presentation for given question id either for solution completed or incompleted | |
importSpecificAnswerFeedback ($questionId, $answerIndex, $feedbackContent) | |
imports the given feedback content as specific feedback for the given question id and answer index | |
specificAnswerFeedbackExists ($answerIndexes) | |
Public Member Functions inherited from ilAssQuestionFeedback | |
__construct (assQuestion $questionOBJ, ilCtrl $ctrl, ilDB $db, ilLanguage $lng) | |
constructor | |
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) | |
completeGenericFormProperties (ilPropertyFormGUI $form) | |
completes a given form object with the GENERIC form properties required by all question types | |
initGenericFormProperties (ilPropertyFormGUI $form) | |
initialises a given form object's GENERIC form properties relating to all question types | |
saveGenericFormProperties (ilPropertyFormGUI $form) | |
saves a given form object's GENERIC form properties relating to all question types | |
isSaveableInPageObjectEditingMode () | |
returns the fact wether the feedback editing form is saveable in page object editing or not. | |
getGenericFeedbackContent ($questionId, $solutionCompleted) | |
returns the GENERIC feedback content for a given question state. | |
saveGenericFeedbackContent ($questionId, $solutionCompleted, $feedbackContent) | |
saves GENERIC feedback content for the given question id to the database. | |
deleteGenericFeedbacks ($questionId, $isAdditionalContentEditingModePageObject) | |
deletes all GENERIC feedback contents (and page objects if required) for the given question id | |
duplicateFeedback ($originalQuestionId, $duplicateQuestionId) | |
duplicates the feedback relating to the given original question id and saves it for the given duplicate question id | |
syncFeedback ($originalQuestionId, $duplicateQuestionId) | |
syncs the feedback from a duplicated question back to the original question | |
getClassNameByType ($a_type, $a_gui=false) | |
Get class name by type. | |
setPageObjectOutputMode ($a_val) | |
Set page object output mode. | |
getPageObjectOutputMode () | |
Get page object output mode. | |
getGenericFeedbackExportPresentation ($questionId, $solutionCompleted) | |
returns the generic feedback export presentation for given question id either for solution completed or incompleted | |
importGenericFeedback ($questionId, $solutionCompleted, $feedbackContent) | |
imports the given feedback content as generic feedback for the given question id for either the complete or incomplete solution |
Data Fields | |
const | TABLE_NAME_SPECIFIC_FEEDBACK = 'qpl_fb_specific' |
table name for specific feedback | |
Data Fields inherited from ilAssQuestionFeedback | |
const | PAGE_OBJECT_TYPE_GENERIC_FEEDBACK = 'qfbg' |
type for generic feedback page objects | |
const | PAGE_OBJECT_TYPE_SPECIFIC_FEEDBACK = 'qfbs' |
type for specific feedback page objects | |
const | FEEDBACK_SOLUTION_INCOMPLETE_PAGE_OBJECT_ID = 1 |
id for page object relating to generic incomplete solution feedback | |
const | FEEDBACK_SOLUTION_COMPLETE_PAGE_OBJECT_ID = 2 |
id for page object relating to generic complete solution feedback | |
const | TABLE_NAME_GENERIC_FEEDBACK = 'qpl_fb_generic' |
table name for specific feedback |
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 | |
syncSpecificFeedback ($originalQuestionId, $duplicateQuestionId) | |
syncs the SPECIFIC feedback from a duplicated question back to the original question | |
getSpecificAnswerFeedbackId ($questionId, $answerIndex) | |
returns the SPECIFIC answer feedback ID for a given question id and answer index. | |
getSpecificAnswerFeedbackIdByAnswerIndexMap ($questionId) | |
returns an array mapping feedback ids to answer indexes for all answer options of question | |
getSpecificFeedbackTableName () | |
returns the table name for specific feedback | |
getAnswerOptionsByAnswerIndex () | |
returns the answer options mapped by answer index (can be overwritten by concrete question type class) | |
buildAnswerOptionLabel ($index, $answer) | |
builds an answer option label from given (mixed type) index and answer (can be overwritten by concrete question types) | |
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) | |
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 ... | |
getGenericFeedbackId ($questionId, $solutionCompleted) | |
returns the SPECIFIC answer feedback ID for a given question id and answer index. | |
getGenericFeedbackTableName () | |
returns the table name for specific feedback | |
getPageObjectNonEditableValueHTML ($pageObjectType, $pageObjectId) | |
returns html content to be used as value for non editable value form properties in feedback editing form | |
getPageObjectContent ($pageObjectType, $pageObjectId) | |
returns the content of page object with given type and id | |
getPageObjectXML ($pageObjectType, $pageObjectId) | |
returns the xml of page object with given type and id | |
createPageObject ($pageObjectType, $pageObjectId, $pageObjectContent) | |
creates a new page object with given page object id and page object type and passed page object content | |
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 | |
ensurePageObjectDeleted ($pageObjectType, $pageObjectId) | |
ensures a no more existing page object for given type and id | |
getGenericFeedbackPageObjectType () | |
returns the type for generic feedback page objects defined in local constant | |
getSpecificAnswerFeedbackPageObjectType () | |
returns the type for specific feedback page objects defined in local constant | |
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) |
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 | |
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 |
Reimplemented in ilAssClozeTestFeedback, ilAssErrorTextFeedback, ilAssMatchingQuestionFeedback, ilAssOrderingHorizontalFeedback, ilAssImagemapQuestionFeedback, and ilAssTextQuestionFeedback.
Definition at line 384 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 |
Reimplemented from ilAssQuestionFeedback.
Reimplemented in ilAssConfigurableMultiOptionQuestionFeedback.
Definition at line 59 of file class.ilAssMultiOptionQuestionFeedback.php.
References 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 |
Reimplemented from ilAssQuestionFeedback.
Definition at line 216 of file class.ilAssMultiOptionQuestionFeedback.php.
References 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 |
Reimplemented from ilAssQuestionFeedback.
Reimplemented in ilAssConfigurableMultiOptionQuestionFeedback.
Definition at line 239 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, $row, ilAssQuestionFeedback\duplicatePageObject(), ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType(), and getSpecificFeedbackTableName().
|
protected |
returns the answer options mapped by answer index (can be overwritten by concrete question type class)
Reimplemented in ilAssClozeTestFeedback, ilAssErrorTextFeedback, ilAssMatchingQuestionFeedback, and ilAssOrderingHorizontalFeedback.
Definition at line 370 of file class.ilAssMultiOptionQuestionFeedback.php.
Referenced by ilAssConfigurableMultiOptionQuestionFeedback\completeSpecificFormProperties(), completeSpecificFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), initSpecificFormProperties(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), and saveSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::getSpecificAnswerFeedbackContent | ( | $questionId, | |
$answerIndex | |||
) |
returns the SPECIFIC answer feedback content for a given question id and answer index.
public
integer | $questionId | |
boolean | $answerIndex |
Reimplemented from ilAssQuestionFeedback.
Definition at line 142 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, $row, and ilRTE\_replaceMediaObjectImageSrc().
Referenced by getSpecificAnswerFeedbackExportPresentation(), getSpecificAnswerFeedbackTestPresentation(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), and 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 |
Reimplemented from ilAssQuestionFeedback.
Definition at line 421 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 309 of file class.ilAssMultiOptionQuestionFeedback.php.
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 336 of file class.ilAssMultiOptionQuestionFeedback.php.
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 400 of file class.ilAssMultiOptionQuestionFeedback.php.
References getSpecificAnswerFeedbackId(), and saveSpecificAnswerFeedbackContent().
Referenced by getSpecificAnswerFeedbackExportPresentation(), getSpecificAnswerFeedbackTestPresentation(), importSpecificAnswerFeedback(), ilAssConfigurableMultiOptionQuestionFeedback\initSpecificFormProperties(), and 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 |
Reimplemented from ilAssQuestionFeedback.
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 359 of file class.ilAssMultiOptionQuestionFeedback.php.
References TABLE_NAME_SPECIFIC_FEEDBACK.
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 |
Reimplemented from ilAssQuestionFeedback.
Definition at line 449 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 |
Reimplemented from ilAssQuestionFeedback.
Reimplemented in ilAssConfigurableMultiOptionQuestionFeedback.
Definition at line 89 of file class.ilAssMultiOptionQuestionFeedback.php.
References getAnswerOptionsByAnswerIndex(), ilPropertyFormGUI\getItemByPostVar(), ilAssQuestionFeedback\getPageObjectNonEditableValueHTML(), getSpecificAnswerFeedbackContent(), getSpecificAnswerFeedbackPageObjectId(), and ilAssQuestionFeedback\getSpecificAnswerFeedbackPageObjectType().
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 |
Reimplemented from ilAssQuestionFeedback.
Definition at line 169 of file class.ilAssMultiOptionQuestionFeedback.php.
References ilRTE\_replaceMediaObjectImageSrc(), getSpecificAnswerFeedbackId(), and getSpecificFeedbackTableName().
Referenced by getSpecificAnswerFeedbackPageObjectId(), importSpecificAnswerFeedback(), ilAssConfigurableMultiOptionQuestionFeedback\saveSpecificFormProperties(), and saveSpecificFormProperties().
ilAssMultiOptionQuestionFeedback::saveSpecificFormProperties | ( | ilPropertyFormGUI | $form | ) |
saves a given form object's specific form properties relating to this question type
public
ilPropertyFormGUI | $form |
Reimplemented from ilAssQuestionFeedback.
Reimplemented in ilAssConfigurableMultiOptionQuestionFeedback.
Definition at line 121 of file class.ilAssMultiOptionQuestionFeedback.php.
References getAnswerOptionsByAnswerIndex(), ilPropertyFormGUI\getInput(), and saveSpecificAnswerFeedbackContent().
ilAssMultiOptionQuestionFeedback::specificAnswerFeedbackExists | ( | $answerIndexes | ) |
Definition at line 464 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 |
Reimplemented from ilAssQuestionFeedback.
Reimplemented in ilAssConfigurableMultiOptionQuestionFeedback.
Definition at line 273 of file class.ilAssMultiOptionQuestionFeedback.php.
References $res, $row, and getSpecificFeedbackTableName().
const ilAssMultiOptionQuestionFeedback::TABLE_NAME_SPECIFIC_FEEDBACK = 'qpl_fb_specific' |
table name for specific feedback
Definition at line 22 of file class.ilAssMultiOptionQuestionFeedback.php.
Referenced by getSpecificFeedbackTableName().