|
ILIAS
Release_5_0_x_branch Revision 61816
|
Abstract basic class which is to be extended by the concrete assessment question type classes. More...
Inheritance diagram for assQuestion:
Collaboration diagram for assQuestion:Public Member Functions | |
| __construct ($title="", $comment="", $author="", $owner=-1, $question="") | |
| assQuestion constructor | |
| setProcessLocker ($processLocker) | |
| getProcessLocker () | |
| fromXML (&$item, &$questionpool_id, &$tst_id, &$tst_object, &$question_counter, &$import_mapping) | |
| Receives parameters from a QTI parser and creates a valid ILIAS question object. | |
| toXML ($a_include_header=true, $a_include_binary=true, $a_shuffle=false, $test_output=false, $force_image_references=false) | |
| Returns a QTI xml representation of the question. | |
| isComplete () | |
| Returns true, if a question is complete for use. | |
| questionTitleExists ($questionpool_id, $title) | |
| Returns TRUE if the question title exists in the database. | |
| setTitle ($title="") | |
| Sets the title string of the assQuestion object. | |
| setId ($id=-1) | |
| Sets the id of the assQuestion object. | |
| setTestId ($id=-1) | |
| Sets the test id of the assQuestion object. | |
| setComment ($comment="") | |
| Sets the comment string of the assQuestion object. | |
| setOutputType ($outputType=OUTPUT_HTML) | |
| Sets the output type. | |
| setShuffle ($shuffle=true) | |
| Sets the shuffle flag. | |
| setEstimatedWorkingTime ($hour=0, $min=0, $sec=0) | |
| Sets the estimated working time of a question from given hour, minute and second. | |
| setEstimatedWorkingTimeFromDurationString ($durationString) | |
| Sets the estimated working time of a question from a given datetime string. | |
| keyInArray ($searchkey, $array) | |
| returns TRUE if the key occurs in an array | |
| setAuthor ($author="") | |
| Sets the authors name of the assQuestion object. | |
| setOwner ($owner="") | |
| Sets the creator/owner ID of the assQuestion object. | |
| getTitle () | |
| Gets the title string of the assQuestion object. | |
| getId () | |
| Gets the id of the assQuestion object. | |
| getShuffle () | |
| Gets the shuffle flag. | |
| getTestId () | |
| Gets the test id of the assQuestion object. | |
| getComment () | |
| Gets the comment string of the assQuestion object. | |
| getOutputType () | |
| Gets the output type. | |
| supportsJavascriptOutput () | |
| Returns true if the question type supports JavaScript output. | |
| supportsNonJsOutput () | |
| requiresJsSwitch () | |
| getEstimatedWorkingTime () | |
| Gets the estimated working time of a question. | |
| getAuthor () | |
| Gets the authors name of the assQuestion object. | |
| getOwner () | |
| Gets the creator/owner ID of the assQuestion object. | |
| getObjId () | |
| Get the object id of the container object. | |
| setObjId ($obj_id=0) | |
| Set the object id of the container object. | |
| setExternalId ($external_id) | |
| getExternalId () | |
| _getMaximumPoints ($question_id) | |
| Returns the maximum points, a learner can reach answering the question. | |
| & | _getQuestionInfo ($question_id) |
| Returns question information from the database. | |
| getSuggestedSolutionOutput () | |
| & | _getSuggestedSolution ($question_id, $subquestion_index=0) |
| Returns a suggested solution for a given subquestion index. | |
| getSuggestedSolutions () | |
| Return the suggested solutions. | |
| _getReachedPoints ($active_id, $question_id, $pass=NULL) | |
| Returns the points, a learner has reached answering the question. | |
| getReachedPoints ($active_id, $pass=NULL) | |
| Returns the points, a learner has reached answering the question This is the fast way to get the points directly from the database. | |
| getMaximumPoints () | |
| Returns the maximum points, a learner can reach answering the question. | |
| getAdjustedReachedPoints ($active_id, $pass=NULL) | |
| returns the reached points ... | |
| calculateResultsFromSolution ($active_id, $pass=NULL, $obligationsEnabled=false) | |
| Calculates the question results from a previously saved question solution. | |
| persistWorkingState ($active_id, $pass=NULL, $obligationsEnabled=false) | |
| persists the working state for current testactive and testpass | |
| persistPreviewState (ilAssQuestionPreviewSession $previewSession) | |
| persists the preview state for current user and question | |
| saveWorkingData ($active_id, $pass=NULL) | |
| Saves the learners input of the question to the database. | |
| _updateTestResultCache ($active_id, ilAssQuestionProcessLocker $processLocker=null) | |
| Move this to a proper place. | |
| logAction ($logtext="", $active_id="", $question_id="") | |
| Logs an action into the Test&Assessment log. | |
| _logAction ($logtext="", $active_id="", $question_id="") | |
| Logs an action into the Test&Assessment log. | |
| moveUploadedMediaFile ($file, $name) | |
| Move an uploaded media file to an public accessible temp dir to present it. | |
| getSuggestedSolutionPath () | |
| Returns the path for a suggested solution. | |
| getJavaPath () | |
| Returns the image path for web accessable images of a question. | |
| getImagePath ($question_id=null, $object_id=null) | |
| Returns the image path for web accessable images of a question. | |
| buildImagePath ($questionId, $parentObjectId) | |
| getFlashPath () | |
| Returns the image path for web accessable flash files of a question. | |
| getJavaPathWeb () | |
| Returns the web image path for web accessable java applets of a question. | |
| getSuggestedSolutionPathWeb () | |
| Returns the web path for a suggested solution. | |
| getImagePathWeb () | |
| Returns the web image path for web accessable images of a question. | |
| getFlashPathWeb () | |
| Returns the web image path for web accessable flash applications of a question. | |
| & | getSolutionValues ($active_id, $pass=NULL) |
| Loads solutions of a given user from the database an returns it. | |
| isInUse ($question_id="") | |
| Checks whether the question is in use or not. | |
| isClone ($question_id="") | |
| Checks whether the question is a clone of another question or not. | |
| pcArrayShuffle ($array) | |
| Shuffles the values of a given array. | |
| getQuestionTypeFromDb ($question_id) | |
| get question type for question id | |
| getAdditionalTableName () | |
| Returns the name of the additional question data table in the database. | |
| getAnswerTableName () | |
| Returns the name of the answer table in the database. | |
| deleteAnswers ($question_id) | |
| Deletes datasets from answers tables. | |
| deleteAdditionalTableData ($question_id) | |
| Deletes datasets from the additional question table in the database. | |
| delete ($question_id) | |
| Deletes a question and all materials from the database. | |
| getTotalAnswers () | |
| get total number of answers | |
| _getTotalAnswers ($a_q_id) | |
| get number of answers for question id (static) note: do not use $this inside this method | |
| _getTitle ($a_q_id) | |
| Returns the title of a question. | |
| _getQuestionText ($a_q_id) | |
| Returns question text. | |
| copyXHTMLMediaObjectsOfQuestion ($a_q_id) | |
| syncXHTMLMediaObjectsOfQuestion () | |
| createPageObject () | |
| create page object of question | |
| copyPageOfQuestion ($a_q_id) | |
| getPageOfQuestion () | |
| _getQuestionType ($question_id) | |
| Returns the question type of a question with a given id. | |
| _getQuestionTitle ($question_id) | |
| Returns the question title of a question with a given id. | |
| setOriginalId ($original_id) | |
| getOriginalId () | |
| loadFromDb ($question_id) | |
| Loads the question from the database. | |
| createNewQuestion ($a_create_page=true) | |
| Creates a new question without an owner when a new question is created This assures that an ID is given to the question if a file upload or something else occurs. | |
| saveQuestionDataToDb ($original_id="") | |
| saveToDb ($original_id="") | |
| Saves the question to the database. | |
| setNewOriginalId ($newId) | |
| deleteSuggestedSolutions () | |
| Deletes all suggestes solutions in the database. | |
| getSuggestedSolution ($subquestion_index=0) | |
| Returns a suggested solution for a given subquestion index. | |
| getSuggestedSolutionTitle ($subquestion_index=0) | |
| Returns the title of a suggested solution at a given subquestion_index. | |
| setSuggestedSolution ($solution_id="", $subquestion_index=0, $is_import=false) | |
| Sets a suggested solution for the question. | |
| _resolveInternalLink ($internal_link) | |
| _resolveIntLinks ($question_id) | |
| _getInternalLinkHref ($target="") | |
| syncWithOriginal () | |
| createRandomSolution ($test_id, $user_id) | |
| _questionExists ($question_id) | |
| Returns true if the question already exists in the database. | |
| _questionExistsInPool ($question_id) | |
| Returns true if the question already exists in the database and is assigned to a question pool. | |
| getPoints () | |
| Returns the maximum available points for the question. | |
| setPoints ($a_points) | |
| Sets the maximum available points for the question. | |
| getSolutionMaxPass ($active_id) | |
| Returns the maximum pass a users question solution. | |
| _getSolutionMaxPass ($question_id, $active_id) | |
| Returns the maximum pass a users question solution. | |
| _isWriteable ($question_id, $user_id) | |
| Returns true if the question is writeable by a certain user. | |
| _isUsedInRandomTest ($question_id="") | |
| Checks whether the question is used in a random test or not. | |
| calculateReachedPoints ($active_id, $pass=NULL, $returndetails=FALSE) | |
| Returns the points, a learner has reached answering the question. | |
| calculateReachedPointsFromPreviewSession (ilAssQuestionPreviewSession $previewSession) | |
| isPreviewSolutionCorrect (ilAssQuestionPreviewSession $previewSession) | |
| adjustReachedPointsByScoringOptions ($points, $active_id, $pass=NULL) | |
| Adjust the given reached points by checks for all special scoring options in the test container. | |
| isHTML ($a_text) | |
| Checks if a given string contains HTML or not. | |
| prepareTextareaOutput ($txt_output, $prepare_for_latex_output=FALSE) | |
| Prepares a string for a text area output in tests. | |
| QTIMaterialToString ($a_material) | |
| Reads an QTI material tag an creates a text string. | |
| addQTIMaterial (&$a_xml_writer, $a_material, $close_material_tag=TRUE, $add_mobs=TRUE) | |
| Creates a QTI material tag from a plain text or xhtml text. | |
| createNewImageFileName ($image_filename, $unique=false) | |
| _setReachedPoints ($active_id, $question_id, $points, $maxpoints, $pass, $manualscoring, $obligationsEnabled) | |
| Sets the points, a learner has reached answering the question Additionally objective results are updated. | |
| getQuestion () | |
| Gets the question string of the question object. | |
| setQuestion ($question="") | |
| Sets the question string of the question object. | |
| getQuestionType () | |
| Returns the question type of the question. | |
| getQuestionTypeID () | |
| Returns the question type of the question. | |
| cleanupMediaObjectUsage () | |
| synchronises appearances of media objects in the question with media object usage table | |
| & | getInstances () |
| Gets all instances of the question. | |
| _needsManualScoring ($question_id) | |
| getActiveUserData ($active_id) | |
| Returns the user id and the test id for a given active id. | |
| setExportDetailsXLS (&$worksheet, $startrow, $active_id, $pass, &$format_title, &$format_bold) | |
| Creates an Excel worksheet for the detailed cumulated results of this question. | |
| __get ($value) | |
| Object getter. | |
| __set ($key, $value) | |
| Object setter. | |
| getNrOfTries () | |
| setNrOfTries ($a_nr_of_tries) | |
| setExportImagePath ($a_path) | |
| _questionExistsInTest ($question_id, $test_id) | |
| formatSAQuestion ($a_q) | |
| Format self assessment question. | |
| setPreventRteUsage ($a_val) | |
| Set prevent rte usage. | |
| getPreventRteUsage () | |
| Get prevent rte usage. | |
| setSelfAssessmentEditingMode ($a_selfassessmenteditingmode) | |
| Set Self-Assessment Editing Mode. | |
| getSelfAssessmentEditingMode () | |
| Get Self-Assessment Editing Mode. | |
| setDefaultNrOfTries ($a_defaultnroftries) | |
| Set Default Nr of Tries. | |
| getDefaultNrOfTries () | |
| Get Default Nr of Tries. | |
| isAnswered ($active_id, $pass=null) | |
| returns boolean wether the question is answered during test pass or not | |
| setObligationsToBeConsidered ($obligationsToBeConsidered=true) | |
| sets the flag wether obligations are to be considered or not | |
| areObligationsToBeConsidered () | |
| gets the flag wether obligations are to be considered or not | |
| isAutosaveable () | |
| getAdditionalContentEditingMode () | |
| getter for additional content editing mode for this question | |
| setAdditionalContentEditingMode ($additinalContentEditingMode) | |
| setter for additional content editing mode for this question | |
| isAdditionalContentEditingModePageObject () | |
| isser for additional "pageobject" content editing mode | |
| isValidAdditionalContentEditingMode ($additionalContentEditingMode) | |
| returns the fact wether the passed additional content mode is valid or not | |
| getValidAdditionalContentEditingModes () | |
| getter for valid additional content editing modes | |
| addQuestionChangeListener (ilQuestionChangeListener $listener) | |
| getQuestionChangeListeners () | |
| getHtmlUserSolutionPurifier () | |
| getHtmlQuestionContentPurifier () | |
| setLastChange ($lastChange) | |
| getLastChange () | |
| setStep ($step) | |
| getStep () | |
| toJSON () | |
| duplicate ($for_test=true, $title="", $author="", $owner="", $testObjId=null) | |
Static Public Member Functions | |
| static | _getSuggestedSolutionCount ($question_id) |
| Returns the number of suggested solutions associated with a question. | |
| static | _getSuggestedSolutionOutput ($question_id) |
| Returns the output of the suggested solution. | |
| static | _getTotalRightAnswers ($a_q_id) |
| get number of answers for question id (static) note: do not use $this inside this method | |
| static | _getOriginalId ($question_id) |
| Returns the original id of a question. | |
| static | originalQuestionExists ($questionId) |
| static | _instanciateQuestion ($question_id) |
| Creates an instance of a question with a given question id. | |
| static | _instantiateQuestion ($question_id) |
| static | _isWorkedThrough ($active_id, $question_id, $pass=NULL) |
| Returns true if the question was worked through in the given pass Worked through means that the user entered at least one value. | |
| static | _areAnswered ($a_user_id, $a_question_ids) |
| Checks if an array of question ids is answered by an user or not. | |
| static | _includeClass ($question_type, $gui=0) |
| Include the php class file for a given question type. | |
| static | getGuiClassNameByQuestionType ($questionType) |
| static | getObjectClassNameByQuestionType ($questionType) |
| static | getFeedbackClassNameByQuestionType ($questionType) |
| static | isCoreQuestionType ($questionType) |
| static | includeCoreClass ($questionType, $withGuiClass) |
| static | includePluginClass ($questionType, $withGuiClass) |
| static | _getQuestionTypeName ($type_tag) |
| Return the translation for a given question type tag. | |
| static & | _instanciateQuestionGUI ($question_id) |
| Creates an instance of a question gui with a given question id. | |
| static | instantiateQuestionGUI ($a_question_id) |
| Creates an instance of a question gui with a given question id. | |
| static | lookupParentObjId ($questionId) |
| ilDB $ilDB | |
| static | lookupOriginalParentObjId ($originalQuestionId) |
| returns the parent object id for given original question id (should be a qpl id, but theoretically it can be a tst id, too) | |
| static | isObligationPossible ($questionId) |
| returns boolean wether it is possible to set this question type as obligatory or not considering the current question configuration | |
| static | setResultGateway ($resultGateway) |
| static | getResultGateway () |
| static | sumTimesInISO8601FormatH_i_s_Extended ($time1, $time2) |
| static | convertISO8601FormatH_i_s_ExtendedToSeconds ($time) |
Data Fields | |
| const | ADDITIONAL_CONTENT_EDITING_MODE_DEFAULT = 'default' |
| constant for additional content editing mode "default" | |
| const | ADDITIONAL_CONTENT_EDITING_MODE_PAGE_OBJECT = 'pageobject' |
| constant for additional content editing mode "pageobject" | |
| $feedbackOBJ = null | |
| $prevent_rte_usage = false | |
| $selfassessmenteditingmode = false | |
| $defaultnroftries = 0 | |
| $questionActionCmd = 'handleQuestionAction' | |
Protected Member Functions | |
| reworkWorkingData ($active_id, $pass, $obligationsAnswered) | |
| Reworks the allready saved working data if neccessary. | |
| savePreviewData (ilAssQuestionPreviewSession $previewSession) | |
| deletePageOfQuestion ($question_id) | |
| Deletes the page object of a question with a given ID. | |
| onDuplicate ($originalParentId, $originalQuestionId, $duplicateParentId, $duplicateQuestionId) | |
| Will be called when a question is duplicated (inside a question pool or for insertion in a test) | |
| beforeSyncWithOriginal ($origQuestionId, $dupQuestionId, $origParentObjId, $dupParentObjId) | |
| afterSyncWithOriginal ($origQuestionId, $dupQuestionId, $origParentObjId, $dupParentObjId) | |
| onCopy ($sourceParentId, $sourceQuestionId, $targetParentId, $targetQuestionId) | |
| Will be called when a question is copied (into another question pool) | |
| duplicateSuggestedSolutionFiles ($parent_id, $question_id) | |
| Duplicates the files of a suggested solution if the question is duplicated. | |
| syncSuggestedSolutionFiles ($original_id) | |
| Syncs the files of a suggested solution if the question is synced. | |
| copySuggestedSolutionFiles ($source_questionpool_id, $source_question_id) | |
| getRTETextWithMediaObjects () | |
| Collects all text in the question which could contain media objects which were created with the Rich Text Editor. | |
| duplicateQuestionHints ($originalQuestionId, $duplicateQuestionId) | |
| buildQuestionDataQuery () | |
Static Protected Member Functions | |
| static | getNumExistingSolutionRecords ($activeId, $pass, $questionId) |
| returns the number of existing solution records for the given test active / pass and given question id | |
Protected Attributes | |
| $id | |
| $title | |
| $comment | |
| $owner | |
| $author | |
| $question | |
| $points | |
| $est_working_time | |
| $shuffle | |
| $test_id | |
| $obj_id | |
| $ilias | |
| $tpl | |
| $lng | |
| $db | |
| $outputType | |
| $suggested_solutions | |
| $original_id | |
| $page | |
| $external_id = '' | |
| $questionChangeListeners = array() | |
| $processLocker | |
| $step = null | |
| $lastChange | |
Private Member Functions | |
| deleteTaxonomyAssignments () | |
| notifyQuestionCreated () | |
| notifyQuestionEdited () | |
| notifyQuestionDeleted () | |
Private Attributes | |
| $nr_of_tries | |
| Number of tries. | |
| $arrData | |
| Associative array to store properties. | |
| $export_image_path | |
| (Web) Path to images | |
| $obligationsToBeConsidered = false | |
| $additinalContentEditingMode = null | |
Static Private Attributes | |
| static | $resultGateway = null |
Abstract basic class which is to be extended by the concrete assessment question type classes.
The assQuestion class defines and encapsulates basic/common methods and attributes as well as it provides abstract methods that are to be implemented by concrete question type classes.
Definition at line 20 of file class.assQuestion.php.
| assQuestion::__construct | ( | $title = "", |
|
$comment = "", |
|||
$author = "", |
|||
$owner = -1, |
|||
$question = "" |
|||
| ) |
assQuestion constructor
| string | $title | A title string to describe the question |
| string | $comment | A comment string to describe the question |
| string | $author | A string containing the name of the questions author |
| integer | $owner | A numerical ID to identify the owner/creator |
| string | $question | Question text public |
Reimplemented in assClozeTest, assTextQuestion, assTextSubset, assNumeric, assKprimChoice, assFileUpload, assErrorText, assFormulaQuestion, assFlashQuestion, and assOrderingHorizontal.
Definition at line 257 of file class.assQuestion.php.
References $author, $comment, $ilDB, $ilias, $lng, $owner, $question, $title, $tpl, OUTPUT_JAVASCRIPT, setEstimatedWorkingTime(), setExternalId(), and setQuestion().
Here is the call graph for this function:| assQuestion::__get | ( | $value | ) |
Object getter.
Reimplemented in assFormulaQuestion, assErrorText, assFileUpload, and assOrderingHorizontal.
Definition at line 3837 of file class.assQuestion.php.
References $ilias, $page, $tpl, getAuthor(), getComment(), getEstimatedWorkingTime(), getId(), getObjId(), getOriginalId(), getOutputType(), getOwner(), getPoints(), getQuestion(), getShuffle(), getSuggestedSolutions(), getTestId(), and getTitle().
Here is the call graph for this function:| assQuestion::__set | ( | $key, | |
| $value | |||
| ) |
Object setter.
Reimplemented in assErrorText, assFileUpload, and assOrderingHorizontal.
Definition at line 3908 of file class.assQuestion.php.
References setAuthor(), setComment(), setEstimatedWorkingTime(), setId(), setObjId(), setOriginalId(), setOutputType(), setOwner(), setPoints(), setQuestion(), setShuffle(), setTestId(), and setTitle().
Here is the call graph for this function:
|
static |
Checks if an array of question ids is answered by an user or not.
| int | user_id | |
| array | $question_ids | user id array |
Definition at line 3215 of file class.assQuestion.php.
Referenced by ilCourseObjectiveResult\getStatus().
Here is the caller graph for this function:| assQuestion::_getInternalLinkHref | ( | $target = "" | ) |
Definition at line 2767 of file class.assQuestion.php.
References $ilDB, and $target_id.
Referenced by getSuggestedSolutionOutput(), and assQuestionGUI\suggestedsolution().
Here is the caller graph for this function:| assQuestion::_getMaximumPoints | ( | $question_id | ) |
Returns the maximum points, a learner can reach answering the question.
| integer | $question_id | The database Id of the question |
Definition at line 733 of file class.assQuestion.php.
References $ilDB, $points, $result, and $row.
Referenced by _getTotalRightAnswers(), ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), ilTestScoringGUI\buildManScoringParticipantForm(), assFileUpload\handleSubmission(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), and ilTestScoringGUI\saveManScoringParticipantScreen().
Here is the caller graph for this function:
|
static |
Returns the original id of a question.
| integer | $question_id | The database id of the question |
Definition at line 2810 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by _logAction(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjTestGUI\copyAndLinkToQuestionpoolObject(), assOrderingHorizontal\copyObject(), assFileUpload\copyObject(), assNumeric\copyObject(), assTextQuestion\copyObject(), assImagemapQuestion\copyObject(), assFlashQuestion\copyObject(), assOrderingQuestion\copyObject(), assErrorText\copyObject(), assTextSubset\copyObject(), assMultipleChoice\copyObject(), assSingleChoice\copyObject(), assMatchingQuestion\copyObject(), assJavaApplet\copyObject(), assFormulaQuestion\copyObject(), assKprimChoice\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\duplicate(), assFileUpload\duplicate(), assNumeric\duplicate(), assTextQuestion\duplicate(), assImagemapQuestion\duplicate(), assFlashQuestion\duplicate(), assOrderingQuestion\duplicate(), assErrorText\duplicate(), assTextSubset\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), logAction(), and ilObjTest\logAction().
Here is the caller graph for this function:| & assQuestion::_getQuestionInfo | ( | $question_id | ) |
Returns question information from the database.
| integer | $question_id | The database Id of the question |
Definition at line 756 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by ilObjMediaObject\getParentObjectIdForUsage(), and ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter().
Here is the caller graph for this function:| assQuestion::_getQuestionText | ( | $a_q_id | ) |
Returns question text.
| int | $a_q_id | question id |
Definition at line 2036 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by ilLMQuestionListTableGUI\fillRow().
Here is the caller graph for this function:| assQuestion::_getQuestionTitle | ( | $question_id | ) |
Returns the question title of a question with a given id.
| integer | $question_id | The database id of the question |
Definition at line 2146 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by ilObjAssessmentFolderGUI\exportLogObject(), ilAssessmentFolderLogTableGUI\fillRow(), and ilObjectivesAlignmentTableGUI\fillRow().
Here is the caller graph for this function:| assQuestion::_getQuestionType | ( | $question_id | ) |
Returns the question type of a question with a given id.
| integer | $question_id | The database id of the question |
Definition at line 2119 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by _instantiateQuestion(), _needsManualScoring(), ilPageObjectGUI\executeCommand(), ilObjectivesAlignmentTableGUI\fillRow(), instantiateQuestionGUI(), ilObjTest\isQuestionObligationPossible(), and ilPCQuestionGUI\setTabs().
Here is the caller graph for this function:
|
static |
Return the translation for a given question type tag.
| string | $type_tag | The type tag of the question type public |
Definition at line 3738 of file class.assQuestion.php.
References $lng, ilPlugin\getPluginObject(), and IL_COMP_MODULE.
Referenced by ilObjQuestionPoolGUI\addLocatorItems(), ilObjTestGUI\createRandomSelectionObject(), ilCopySelfAssQuestionTableGUI\fillRow(), ilTestQuestionBrowserTableGUI\fillRow(), ilTestQuestionsTableGUI\fillRow(), ilQuestionBrowserTableGUI\fillRow(), assQuestionGUI\outQuestionType(), ilObjTestGUI\removeQuestionsForm(), and ilObjQuestionPoolGUI\setTitleAndDescription().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_getReachedPoints | ( | $active_id, | |
| $question_id, | |||
$pass = NULL |
|||
| ) |
Returns the points, a learner has reached answering the question.
| integer | $user_id | The database ID of the learner |
| integer | $test_id | The database Id of the test containing the question |
| integer | $question_id | The database Id of the question |
Definition at line 877 of file class.assQuestion.php.
References $ilDB, $pass, $points, $result, $row, and _getSolutionMaxPass().
Referenced by ilTestScoringGUI\buildManScoringParticipantForm(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), getReachedPoints(), and ilTestPlayerDynamicQuestionSetGUI\isQuestionAnsweredCorrect().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_getSolutionMaxPass | ( | $question_id, | |
| $active_id | |||
| ) |
Returns the maximum pass a users question solution.
| return | integer The maximum pass of the users solution public |
Definition at line 3035 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by _getReachedPoints(), _isWorkedThrough(), _setReachedPoints(), getSolutionMaxPass(), and ilObjTest\getTextAnswer().
Here is the caller graph for this function:| & assQuestion::_getSuggestedSolution | ( | $question_id, | |
$subquestion_index = 0 |
|||
| ) |
Returns a suggested solution for a given subquestion index.
| integer | $question_id | The database Id of the question |
| integer | $subquestion_index | The index of a subquestion (i.e. a close test gap). Usually 0 |
Definition at line 838 of file class.assQuestion.php.
|
static |
Returns the number of suggested solutions associated with a question.
| integer | $question_id | The database Id of the question |
Definition at line 777 of file class.assQuestion.php.
|
static |
Returns the output of the suggested solution.
| integer | $question_id | The database Id of the question |
Definition at line 794 of file class.assQuestion.php.
References $question, and _instanciateQuestion().
Referenced by ilObjTest\getTestResult().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_getTitle | ( | $a_q_id | ) |
Returns the title of a question.
| int | $a_q_id | question id |
Definition at line 2013 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by ilSCORM2004ScoGUI\sahs_questions(), and ilLMMailNotification\send().
Here is the caller graph for this function:| assQuestion::_getTotalAnswers | ( | $a_q_id | ) |
get number of answers for question id (static) note: do not use $this inside this method
| int | $a_q_id | question id |
Definition at line 1935 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by getTotalAnswers().
Here is the caller graph for this function:
|
static |
get number of answers for question id (static) note: do not use $this inside this method
| int | $a_q_id | question id |
Definition at line 1966 of file class.assQuestion.php.
References $ilDB, $result, and _getMaximumPoints().
Referenced by ilQuestionCumulatedStatisticsTableGUI\initData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Include the php class file for a given question type.
| string | $question_type | The type tag of the question type |
Definition at line 3650 of file class.assQuestion.php.
References includeCoreClass(), and includePluginClass().
Referenced by assQuestionGUI\_getQuestionGUI(), _instantiateQuestion(), ilObjQuestionPool\createQuestion(), ilObjTest\createQuestionGUI(), ilQTIParser\handlerParseEndTag(), instantiateQuestionGUI(), and ilObjTest\isQuestionObligationPossible().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Creates an instance of a question with a given question id.
| integer | $question_id | The question id |
Definition at line 2963 of file class.assQuestion.php.
References _instantiateQuestion().
Referenced by _getSuggestedSolutionOutput(), assKprimChoice\beforeSyncWithOriginal(), ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), ilPCQuestion\copyPoolQuestionIntoPage(), ilObjQuestionPool\deleteQuestion(), ilTestEvaluationGUI\exportFileUploadsForAllParticipants(), ilSCORM2004Asset\exportPDFPrepareXmlNFiles(), ilTestExport\exportToExcel(), ilTestRandomQuestionSetStagingPoolBuilder\removeStagedQuestions(), ilSoapTestAdministration\saveQuestion(), ilSoapTestAdministration\saveQuestionSolution(), ilTestEvaluationGUI\singleResults(), and ilTestRandomQuestionSetStagingPoolBuilder\stageQuestionsFromSourcePool().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Creates an instance of a question gui with a given question id.
| integer | $question_id | The question id |
Definition at line 3770 of file class.assQuestion.php.
References instantiateQuestionGUI().
Referenced by ilObjTestGUI\copyQuestionObject(), ilObjQuestionPool\createQuestion(), and ilQuestionPoolPrintViewTableGUI\fillRow().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2968 of file class.assQuestion.php.
References $ilCtrl, $ilDB, $lng, $question, _getQuestionType(), _includeClass(), getFeedbackClassNameByQuestionType(), and getObjectClassNameByQuestionType().
Referenced by _instanciateQuestion(), ilSCORM2004Asset\exportXMLPageObjects(), ilPageObject\newQuestionCopies(), and ilAssIncompleteQuestionPurger\purgeQuestionIds().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_isUsedInRandomTest | ( | $question_id = "" | ) |
Checks whether the question is used in a random test or not.
Definition at line 3101 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by ilObjQuestionPool\getDeleteableQuestionDetails().
Here is the caller graph for this function:
|
static |
Returns true if the question was worked through in the given pass Worked through means that the user entered at least one value.
| integer | $user_id | The database ID of the learner |
| integer | $test_id | The database Id of the test containing the question |
| integer | $question_id | The database Id of the question |
Definition at line 3184 of file class.assQuestion.php.
References $ilDB, $points, $result, and _getSolutionMaxPass().
Referenced by ilObjTest\getAnsweredQuestionCount().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_isWriteable | ( | $question_id, | |
| $user_id | |||
| ) |
Returns true if the question is writeable by a certain user.
| integer | $question_id | The database id of the question |
| integer | $user_id | The database id of the user |
Definition at line 3069 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by ilAssQuestionFeedbackEditingGUI\isSyncAfterSaveRequired(), ilAssQuestionHintsGUI\performDeleteCmd(), assQuestionGUI\save(), assQuestionGUI\saveEdit(), ilAssQuestionHintGUI\saveFormCmd(), ilAssQuestionHintsGUI\saveListOrderCmd(), assQuestionGUI\saveReturn(), assFormulaQuestionGUI\saveReturnFQ(), and assQuestionGUI\suggestedsolution().
Here is the caller graph for this function:| assQuestion::_logAction | ( | $logtext = "", |
|
$active_id = "", |
|||
$question_id = "" |
|||
| ) |
Logs an action into the Test&Assessment log.
| string | $logtext | The log text |
| integer | $question_id | If given, saves the question id to the database public |
Definition at line 1393 of file class.assQuestion.php.
References $ilUser, $original_id, ilObjAssessmentFolder\_addLog(), ilObjTest\_getObjectIDFromActiveID(), and _getOriginalId().
Referenced by _setReachedPoints().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_needsManualScoring | ( | $question_id | ) |
Definition at line 3603 of file class.assQuestion.php.
References ilObjAssessmentFolder\_getManualScoringTypes(), and _getQuestionType().
Referenced by ilTestExpressPageObjectGUI\insertQuestions(), and ilObjTestGUI\insertQuestionsObject().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_questionExists | ( | $question_id | ) |
Returns true if the question already exists in the database.
| integer | $question_id | The database id of the question |
Definition at line 2903 of file class.assQuestion.php.
| assQuestion::_questionExistsInPool | ( | $question_id | ) |
Returns true if the question already exists in the database and is assigned to a question pool.
| integer | $question_id | The database id of the question |
Definition at line 2933 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by assQuestionGUI\outQuestionType().
Here is the caller graph for this function:| assQuestion::_questionExistsInTest | ( | $question_id, | |
| $test_id | |||
| ) |
Definition at line 3978 of file class.assQuestion.php.
References $ilDB, $result, and $test_id.
Referenced by assQuestionGUI\save(), assQuestionGUI\saveReturn(), and assFormulaQuestionGUI\saveReturnFQ().
Here is the caller graph for this function:| assQuestion::_resolveInternalLink | ( | $internal_link | ) |
Definition at line 2679 of file class.assQuestion.php.
References ilInternalLink\_getIdForImportId(), and ilLMObject\_getIdForImportId().
Referenced by _resolveIntLinks(), and setSuggestedSolution().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_resolveIntLinks | ( | $question_id | ) |
Definition at line 2716 of file class.assQuestion.php.
References $ilDB, $result, ilInternalLink\_deleteAllLinksOfSource(), _resolveInternalLink(), and ilInternalLink\_saveLink().
Referenced by ilContObjParser\processPagesToParse().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_setReachedPoints | ( | $active_id, | |
| $question_id, | |||
| $points, | |||
| $maxpoints, | |||
| $pass, | |||
| $manualscoring, | |||
| $obligationsEnabled | |||
| ) |
Sets the points, a learner has reached answering the question Additionally objective results are updated.
| integer | $user_id | The database ID of the learner |
| integer | $test_id | The database Id of the test containing the question |
| integer | $points | The points the user has reached answering the question |
Definition at line 3366 of file class.assQuestion.php.
References $ilDB, $ilUser, $lng, $points, $result, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilObjTestAccess\_getParticipantData(), _getSolutionMaxPass(), ilObjTest\_getUserIdFromActiveId(), _logAction(), and ilCourseObjectiveResult\_updateObjectiveResult().
Referenced by assFileUpload\handleSubmission(), and ilTestScoringGUI\saveManScoringParticipantScreen().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::_updateTestResultCache | ( | $active_id, | |
| ilAssQuestionProcessLocker | $processLocker = null |
||
| ) |
Move this to a proper place.
Definition at line 1138 of file class.assQuestion.php.
References $ilDB, $pass, $processLocker, $query, $result, $row, and ilObjTest\_getResultPass().
Referenced by ilObjTestAccess\_getPassedUsers(), ilObjTestAccess\_isPassed(), ilObjTest\getResultsForActiveId(), ilTestScoring\recalculateSolutions(), and ilObjTestAccess\updateTestResultCache().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::addQTIMaterial | ( | & | $a_xml_writer, |
| $a_material, | |||
$close_material_tag = TRUE, |
|||
$add_mobs = TRUE |
|||
| ) |
Creates a QTI material tag from a plain text or xhtml text.
| object | $a_xml_writer | Reference to the ILIAS XML writer |
| string | $a_material | plain text or html text containing the material |
Definition at line 3300 of file class.assQuestion.php.
References $mobs, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilRTE\_replaceMediaObjectImageSrc(), getId(), and isHTML().
Here is the call graph for this function:| assQuestion::addQuestionChangeListener | ( | ilQuestionChangeListener | $listener | ) |
| ilQuestionChangeListener | $listener |
Definition at line 4310 of file class.assQuestion.php.
Referenced by ilObjQuestionPool\addQuestionChangeListeners().
Here is the caller graph for this function:
|
final |
Adjust the given reached points by checks for all special scoring options in the test container.
public
| integer | $points | |
| integer | $active_id | |
| integer | $pass |
Definition at line 3154 of file class.assQuestion.php.
References $points, ilObjTest\_getCountSystem(), ilObjTest\_getScoreCutting(), and getMaximumPoints().
Referenced by calculateResultsFromSolution(), and getAdjustedReachedPoints().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented in assKprimChoice.
Definition at line 2396 of file class.assQuestion.php.
Referenced by syncWithOriginal().
Here is the caller graph for this function:| assQuestion::areObligationsToBeConsidered | ( | ) |
gets the flag wether obligations are to be considered or not
Definition at line 4191 of file class.assQuestion.php.
References $obligationsToBeConsidered.
|
protected |
Reimplemented in assKprimChoice.
Definition at line 2391 of file class.assQuestion.php.
Referenced by syncWithOriginal().
Here is the caller graph for this function:| assQuestion::buildImagePath | ( | $questionId, | |
| $parentObjectId | |||
| ) |
Definition at line 1472 of file class.assQuestion.php.
Referenced by assKprimChoice\cloneAnswerImages(), and getImagePath().
Here is the caller graph for this function:
|
protected |
Definition at line 4365 of file class.assQuestion.php.
Referenced by assKprimChoice\loadFromDb().
Here is the caller graph for this function:
|
abstract |
Returns the points, a learner has reached answering the question.
The points are calculated from the given answers.
public
| integer | $active_id | |
| integer | $pass | |
| boolean | $returndetails | (deprecated !!) |
Reimplemented in assClozeTest, assFormulaQuestion, assMatchingQuestion, assImagemapQuestion, assJavaApplet, assOrderingQuestion, assTextQuestion, assMultipleChoice, assSingleChoice, assTextSubset, assKprimChoice, assFlashQuestion, assErrorText, assFileUpload, and assOrderingHorizontal.
Referenced by calculateResultsFromSolution(), and getAdjustedReachedPoints().
Here is the caller graph for this function:| assQuestion::calculateReachedPointsFromPreviewSession | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Reimplemented in assClozeTest, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assOrderingQuestion, assSingleChoice, assFlashQuestion, assErrorText, and assNumeric.
Definition at line 3126 of file class.assQuestion.php.
References ilAssQuestionPreviewSession\getParticipantsSolution().
Referenced by isPreviewSolutionCorrect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
final |
Calculates the question results from a previously saved question solution.
| integer | $active_id | Active id of the user |
| integer | $pass | Test pass |
Definition at line 968 of file class.assQuestion.php.
References $ilDB, $ilUser, $pass, $query, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilObjTest\_getPass(), ilCourseObjectiveResult\_updateObjectiveResult(), adjustReachedPointsByScoringOptions(), calculateReachedPoints(), getId(), getProcessLocker(), getStep(), isAnswered(), ilObjTest\isQuestionObligatory(), and logAction().
Referenced by persistWorkingState().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::cleanupMediaObjectUsage | ( | ) |
synchronises appearances of media objects in the question with media object usage table
Definition at line 3548 of file class.assQuestion.php.
References ilRTE\_cleanupMediaObjectUsage(), getId(), and getRTETextWithMediaObjects().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| $time |
Definition at line 4531 of file class.assQuestion.php.
Referenced by sumTimesInISO8601FormatH_i_s_Extended().
Here is the caller graph for this function:| assQuestion::copyPageOfQuestion | ( | $a_q_id | ) |
Definition at line 2092 of file class.assQuestion.php.
References $page.
Referenced by syncWithOriginal().
Here is the caller graph for this function:
|
protected |
Definition at line 2566 of file class.assQuestion.php.
References $filename, $ilLog, getSuggestedSolutionPath(), and ilUtil\makeDirParents().
Referenced by onCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::copyXHTMLMediaObjectsOfQuestion | ( | $a_q_id | ) |
Definition at line 2055 of file class.assQuestion.php.
References $mobs, ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_saveUsage(), and getId().
Here is the call graph for this function:| assQuestion::createNewImageFileName | ( | $image_filename, | |
$unique = false |
|||
| ) |
Definition at line 3337 of file class.assQuestion.php.
Referenced by assKprimChoice\handleFileUpload().
Here is the caller graph for this function:| assQuestion::createNewQuestion | ( | $a_create_page = true | ) |
Creates a new question without an owner when a new question is created This assures that an ID is given to the question if a file upload or something else occurs.
Definition at line 2225 of file class.assQuestion.php.
References $_GET, $_POST, $ilDB, $ilUser, $obj_id, ilObject\_lookupObjId(), createPageObject(), getAdditionalContentEditingMode(), getAuthor(), getDefaultNrOfTries(), getEstimatedWorkingTime(), getExternalId(), getId(), getObjId(), getQuestionTypeID(), notifyQuestionCreated(), and setId().
Here is the call graph for this function:| assQuestion::createPageObject | ( | ) |
create page object of question
Definition at line 2078 of file class.assQuestion.php.
References getId(), and getObjId().
Referenced by createNewQuestion(), saveQuestionDataToDb(), and syncWithOriginal().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::createRandomSolution | ( | $test_id, | |
| $user_id | |||
| ) |
Reimplemented in assSingleChoice, and assTextQuestion.
Definition at line 2892 of file class.assQuestion.php.
| assQuestion::delete | ( | $question_id | ) |
Deletes a question and all materials from the database.
| integer | $question_id | The database id of the question private |
Definition at line 1768 of file class.assQuestion.php.
References $ilDB, $ilLog, $mobs, $obj_id, $result, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilObjQuestionPool\_updateQuestionCount(), ilUtil\delDir(), deleteAdditionalTableData(), deleteAnswers(), ilAssQuestionHintList\deleteHintsByQuestionIds(), deletePageOfQuestion(), ilAssQuestionHintTracking\deleteRequestsByQuestionIds(), deleteTaxonomyAssignments(), getObjId(), isAdditionalContentEditingModePageObject(), and notifyQuestionDeleted().
Here is the call graph for this function:| assQuestion::deleteAdditionalTableData | ( | $question_id | ) |
Deletes datasets from the additional question table in the database.
| integer | $question_id | The question id which should be deleted in the additional question table public |
Definition at line 1725 of file class.assQuestion.php.
References $ilDB, and getAdditionalTableName().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::deleteAnswers | ( | $question_id | ) |
Deletes datasets from answers tables.
| integer | $question_id | The question id which should be deleted in the answers table public |
Reimplemented in assFormulaQuestion, assFileUpload, assFlashQuestion, and assOrderingHorizontal.
Definition at line 1697 of file class.assQuestion.php.
References $ilDB, and getAnswerTableName().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Deletes the page object of a question with a given ID.
| integer | $question_id | The database id of the question protected |
Definition at line 1754 of file class.assQuestion.php.
References $page.
Referenced by delete(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::deleteSuggestedSolutions | ( | ) |
Deletes all suggestes solutions in the database.
Definition at line 2419 of file class.assQuestion.php.
References $ilDB, ilInternalLink\_deleteAllLinksOfSource(), ilUtil\delDir(), getId(), and getSuggestedSolutionPath().
Here is the call graph for this function:
|
private |
Definition at line 1908 of file class.assQuestion.php.
References getId(), getObjId(), and ilObjTaxonomy\getUsageOfObject().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
|
protected |
Definition at line 4119 of file class.assQuestion.php.
References ilAssQuestionHintList\duplicateListForQuestion(), getId(), and isAdditionalContentEditingModePageObject().
Referenced by onCopy(), and onDuplicate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Duplicates the files of a suggested solution if the question is duplicated.
Definition at line 2504 of file class.assQuestion.php.
References $filename, $ilLog, getSuggestedSolutionPath(), and ilUtil\makeDirParents().
Referenced by onDuplicate().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::formatSAQuestion | ( | $a_q | ) |
Format self assessment question.
| @return |
Definition at line 4007 of file class.assQuestion.php.
References ilRTE\_replaceMediaObjectImageSrc(), and ilUtil\insertLatexImages().
Referenced by assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assErrorText\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::fromXML | ( | & | $item, |
| & | $questionpool_id, | ||
| & | $tst_id, | ||
| & | $tst_object, | ||
| & | $question_counter, | ||
| & | $import_mapping | ||
| ) |
Receives parameters from a QTI parser and creates a valid ILIAS question object.
| object | $item | The QTI item object |
| integer | $questionpool_id | The id of the parent questionpool |
| integer | $tst_id | The id of the parent test if the question is part of a test |
| object | $tst_object | A reference to the parent test object |
| integer | $question_counter | A reference to a question counter to count the questions of an imported question pool |
| array | $import_mapping | An array containing references to included ILIAS objects public |
Reimplemented in assFileUpload, assFlashQuestion, assErrorText, and assOrderingHorizontal.
Definition at line 329 of file class.assQuestion.php.
References getQuestionType().
Here is the call graph for this function:| assQuestion::getActiveUserData | ( | $active_id | ) |
Returns the user id and the test id for a given active id.
| integer | $active_id | Active id for a test/user |
Definition at line 3625 of file class.assQuestion.php.
| assQuestion::getAdditionalContentEditingMode | ( | ) |
getter for additional content editing mode for this question
public
Definition at line 4243 of file class.assQuestion.php.
References $additinalContentEditingMode.
Referenced by createNewQuestion(), isAdditionalContentEditingModePageObject(), and saveQuestionDataToDb().
Here is the caller graph for this function:| assQuestion::getAdditionalTableName | ( | ) |
Returns the name of the additional question data table in the database.
Reimplemented in assClozeTest, assMatchingQuestion, assFormulaQuestion, assOrderingQuestion, assJavaApplet, assImagemapQuestion, assTextQuestion, assFileUpload, assSingleChoice, assMultipleChoice, assTextSubset, assNumeric, assFlashQuestion, assErrorText, assOrderingHorizontal, and assKprimChoice.
Definition at line 1675 of file class.assQuestion.php.
Referenced by deleteAdditionalTableData().
Here is the caller graph for this function:
|
final |
returns the reached points ...
| integer | $active_id | |
| integer | $pass |
Definition at line 934 of file class.assQuestion.php.
References $pass, ilObjTest\_getPass(), adjustReachedPointsByScoringOptions(), calculateReachedPoints(), and getId().
Here is the call graph for this function:| assQuestion::getAnswerTableName | ( | ) |
Returns the name of the answer table in the database.
Reimplemented in assClozeTest, assMatchingQuestion, assFormulaQuestion, assOrderingQuestion, assTextQuestion, assImagemapQuestion, assFileUpload, assSingleChoice, assMultipleChoice, assTextSubset, assFlashQuestion, assErrorText, assOrderingHorizontal, and assKprimChoice.
Definition at line 1686 of file class.assQuestion.php.
Referenced by deleteAnswers().
Here is the caller graph for this function:| assQuestion::getAuthor | ( | ) |
Gets the authors name of the assQuestion object.
Definition at line 656 of file class.assQuestion.php.
References $author.
Referenced by __get(), createNewQuestion(), assClozeTest\isComplete(), and saveQuestionDataToDb().
Here is the caller graph for this function:| assQuestion::getComment | ( | ) |
Gets the comment string of the assQuestion object.
Definition at line 595 of file class.assQuestion.php.
References $comment.
Referenced by __get(), and saveQuestionDataToDb().
Here is the caller graph for this function:| assQuestion::getDefaultNrOfTries | ( | ) |
Get Default Nr of Tries.
Definition at line 4080 of file class.assQuestion.php.
References $defaultnroftries.
Referenced by createNewQuestion().
Here is the caller graph for this function:| assQuestion::getEstimatedWorkingTime | ( | ) |
Gets the estimated working time of a question.
Definition at line 640 of file class.assQuestion.php.
References $est_working_time.
Referenced by __get(), createNewQuestion(), and saveQuestionDataToDb().
Here is the caller graph for this function:| assQuestion::getExternalId | ( | ) |
Definition at line 708 of file class.assQuestion.php.
References $external_id, and getId().
Referenced by createNewQuestion(), and saveQuestionDataToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 3672 of file class.assQuestion.php.
Referenced by assQuestionGUI\_getQuestionGUI(), _instantiateQuestion(), ilObjTest\createQuestionGUI(), includeCoreClass(), and instantiateQuestionGUI().
Here is the caller graph for this function:| assQuestion::getFlashPath | ( | ) |
Returns the image path for web accessable flash files of a question.
The image path is under the CLIENT_WEB_DIR in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/flash
public
Definition at line 1483 of file class.assQuestion.php.
Referenced by assFlashQuestion\copyApplet(), assFlashQuestion\deleteApplet(), assFlashQuestion\duplicateApplet(), assFlashQuestion\moveUploadedFile(), and assFlashQuestion\saveAdditionalQuestionDataToDb().
Here is the caller graph for this function:| assQuestion::getFlashPathWeb | ( | ) |
Returns the web image path for web accessable flash applications of a question.
The image path is under the web accessable data dir in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/flash
public
Definition at line 1539 of file class.assQuestion.php.
References ILIAS_ABSOLUTE_PATH, and ilUtil\removeTrailingPathSeparators().
Here is the call graph for this function:
|
static |
Definition at line 3662 of file class.assQuestion.php.
Referenced by assQuestionGUI\_getQuestionGUI(), ilObjTest\createQuestionGUI(), includeCoreClass(), includePluginClass(), instantiateQuestionGUI(), and isCoreQuestionType().
Here is the caller graph for this function:| assQuestion::getHtmlQuestionContentPurifier | ( | ) |
Definition at line 4359 of file class.assQuestion.php.
References ilHtmlPurifierFactory\_getInstanceByType().
Here is the call graph for this function:| assQuestion::getHtmlUserSolutionPurifier | ( | ) |
Definition at line 4350 of file class.assQuestion.php.
References ilHtmlPurifierFactory\_getInstanceByType().
Referenced by assTextSubset\getSolutionSubmit().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getId | ( | ) |
Gets the id of the assQuestion object.
Definition at line 559 of file class.assQuestion.php.
References $id.
Referenced by ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilAssQuestionHintsOrderingClipboard\__construct(), __get(), addQTIMaterial(), assClozeTest\calculateCombinationResult(), assFlashQuestion\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assJavaApplet\calculateReachedPoints(), calculateResultsFromSolution(), cleanupMediaObjectUsage(), assErrorText\copyObject(), assClozeTest\copyObject(), copyXHTMLMediaObjectsOfQuestion(), createNewQuestion(), createPageObject(), deleteSuggestedSolutions(), deleteTaxonomyAssignments(), ilDynamicTestQuestionChangeListener\deleteTestsParticipantsQuestionData(), assOrderingHorizontal\duplicate(), assFileUpload\duplicate(), assNumeric\duplicate(), assImagemapQuestion\duplicate(), assTextQuestion\duplicate(), assFlashQuestion\duplicate(), assOrderingQuestion\duplicate(), assErrorText\duplicate(), assTextSubset\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), assTextQuestion\duplicateAnswers(), duplicateQuestionHints(), assMatchingQuestion\fetchSubmittedMatchingsFromPost(), getAdjustedReachedPoints(), getExternalId(), assFileUpload\getFileUploadPath(), assFileUpload\getFileUploadPathWeb(), getInstances(), assClozeTest\getMaximumPoints(), assOrderingQuestion\getOldLeveledOrdering(), assJavaApplet\getReachedInformation(), getReachedPoints(), assImagemapQuestion\getRTETextWithMediaObjects(), assMultipleChoice\getRTETextWithMediaObjects(), assSingleChoice\getRTETextWithMediaObjects(), getRTETextWithMediaObjects(), getSolutionMaxPass(), getSolutionValues(), assFileUpload\getUploadedFiles(), assFileUpload\handleSubmission(), assFileUpload\hasFileUploads(), assKprimChoice\isAnswered(), assTextQuestion\isAnswered(), assMultipleChoice\isAnswered(), assFileUpload\isAnswered(), assSingleChoice\isAnswered(), isInUse(), assTextQuestion\loadFromDb(), loadFromDb(), assFileUpload\saveAdditionalQuestionDataToDb(), assFlashQuestion\saveAdditionalQuestionDataToDb(), assErrorText\saveAdditionalQuestionDataToDb(), assImagemapQuestion\saveAdditionalQuestionDataToDb(), assMatchingQuestion\saveAdditionalQuestionDataToDb(), assJavaApplet\saveAdditionalQuestionDataToDb(), assKprimChoice\saveAdditionalQuestionDataToDb(), assClozeTest\saveAdditionalQuestionDataToDb(), assOrderingHorizontal\saveAdditionalQuestionDataToDb(), assErrorText\saveAnswerSpecificDataToDb(), assImagemapQuestion\saveAnswerSpecificDataToDb(), assMatchingQuestion\saveAnswerSpecificDataToDb(), assClozeTest\saveAnswerSpecificDataToDb(), assKprimChoice\saveAnswerSpecificDataToDb(), assClozeTest\saveClozeNumericGapRecordToDb(), assClozeTest\saveClozeSelectGapRecordToDb(), assClozeTest\saveClozeTextGapRecordToDb(), assErrorText\savePreviewData(), assSingleChoice\savePreviewData(), saveQuestionDataToDb(), assMultipleChoice\saveToDb(), assFormulaQuestion\saveToDb(), saveToDb(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assTextSubset\saveWorkingData(), assFileUpload\saveWorkingData(), assTextQuestion\saveWorkingData(), assSingleChoice\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assClozeTest\saveWorkingData(), assFormulaQuestion\setId(), setNewOriginalId(), assTextQuestion\setReachedPoints(), assFormulaQuestion\substituteVariables(), syncWithOriginal(), syncXHTMLMediaObjectsOfQuestion(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assErrorText\toJSON(), assMatchingQuestion\toJSON(), assClozeTest\toJSON(), and ilLOTestQuestionAdapter\updateQuestionResult().
Here is the caller graph for this function:| assQuestion::getImagePath | ( | $question_id = null, |
|
$object_id = null |
|||
| ) |
Returns the image path for web accessable images of a question.
The image path is under the CLIENT_WEB_DIR in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/images
public
Definition at line 1457 of file class.assQuestion.php.
References $id, $obj_id, and buildImagePath().
Referenced by assOrderingQuestion\cleanImagefiles(), assImagemapQuestion\copyImage(), assOrderingQuestion\copyImages(), assMatchingQuestion\copyImages(), assMultipleChoice\copyImages(), assSingleChoice\copyImages(), assErrorText\createErrorTextOutput(), assMultipleChoice\deleteImage(), assSingleChoice\deleteImage(), assImagemapQuestion\deleteImage(), assOrderingQuestion\deleteImagefile(), assMatchingQuestion\deleteImagefile(), assImagemapQuestion\duplicateImage(), assOrderingQuestion\duplicateImages(), assMatchingQuestion\duplicateImages(), assMultipleChoice\duplicateImages(), assSingleChoice\duplicateImages(), assKprimChoice\handleFileUpload(), assKprimChoice\loadAnswerData(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMultipleChoice\rebuildThumbnails(), assSingleChoice\rebuildThumbnails(), assOrderingQuestion\rebuildThumbnails(), assMatchingQuestion\rebuildThumbnails(), assMatchingQuestion\setExportDetailsXLS(), assOrderingQuestion\setImageFile(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assMultipleChoice\syncImages(), and assSingleChoice\syncImages().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getImagePathWeb | ( | ) |
Returns the web image path for web accessable images of a question.
The image path is under the web accessable data dir in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/images
public
Definition at line 1519 of file class.assQuestion.php.
References $export_image_path, ILIAS_ABSOLUTE_PATH, and ilUtil\removeTrailingPathSeparators().
Referenced by assKprimChoice\loadAnswerData(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), and assOrderingQuestion\toJSON().
Here is the call graph for this function:
Here is the caller graph for this function:| & assQuestion::getInstances | ( | ) |
Gets all instances of the question.
Definition at line 3560 of file class.assQuestion.php.
References $ilDB, $result, ilObject\_getAllReferences(), ilObjTest\_lookupAuthor(), ilObject\_lookupTitle(), and getId().
Here is the call graph for this function:| assQuestion::getJavaPath | ( | ) |
Returns the image path for web accessable images of a question.
The image path is under the CLIENT_WEB_DIR in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/images
public
Definition at line 1447 of file class.assQuestion.php.
Referenced by assJavaApplet\copyApplet(), assJavaApplet\deleteJavaAppletFilename(), assJavaApplet\duplicateApplet(), and assJavaApplet\setJavaAppletFilename().
Here is the caller graph for this function:| assQuestion::getJavaPathWeb | ( | ) |
Returns the web image path for web accessable java applets of a question.
The image path is under the web accessable data dir in assessment/REFERENCE_ID_OF_QUESTION_POOL/ID_OF_QUESTION/java
public
Definition at line 1494 of file class.assQuestion.php.
References ILIAS_ABSOLUTE_PATH, and ilUtil\removeTrailingPathSeparators().
Here is the call graph for this function:| assQuestion::getLastChange | ( | ) |
Reimplemented in assMultipleChoice.
Definition at line 4382 of file class.assQuestion.php.
References $lastChange.
| assQuestion::getMaximumPoints | ( | ) |
Returns the maximum points, a learner can reach answering the question.
public
Reimplemented in assMatchingQuestion, assFormulaQuestion, assClozeTest, assOrderingQuestion, assImagemapQuestion, assSingleChoice, assMultipleChoice, assTextSubset, assFlashQuestion, assTextQuestion, assErrorText, assNumeric, assFileUpload, and assOrderingHorizontal.
Definition at line 918 of file class.assQuestion.php.
References $points.
Referenced by adjustReachedPointsByScoringOptions(), assJavaApplet\getUserQuestionResult(), assKprimChoice\isComplete(), isPreviewSolutionCorrect(), and saveQuestionDataToDb().
Here is the caller graph for this function:| assQuestion::getNrOfTries | ( | ) |
Definition at line 3963 of file class.assQuestion.php.
References $nr_of_tries.
Referenced by saveQuestionDataToDb(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assErrorText\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
Here is the caller graph for this function:
|
staticprotected |
returns the number of existing solution records for the given test active / pass and given question id
protected ilDB $ilDB
| integer | $activeId | |
| integer | $pass | |
| integer | $questionId |
Definition at line 4213 of file class.assQuestion.php.
References $ilDB, $query, and $res.
Referenced by assKprimChoice\isAnswered(), assTextQuestion\isAnswered(), assMultipleChoice\isAnswered(), assFileUpload\isAnswered(), and assSingleChoice\isAnswered().
Here is the caller graph for this function:
|
static |
Definition at line 3667 of file class.assQuestion.php.
Referenced by _instantiateQuestion(), and includeCoreClass().
Here is the caller graph for this function:| assQuestion::getObjId | ( | ) |
Get the object id of the container object.
Definition at line 680 of file class.assQuestion.php.
References $obj_id.
Referenced by __get(), assOrderingHorizontal\copyObject(), assFileUpload\copyObject(), assNumeric\copyObject(), assTextQuestion\copyObject(), assImagemapQuestion\copyObject(), assFlashQuestion\copyObject(), assOrderingQuestion\copyObject(), assErrorText\copyObject(), assTextSubset\copyObject(), assMultipleChoice\copyObject(), assSingleChoice\copyObject(), assMatchingQuestion\copyObject(), assJavaApplet\copyObject(), assFormulaQuestion\copyObject(), assKprimChoice\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assFlashQuestion\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assJavaApplet\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assClozeTest\createNewOriginalFromThisDuplicate(), createNewQuestion(), createPageObject(), delete(), deleteTaxonomyAssignments(), assOrderingHorizontal\duplicate(), assFileUpload\duplicate(), assNumeric\duplicate(), assTextQuestion\duplicate(), assImagemapQuestion\duplicate(), assFlashQuestion\duplicate(), assOrderingQuestion\duplicate(), assErrorText\duplicate(), assTextSubset\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), saveQuestionDataToDb(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::getOriginalId | ( | ) |
Definition at line 2172 of file class.assQuestion.php.
References $original_id.
Referenced by __get(), assMultipleChoice\syncImages(), assSingleChoice\syncImages(), assMultipleChoice\syncWithOriginal(), assSingleChoice\syncWithOriginal(), assImagemapQuestion\syncWithOriginal(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::getOutputType | ( | ) |
Gets the output type.
Reimplemented in assSingleChoice, and assMultipleChoice.
Definition at line 607 of file class.assQuestion.php.
References $outputType.
Referenced by __get(), and assOrderingQuestion\checkSaveData().
Here is the caller graph for this function:| assQuestion::getOwner | ( | ) |
Gets the creator/owner ID of the assQuestion object.
Definition at line 668 of file class.assQuestion.php.
References $owner.
Referenced by __get(), saveQuestionDataToDb(), and saveToDb().
Here is the caller graph for this function:| assQuestion::getPageOfQuestion | ( | ) |
Definition at line 2105 of file class.assQuestion.php.
References $page.
| assQuestion::getPoints | ( | ) |
Returns the maximum available points for the question.
Definition at line 2994 of file class.assQuestion.php.
References $points.
Referenced by __get(), assKprimChoice\calculateReachedPointsForSolution(), assOrderingHorizontal\calculateReachedPointsForSolution(), assOrderingQuestion\calculateReachedPointsForSolution(), assNumeric\calculateReachedPointsFromPreviewSession(), assOrderingHorizontal\getMaximumPoints(), assFileUpload\getMaximumPoints(), assNumeric\getMaximumPoints(), assTextQuestion\getMaximumPoints(), assOrderingQuestion\getMaximumPoints(), assTextSubset\isAnswerCorrect(), assJavaApplet\isComplete(), assTextQuestion\setReachedPoints(), assOrderingHorizontal\toJSON(), and assOrderingQuestion\toJSON().
Here is the caller graph for this function:| assQuestion::getPreventRteUsage | ( | ) |
Get prevent rte usage.
Definition at line 4040 of file class.assQuestion.php.
References $prevent_rte_usage.
| assQuestion::getProcessLocker | ( | ) |
Definition at line 313 of file class.assQuestion.php.
References $processLocker.
Referenced by calculateResultsFromSolution(), persistWorkingState(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assTextSubset\saveWorkingData(), assFileUpload\saveWorkingData(), assTextQuestion\saveWorkingData(), assSingleChoice\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
Here is the caller graph for this function:| assQuestion::getQuestion | ( | ) |
Gets the question string of the question object.
Definition at line 3439 of file class.assQuestion.php.
References $question.
Referenced by __get(), assFormulaQuestion\checkForDuplicateResults(), assFormulaQuestion\checkForDuplicateVariables(), getRTETextWithMediaObjects(), assFormulaQuestion\parseQuestionText(), saveQuestionDataToDb(), assFormulaQuestion\substituteVariables(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assErrorText\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
Here is the caller graph for this function:| assQuestion::getQuestionChangeListeners | ( | ) |
Definition at line 4318 of file class.assQuestion.php.
References $questionChangeListeners.
Referenced by notifyQuestionCreated(), notifyQuestionDeleted(), and notifyQuestionEdited().
Here is the caller graph for this function:
|
abstract |
Returns the question type of the question.
Reimplemented in assClozeTest, assMatchingQuestion, assFormulaQuestion, assOrderingQuestion, assJavaApplet, assImagemapQuestion, assFileUpload, assSingleChoice, assTextQuestion, assMultipleChoice, assTextSubset, assNumeric, assFlashQuestion, assErrorText, assOrderingHorizontal, and assKprimChoice.
Referenced by fromXML(), getQuestionTypeID(), and toXML().
Here is the caller graph for this function:| assQuestion::getQuestionTypeFromDb | ( | $question_id | ) |
get question type for question id
note: please don't use $this in this class to allow static calls
Definition at line 1657 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by assQuestionGUI\_getGUIClassNameForId(), assQuestionGUI\_getQuestionGUI(), and ilObjTestGUI\executeCommand().
Here is the caller graph for this function:| assQuestion::getQuestionTypeID | ( | ) |
Returns the question type of the question.
Returns the question type of the question
Definition at line 3471 of file class.assQuestion.php.
References $ilDB, $result, and getQuestionType().
Referenced by createNewQuestion(), and saveQuestionDataToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getReachedPoints | ( | $active_id, | |
$pass = NULL |
|||
| ) |
Returns the points, a learner has reached answering the question This is the fast way to get the points directly from the database.
| integer | $user_id | The database ID of the learner |
| integer | $test_id | The database Id of the test containing the question public |
Definition at line 907 of file class.assQuestion.php.
References $pass, _getReachedPoints(), and getId().
Referenced by ilLOTestQuestionAdapter\updateQuestionResult().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
protected |
Collects all text in the question which could contain media objects which were created with the Rich Text Editor.
Reimplemented in assClozeTest, assMatchingQuestion, assFormulaQuestion, assSingleChoice, assOrderingQuestion, assJavaApplet, assMultipleChoice, assKprimChoice, assImagemapQuestion, assFileUpload, assTextQuestion, assTextSubset, assNumeric, assFlashQuestion, assErrorText, and assOrderingHorizontal.
Definition at line 3526 of file class.assQuestion.php.
References getId(), getQuestion(), and getTotalAnswers().
Referenced by cleanupMediaObjectUsage().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getSelfAssessmentEditingMode | ( | ) |
Get Self-Assessment Editing Mode.
Definition at line 4060 of file class.assQuestion.php.
References $selfassessmenteditingmode.
| assQuestion::getShuffle | ( | ) |
Gets the shuffle flag.
Definition at line 571 of file class.assQuestion.php.
References $shuffle.
Referenced by __get(), assTextQuestion\toJSON(), assImagemapQuestion\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assErrorText\toJSON(), and assClozeTest\toJSON().
Here is the caller graph for this function:| assQuestion::getSolutionMaxPass | ( | $active_id | ) |
Returns the maximum pass a users question solution.
| return | integer The maximum pass of the users solution public |
Definition at line 3024 of file class.assQuestion.php.
References _getSolutionMaxPass(), and getId().
Referenced by assOrderingHorizontal\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assFlashQuestion\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assOrderingQuestion\calculateReachedPoints(), assJavaApplet\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assClozeTest\calculateReachedPoints(), assJavaApplet\getReachedInformation(), getSolutionValues(), assFileUpload\getUploadedFiles(), and assTextQuestion\setReachedPoints().
Here is the call graph for this function:
Here is the caller graph for this function:| & assQuestion::getSolutionValues | ( | $active_id, | |
$pass = NULL |
|||
| ) |
Loads solutions of a given user from the database an returns it.
| integer | $test_id | The database id of the test containing this question public |
Definition at line 1553 of file class.assQuestion.php.
References $ilDB, $result, getId(), getSolutionMaxPass(), and getStep().
Referenced by assFormulaQuestion\calculateReachedPoints(), assOrderingHorizontal\setExportDetailsXLS(), assErrorText\setExportDetailsXLS(), assNumeric\setExportDetailsXLS(), assTextSubset\setExportDetailsXLS(), assTextQuestion\setExportDetailsXLS(), assFileUpload\setExportDetailsXLS(), assImagemapQuestion\setExportDetailsXLS(), assJavaApplet\setExportDetailsXLS(), assMultipleChoice\setExportDetailsXLS(), assSingleChoice\setExportDetailsXLS(), assOrderingQuestion\setExportDetailsXLS(), assKprimChoice\setExportDetailsXLS(), assFormulaQuestion\setExportDetailsXLS(), assMatchingQuestion\setExportDetailsXLS(), and assClozeTest\setExportDetailsXLS().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getStep | ( | ) |
Definition at line 4510 of file class.assQuestion.php.
References $step.
Referenced by calculateResultsFromSolution(), getSolutionValues(), and assImagemapQuestion\saveWorkingData().
Here is the caller graph for this function:| assQuestion::getSuggestedSolution | ( | $subquestion_index = 0 | ) |
Returns a suggested solution for a given subquestion index.
| integer | $subquestion_index | The index of a subquestion (i.e. a close test gap). Usually 0 |
Definition at line 2441 of file class.assQuestion.php.
| assQuestion::getSuggestedSolutionOutput | ( | ) |
Definition at line 801 of file class.assQuestion.php.
References _getInternalLinkHref(), getSuggestedSolutionPathWeb(), ilUtil\prepareFormOutput(), and prepareTextareaOutput().
Here is the call graph for this function:| assQuestion::getSuggestedSolutionPath | ( | ) |
Returns the path for a suggested solution.
public
Definition at line 1437 of file class.assQuestion.php.
Referenced by copySuggestedSolutionFiles(), deleteSuggestedSolutions(), duplicateSuggestedSolutionFiles(), and syncSuggestedSolutionFiles().
Here is the caller graph for this function:| assQuestion::getSuggestedSolutionPathWeb | ( | ) |
Returns the web path for a suggested solution.
public
Definition at line 1506 of file class.assQuestion.php.
References ILIAS_ABSOLUTE_PATH, and ilUtil\removeTrailingPathSeparators().
Referenced by getSuggestedSolutionOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getSuggestedSolutions | ( | ) |
Return the suggested solutions.
Definition at line 865 of file class.assQuestion.php.
References $suggested_solutions.
Referenced by __get().
Here is the caller graph for this function:| assQuestion::getSuggestedSolutionTitle | ( | $subquestion_index = 0 | ) |
Returns the title of a suggested solution at a given subquestion_index.
This can be usable for displaying suggested solutions
| integer | $subquestion_index | The index of a subquestion (i.e. a close test gap). Usually 0 |
Definition at line 2461 of file class.assQuestion.php.
References $title.
| assQuestion::getTestId | ( | ) |
Gets the test id of the assQuestion object.
Definition at line 583 of file class.assQuestion.php.
References $test_id.
Referenced by __get().
Here is the caller graph for this function:| assQuestion::getTitle | ( | ) |
Gets the title string of the assQuestion object.
Definition at line 547 of file class.assQuestion.php.
References $title.
Referenced by ilAssQuestionHintsTableGUI\__construct(), __get(), assClozeTest\isComplete(), saveQuestionDataToDb(), assOrderingHorizontal\setExportDetailsXLS(), assErrorText\setExportDetailsXLS(), assFlashQuestion\setExportDetailsXLS(), assNumeric\setExportDetailsXLS(), assTextSubset\setExportDetailsXLS(), assTextQuestion\setExportDetailsXLS(), assFileUpload\setExportDetailsXLS(), assImagemapQuestion\setExportDetailsXLS(), assJavaApplet\setExportDetailsXLS(), assMultipleChoice\setExportDetailsXLS(), assSingleChoice\setExportDetailsXLS(), assOrderingQuestion\setExportDetailsXLS(), assKprimChoice\setExportDetailsXLS(), assFormulaQuestion\setExportDetailsXLS(), assMatchingQuestion\setExportDetailsXLS(), assClozeTest\setExportDetailsXLS(), assOrderingHorizontal\toJSON(), assTextSubset\toJSON(), assTextQuestion\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), assOrderingQuestion\toJSON(), assErrorText\toJSON(), assMatchingQuestion\toJSON(), and assClozeTest\toJSON().
Here is the caller graph for this function:| assQuestion::getTotalAnswers | ( | ) |
get total number of answers
Definition at line 1924 of file class.assQuestion.php.
References _getTotalAnswers().
Referenced by getRTETextWithMediaObjects().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getValidAdditionalContentEditingModes | ( | ) |
getter for valid additional content editing modes
public
Definition at line 4299 of file class.assQuestion.php.
Referenced by isValidAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
Here is the caller graph for this function:
|
static |
Definition at line 3683 of file class.assQuestion.php.
References getFeedbackClassNameByQuestionType(), getGuiClassNameByQuestionType(), and getObjectClassNameByQuestionType().
Referenced by _includeClass().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 3702 of file class.assQuestion.php.
References getGuiClassNameByQuestionType(), ilPlugin\getPluginObject(), and IL_COMP_MODULE.
Referenced by _includeClass().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Creates an instance of a question gui with a given question id.
| integer | $a_question_id |
Definition at line 3782 of file class.assQuestion.php.
References $ilCtrl, $ilDB, $ilLog, $ilUser, $lng, ilObjAssessmentFolder\_enabledAssessmentLogging(), _getQuestionType(), _includeClass(), getFeedbackClassNameByQuestionType(), and getGuiClassNameByQuestionType().
Referenced by _instanciateQuestionGUI(), ilObjTestGUI\copyQuestionToPool(), and ilAssQuestionPreviewGUI\initQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::isAdditionalContentEditingModePageObject | ( | ) |
isser for additional "pageobject" content editing mode
public
Definition at line 4271 of file class.assQuestion.php.
References ADDITIONAL_CONTENT_EDITING_MODE_PAGE_OBJECT, and getAdditionalContentEditingMode().
Referenced by delete(), and duplicateQuestionHints().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::isAnswered | ( | $active_id, | |
$pass = null |
|||
| ) |
returns boolean wether the question is answered during test pass or not
method can be overwritten in derived classes, but be aware of also overwrite the method assQuestion::isObligationPossible()
| integer | $active_id | |
| integer | $pass |
Reimplemented in assSingleChoice, assFileUpload, assMultipleChoice, assTextQuestion, and assKprimChoice.
Definition at line 4154 of file class.assQuestion.php.
Referenced by calculateResultsFromSolution().
Here is the caller graph for this function:| assQuestion::isAutosaveable | ( | ) |
Reimplemented in assFileUpload, assJavaApplet, assFlashQuestion, and assImagemapQuestion.
Definition at line 4196 of file class.assQuestion.php.
| assQuestion::isClone | ( | $question_id = "" | ) |
Checks whether the question is a clone of another question or not.
Definition at line 1621 of file class.assQuestion.php.
| assQuestion::isComplete | ( | ) |
Returns true, if a question is complete for use.
Reimplemented in assFormulaQuestion, assKprimChoice, assJavaApplet, assClozeTest, assMultipleChoice, assMatchingQuestion, assImagemapQuestion, assSingleChoice, assOrderingQuestion, assTextQuestion, assTextSubset, assNumeric, assFlashQuestion, assErrorText, assFileUpload, and assOrderingHorizontal.
Definition at line 357 of file class.assQuestion.php.
Referenced by saveQuestionDataToDb(), and saveToDb().
Here is the caller graph for this function:
|
static |
Definition at line 3677 of file class.assQuestion.php.
References getGuiClassNameByQuestionType().
Here is the call graph for this function:| assQuestion::isHTML | ( | $a_text | ) |
Checks if a given string contains HTML or not.
| string | $a_text | Text which should be checked |
Definition at line 3237 of file class.assQuestion.php.
Referenced by addQTIMaterial(), and assTextQuestion\getSolutionSubmit().
Here is the caller graph for this function:| assQuestion::isInUse | ( | $question_id = "" | ) |
Checks whether the question is in use or not.
Definition at line 1594 of file class.assQuestion.php.
References $ilDB, $result, and getId().
Here is the call graph for this function:
|
static |
returns boolean wether it is possible to set this question type as obligatory or not considering the current question configuration
method can be overwritten in derived classes, but be aware of also overwrite the method assQuestion::isAnswered()
| integer | $questionId |
Reimplemented in assSingleChoice, assFileUpload, assTextQuestion, and assKprimChoice.
Definition at line 4171 of file class.assQuestion.php.
| assQuestion::isPreviewSolutionCorrect | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Definition at line 3131 of file class.assQuestion.php.
References calculateReachedPointsFromPreviewSession(), and getMaximumPoints().
Here is the call graph for this function:| assQuestion::isValidAdditionalContentEditingMode | ( | $additionalContentEditingMode | ) |
returns the fact wether the passed additional content mode is valid or not
public
| string | $additionalContentEditingMode |
Definition at line 4283 of file class.assQuestion.php.
References getValidAdditionalContentEditingModes().
Here is the call graph for this function:| assQuestion::keyInArray | ( | $searchkey, | |
| $array | |||
| ) |
returns TRUE if the key occurs in an array
| string | $arraykey | A key to an element in array |
| array | $array | An array to be searched public |
Definition at line 497 of file class.assQuestion.php.
| assQuestion::loadFromDb | ( | $question_id | ) |
Loads the question from the database.
| integer | $question_id | A unique key which defines the question in the database public |
Reimplemented in assFormulaQuestion, assImagemapQuestion, assJavaApplet, assMatchingQuestion, assMultipleChoice, assSingleChoice, assKprimChoice, assClozeTest, assErrorText, assOrderingQuestion, assTextSubset, assTextQuestion, assFlashQuestion, assFileUpload, and assOrderingHorizontal.
Definition at line 2183 of file class.assQuestion.php.
References $ilDB, $result, ilRTE\_replaceMediaObjectImageSrc(), and getId().
Here is the call graph for this function:| assQuestion::logAction | ( | $logtext = "", |
|
$active_id = "", |
|||
$question_id = "" |
|||
| ) |
Logs an action into the Test&Assessment log.
| string | $logtext | The log text |
| integer | $question_id | If given, saves the question id to the database public |
Definition at line 1371 of file class.assQuestion.php.
References $ilUser, $original_id, ilObjAssessmentFolder\_addLog(), ilObjTest\_getObjectIDFromActiveID(), and _getOriginalId().
Referenced by calculateResultsFromSolution(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assTextSubset\saveWorkingData(), assFileUpload\saveWorkingData(), assTextQuestion\saveWorkingData(), assSingleChoice\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), and assClozeTest\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
returns the parent object id for given original question id (should be a qpl id, but theoretically it can be a tst id, too)
ilDB $ilDB
| integer | $originalQuestionId |
Definition at line 4114 of file class.assQuestion.php.
References lookupParentObjId().
Referenced by syncWithOriginal().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
ilDB $ilDB
| integer | $questionId |
Definition at line 4092 of file class.assQuestion.php.
References $ilDB, $query, and $res.
Referenced by ilObjTestGUI\copyAndLinkToQuestionpoolObject(), lookupOriginalParentObjId(), and assMultipleChoice\syncImages().
Here is the caller graph for this function:| assQuestion::moveUploadedMediaFile | ( | $file, | |
| $name | |||
| ) |
Move an uploaded media file to an public accessible temp dir to present it.
| string | $file | File path |
| string | $name | Name of the file public |
Definition at line 1415 of file class.assQuestion.php.
References $file, ilUtil\createDirectory(), and ilUtil\moveUploadedFile().
Here is the call graph for this function:
|
private |
Definition at line 4323 of file class.assQuestion.php.
References getQuestionChangeListeners().
Referenced by createNewQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 4339 of file class.assQuestion.php.
References getQuestionChangeListeners().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 4331 of file class.assQuestion.php.
References getQuestionChangeListeners().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Will be called when a question is copied (into another question pool)
Definition at line 2405 of file class.assQuestion.php.
References copySuggestedSolutionFiles(), and duplicateQuestionHints().
Here is the call graph for this function:
|
protected |
Will be called when a question is duplicated (inside a question pool or for insertion in a test)
Definition at line 2380 of file class.assQuestion.php.
References duplicateQuestionHints(), and duplicateSuggestedSolutionFiles().
Here is the call graph for this function:
|
static |
Definition at line 2835 of file class.assQuestion.php.
References $ilDB, $query, and $res.
Referenced by ilObjTestGUI\copyAndLinkQuestionsToPoolObject(), and ilObjTestGUI\copyAndLinkToQuestionpoolObject().
Here is the caller graph for this function:| assQuestion::pcArrayShuffle | ( | $array | ) |
Shuffles the values of a given array.
| array | $array | An array which should be shuffled public |
Definition at line 1640 of file class.assQuestion.php.
References $result.
Referenced by assOrderingQuestion\toJSON().
Here is the caller graph for this function:
|
final |
persists the preview state for current user and question
Definition at line 1105 of file class.assQuestion.php.
References savePreviewData().
Here is the call graph for this function:
|
final |
persists the working state for current testactive and testpass
public
| integer | $active_id | Active id of the user |
| integer | $pass | Test pass |
Definition at line 1081 of file class.assQuestion.php.
References $pass, ilObjTest\_getPass(), calculateResultsFromSolution(), getProcessLocker(), reworkWorkingData(), and saveWorkingData().
Here is the call graph for this function:| assQuestion::prepareTextareaOutput | ( | $txt_output, | |
$prepare_for_latex_output = FALSE |
|||
| ) |
Prepares a string for a text area output in tests.
| string | $txt_output | String which should be prepared for output public |
Definition at line 3255 of file class.assQuestion.php.
Referenced by getSuggestedSolutionOutput(), and assClozeTest\updateClozeTextFromGaps().
Here is the caller graph for this function:| assQuestion::QTIMaterialToString | ( | $a_material | ) |
Reads an QTI material tag an creates a text string.
| string | $a_material | QTI material tag |
Definition at line 3268 of file class.assQuestion.php.
References $_SESSION, and $result.
| assQuestion::questionTitleExists | ( | $questionpool_id, | |
| $title | |||
| ) |
Returns TRUE if the question title exists in the database.
| string | $title | The title of the question |
Definition at line 369 of file class.assQuestion.php.
| assQuestion::requiresJsSwitch | ( | ) |
Definition at line 628 of file class.assQuestion.php.
References supportsJavascriptOutput(), and supportsNonJsOutput().
Here is the call graph for this function:
|
abstractprotected |
Reworks the allready saved working data if neccessary.
protected
| integer | $active_id | |
| integer | $pass | |
| boolean | $obligationsAnswered |
Reimplemented in assClozeTest, assMatchingQuestion, assFormulaQuestion, assOrderingQuestion, assJavaApplet, assImagemapQuestion, assSingleChoice, assTextQuestion, assFileUpload, assMultipleChoice, assTextSubset, assNumeric, assFlashQuestion, assKprimChoice, assErrorText, and assOrderingHorizontal.
Referenced by persistWorkingState().
Here is the caller graph for this function:
|
protected |
Reimplemented in assMatchingQuestion, assFormulaQuestion, assOrderingQuestion, assJavaApplet, assImagemapQuestion, assFileUpload, assSingleChoice, assNumeric, assFlashQuestion, and assErrorText.
Definition at line 1132 of file class.assQuestion.php.
References ilAssQuestionPreviewSession\setParticipantsSolution().
Referenced by persistPreviewState().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::saveQuestionDataToDb | ( | $original_id = "" | ) |
Definition at line 2279 of file class.assQuestion.php.
References $ilDB, $original_id, ilRTE\_replaceMediaObjectImageSrc(), createPageObject(), getAdditionalContentEditingMode(), getAuthor(), getComment(), getEstimatedWorkingTime(), getExternalId(), getId(), getMaximumPoints(), getNrOfTries(), getObjId(), getOwner(), getQuestion(), getQuestionTypeID(), getTitle(), isComplete(), and setId().
Referenced by assOrderingHorizontal\saveToDb(), assFileUpload\saveToDb(), assErrorText\saveToDb(), assFlashQuestion\saveToDb(), assNumeric\saveToDb(), assTextSubset\saveToDb(), assTextQuestion\saveToDb(), assOrderingQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assMatchingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assJavaApplet\saveToDb(), assClozeTest\saveToDb(), assKprimChoice\saveToDb(), and assFormulaQuestion\saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::saveToDb | ( | $original_id = "" | ) |
Saves the question to the database.
| integer | $original_id | public |
Reimplemented in assFormulaQuestion, assKprimChoice, assClozeTest, assJavaApplet, assMultipleChoice, assMatchingQuestion, assImagemapQuestion, assOrderingQuestion, assTextQuestion, assTextSubset, assNumeric, assFlashQuestion, assErrorText, assFileUpload, and assOrderingHorizontal.
Definition at line 2341 of file class.assQuestion.php.
References $ilDB, ilObjQuestionPool\_updateQuestionCount(), cleanupMediaObjectUsage(), getId(), getOwner(), isComplete(), and notifyQuestionEdited().
Referenced by syncWithOriginal().
Here is the call graph for this function:
Here is the caller graph for this function:
|
abstract |
Saves the learners input of the question to the database.
public
| integer | $active_id | Active id of the user |
| integer | $pass | Test pass |
Reimplemented in assClozeTest, assMatchingQuestion, assFormulaQuestion, assJavaApplet, assOrderingQuestion, assImagemapQuestion, assSingleChoice, assTextQuestion, assFileUpload, assTextSubset, assFlashQuestion, assErrorText, and assOrderingHorizontal.
Referenced by persistWorkingState().
Here is the caller graph for this function:| assQuestion::setAdditionalContentEditingMode | ( | $additinalContentEditingMode | ) |
setter for additional content editing mode for this question
public
Definition at line 4254 of file class.assQuestion.php.
References $additinalContentEditingMode, and getValidAdditionalContentEditingModes().
Referenced by assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), and assFormulaQuestion\loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::setAuthor | ( | $author = "" | ) |
Sets the authors name of the assQuestion object.
| string | $author | A string containing the name of the questions author public |
Definition at line 519 of file class.assQuestion.php.
References $author.
Referenced by __set(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), and assFormulaQuestion\loadFromDb().
Here is the caller graph for this function:| assQuestion::setComment | ( | $comment = "" | ) |
Sets the comment string of the assQuestion object.
| string | $comment | A comment string to describe the question public |
Definition at line 423 of file class.assQuestion.php.
References $comment.
Referenced by __set(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), and assFormulaQuestion\loadFromDb().
Here is the caller graph for this function:| assQuestion::setDefaultNrOfTries | ( | $a_defaultnroftries | ) |
Set Default Nr of Tries.
| int | $a_defaultnroftries | Default Nr. of Tries |
Definition at line 4070 of file class.assQuestion.php.
| assQuestion::setEstimatedWorkingTime | ( | $hour = 0, |
|
$min = 0, |
|||
$sec = 0 |
|||
| ) |
Sets the estimated working time of a question from given hour, minute and second.
| integer | $hour | Hour |
| integer | $min | Minutes |
| integer | $sec | Seconds public |
Definition at line 470 of file class.assQuestion.php.
Referenced by __construct(), __set(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), and assFormulaQuestion\loadFromDb().
Here is the caller graph for this function:| assQuestion::setEstimatedWorkingTimeFromDurationString | ( | $durationString | ) |
Sets the estimated working time of a question from a given datetime string.
| string | $datetime |
Definition at line 481 of file class.assQuestion.php.
Referenced by assKprimChoice\loadFromDb().
Here is the caller graph for this function:| assQuestion::setExportDetailsXLS | ( | & | $worksheet, |
| $startrow, | |||
| $active_id, | |||
| $pass, | |||
| & | $format_title, | ||
| & | $format_bold | ||
| ) |
Creates an Excel worksheet for the detailed cumulated results of this question.
| object | $worksheet | Reference to the parent excel worksheet |
| object | $startrow | Startrow of the output in the excel worksheet |
| object | $active_id | Active id of the participant |
| object | $pass | Test pass |
| object | $format_title | Excel title format |
| object | $format_bold | Excel bold format |
| array | $eval_data | Cumulated evaluation data public |
Reimplemented in assClozeTest, assMatchingQuestion, assFormulaQuestion, assKprimChoice, assOrderingQuestion, assSingleChoice, assMultipleChoice, assJavaApplet, assImagemapQuestion, assFileUpload, assTextQuestion, assTextSubset, assNumeric, assFlashQuestion, assErrorText, and assOrderingHorizontal.
Definition at line 3829 of file class.assQuestion.php.
| assQuestion::setExportImagePath | ( | $a_path | ) |
Definition at line 3973 of file class.assQuestion.php.
| assQuestion::setExternalId | ( | $external_id | ) |
| string | $external_id |
Definition at line 700 of file class.assQuestion.php.
References $external_id.
Referenced by __construct().
Here is the caller graph for this function:| assQuestion::setId | ( | $id = -1 | ) |
Sets the id of the assQuestion object.
| integer | $id | A unique integer value public |
Reimplemented in assFormulaQuestion.
Definition at line 399 of file class.assQuestion.php.
References $id.
Referenced by __set(), createNewQuestion(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), saveQuestionDataToDb(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::setLastChange | ( | $lastChange | ) |
Reimplemented in assMultipleChoice.
Definition at line 4377 of file class.assQuestion.php.
References $lastChange.
Referenced by assKprimChoice\loadFromDb().
Here is the caller graph for this function:| assQuestion::setNewOriginalId | ( | $newId | ) |
Definition at line 2369 of file class.assQuestion.php.
References $ilDB, and getId().
Here is the call graph for this function:| assQuestion::setNrOfTries | ( | $a_nr_of_tries | ) |
Definition at line 3968 of file class.assQuestion.php.
Referenced by assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), and assImagemapQuestion\loadFromDb().
Here is the caller graph for this function:| assQuestion::setObjId | ( | $obj_id = 0 | ) |
Set the object id of the container object.
| integer | $obj_id | The object id of the container object public |
Definition at line 692 of file class.assQuestion.php.
References $obj_id.
Referenced by __set(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::setObligationsToBeConsidered | ( | $obligationsToBeConsidered = true | ) |
sets the flag wether obligations are to be considered or not
| bool | $obligationsToBeConsidered |
Definition at line 4181 of file class.assQuestion.php.
References $obligationsToBeConsidered.
| assQuestion::setOriginalId | ( | $original_id | ) |
Definition at line 2167 of file class.assQuestion.php.
References $original_id.
Referenced by __set(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::setOutputType | ( | $outputType = OUTPUT_HTML | ) |
Sets the output type.
| integer | $outputType | The output type of the question public |
Reimplemented in assSingleChoice, and assMultipleChoice.
Definition at line 435 of file class.assQuestion.php.
References $outputType.
Referenced by __set().
Here is the caller graph for this function:| assQuestion::setOwner | ( | $owner = "" | ) |
Sets the creator/owner ID of the assQuestion object.
| integer | $owner | A numerical ID to identify the owner/creator public |
Definition at line 535 of file class.assQuestion.php.
References $owner.
Referenced by __set(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), and assFormulaQuestion\loadFromDb().
Here is the caller graph for this function:| assQuestion::setPoints | ( | $a_points | ) |
Sets the maximum available points for the question.
| integer | $a_points | The points public |
Definition at line 3013 of file class.assQuestion.php.
Referenced by assKprimChoice\__construct(), __set(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), and assImagemapQuestion\loadFromDb().
Here is the caller graph for this function:| assQuestion::setPreventRteUsage | ( | $a_val | ) |
Set prevent rte usage.
| boolean | prevent rte usage |
Definition at line 4030 of file class.assQuestion.php.
| assQuestion::setProcessLocker | ( | $processLocker | ) |
| \ilAssQuestionProcessLocker | $processLocker |
Definition at line 305 of file class.assQuestion.php.
References $processLocker.
| assQuestion::setQuestion | ( | $question = "" | ) |
Sets the question string of the question object.
| string | $question | A string containing the question text public |
Definition at line 3451 of file class.assQuestion.php.
References $question.
Referenced by assClozeTest\__construct(), __construct(), __set(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), and assFormulaQuestion\loadFromDb().
Here is the caller graph for this function:
|
static |
| \ilObjTestGateway | $resultGateway |
Definition at line 4486 of file class.assQuestion.php.
References $resultGateway.
| assQuestion::setSelfAssessmentEditingMode | ( | $a_selfassessmenteditingmode | ) |
Set Self-Assessment Editing Mode.
| boolean | $a_selfassessmenteditingmode | Self-Assessment Editing Mode |
Definition at line 4050 of file class.assQuestion.php.
| assQuestion::setShuffle | ( | $shuffle = true | ) |
Sets the shuffle flag.
| boolean | $shuffle | A flag indicating whether the answers are shuffled or not public |
Reimplemented in assMatchingQuestion.
Definition at line 448 of file class.assQuestion.php.
References $shuffle.
Referenced by __set(), assTextQuestion\loadFromDb(), assSingleChoice\loadFromDb(), and assMultipleChoice\loadFromDb().
Here is the caller graph for this function:| assQuestion::setStep | ( | $step | ) |
| assQuestion::setSuggestedSolution | ( | $solution_id = "", |
|
$subquestion_index = 0, |
|||
$is_import = false |
|||
| ) |
Sets a suggested solution for the question.
If there is more than one subquestion (i.e. close questions) may enter a subquestion index.
| string | $solution_id | An internal link pointing to the suggested solution |
| integer | $subquestion_index | The index of a subquestion (i.e. a close test gap). Usually 0 |
| boolean | $is_import | A boolean indication that the internal link was imported from another ILIAS installation public |
Definition at line 2484 of file class.assQuestion.php.
References _resolveInternalLink().
Referenced by assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), and assFormulaQuestion\loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::setTestId | ( | $id = -1 | ) |
Sets the test id of the assQuestion object.
| integer | $id | A unique integer value public |
Definition at line 411 of file class.assQuestion.php.
References $id.
Referenced by __set().
Here is the caller graph for this function:| assQuestion::setTitle | ( | $title = "" | ) |
Sets the title string of the assQuestion object.
| string | $title | A title string to describe the question public |
Definition at line 387 of file class.assQuestion.php.
References $title.
Referenced by __set(), assOrderingHorizontal\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assOrderingQuestion\loadFromDb(), assErrorText\loadFromDb(), assClozeTest\loadFromDb(), assKprimChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assMatchingQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assImagemapQuestion\loadFromDb(), and assFormulaQuestion\loadFromDb().
Here is the caller graph for this function:
|
static |
| $time1 | |
| $time2 |
Definition at line 4520 of file class.assQuestion.php.
References convertISO8601FormatH_i_s_ExtendedToSeconds().
Referenced by ilTestQuestionsTableGUI\fillRow(), and ilQuestionBrowserTableGUI\fillRow().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::supportsJavascriptOutput | ( | ) |
Returns true if the question type supports JavaScript output.
Reimplemented in assMatchingQuestion, assOrderingQuestion, and assOrderingHorizontal.
Definition at line 618 of file class.assQuestion.php.
Referenced by requiresJsSwitch().
Here is the caller graph for this function:| assQuestion::supportsNonJsOutput | ( | ) |
Reimplemented in assMatchingQuestion, assOrderingQuestion, and assOrderingHorizontal.
Definition at line 623 of file class.assQuestion.php.
Referenced by requiresJsSwitch().
Here is the caller graph for this function:
|
protected |
Syncs the files of a suggested solution if the question is synced.
Definition at line 2538 of file class.assQuestion.php.
References $filename, $ilLog, ilUtil\delDir(), getSuggestedSolutionPath(), and ilUtil\makeDirParents().
Here is the call graph for this function:| assQuestion::syncWithOriginal | ( | ) |
Reimplemented in assImagemapQuestion, assSingleChoice, and assMultipleChoice.
Definition at line 2853 of file class.assQuestion.php.
References $id, $ilDB, afterSyncWithOriginal(), beforeSyncWithOriginal(), copyPageOfQuestion(), createPageObject(), deletePageOfQuestion(), getId(), getObjId(), getOriginalId(), lookupOriginalParentObjId(), saveToDb(), setId(), setObjId(), setOriginalId(), and syncXHTMLMediaObjectsOfQuestion().
Here is the call graph for this function:| assQuestion::syncXHTMLMediaObjectsOfQuestion | ( | ) |
Definition at line 2065 of file class.assQuestion.php.
References $mobs, ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_saveUsage(), and getId().
Referenced by syncWithOriginal().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::toJSON | ( | ) |
Reimplemented in assClozeTest, assMatchingQuestion, assErrorText, assOrderingQuestion, assSingleChoice, assMultipleChoice, assKprimChoice, assImagemapQuestion, assTextQuestion, assTextSubset, and assOrderingHorizontal.
Definition at line 4544 of file class.assQuestion.php.
| assQuestion::toXML | ( | $a_include_header = true, |
|
$a_include_binary = true, |
|||
$a_shuffle = false, |
|||
$test_output = false, |
|||
$force_image_references = false |
|||
| ) |
Returns a QTI xml representation of the question.
Reimplemented in assFileUpload, assFlashQuestion, assErrorText, and assOrderingHorizontal.
Definition at line 343 of file class.assQuestion.php.
References getQuestionType().
Here is the call graph for this function:
|
private |
Definition at line 193 of file class.assQuestion.php.
Referenced by getAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
|
private |
Associative array to store properties.
Definition at line 157 of file class.assQuestion.php.
|
protected |
Definition at line 55 of file class.assQuestion.php.
Referenced by assFlashQuestion\__construct(), assOrderingHorizontal\__construct(), assFormulaQuestion\__construct(), assErrorText\__construct(), assFileUpload\__construct(), assKprimChoice\__construct(), assNumeric\__construct(), assImagemapQuestion\__construct(), assTextSubset\__construct(), assTextQuestion\__construct(), assOrderingQuestion\__construct(), assSingleChoice\__construct(), assMatchingQuestion\__construct(), assMultipleChoice\__construct(), assJavaApplet\__construct(), assClozeTest\__construct(), __construct(), assOrderingHorizontal\duplicate(), assFileUpload\duplicate(), assNumeric\duplicate(), assImagemapQuestion\duplicate(), assTextQuestion\duplicate(), assFlashQuestion\duplicate(), assOrderingQuestion\duplicate(), assErrorText\duplicate(), assTextSubset\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), getAuthor(), and setAuthor().
|
protected |
Definition at line 41 of file class.assQuestion.php.
Referenced by assFlashQuestion\__construct(), assOrderingHorizontal\__construct(), assErrorText\__construct(), assFormulaQuestion\__construct(), assFileUpload\__construct(), assKprimChoice\__construct(), assNumeric\__construct(), assImagemapQuestion\__construct(), assTextSubset\__construct(), assTextQuestion\__construct(), assSingleChoice\__construct(), assOrderingQuestion\__construct(), assMatchingQuestion\__construct(), assMultipleChoice\__construct(), assJavaApplet\__construct(), assClozeTest\__construct(), __construct(), getComment(), and setComment().
|
protected |
Definition at line 119 of file class.assQuestion.php.
| assQuestion::$defaultnroftries = 0 |
Definition at line 221 of file class.assQuestion.php.
Referenced by getDefaultNrOfTries().
|
protected |
Definition at line 76 of file class.assQuestion.php.
Referenced by getEstimatedWorkingTime().
|
private |
(Web) Path to images
Definition at line 162 of file class.assQuestion.php.
Referenced by getImagePathWeb().
|
protected |
Definition at line 176 of file class.assQuestion.php.
Referenced by getExternalId(), and setExternalId().
| assQuestion::$feedbackOBJ = null |
Definition at line 200 of file class.assQuestion.php.
|
protected |
Definition at line 27 of file class.assQuestion.php.
Referenced by assFormulaQuestion\addResultUnits(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assFlashQuestion\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assJavaApplet\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assClozeTest\createNewOriginalFromThisDuplicate(), getId(), getImagePath(), isClone(), assImagemapQuestion\setExportDetailsXLS(), assMultipleChoice\setExportDetailsXLS(), assSingleChoice\setExportDetailsXLS(), assKprimChoice\setExportDetailsXLS(), setId(), assFormulaQuestion\setId(), assOrderingQuestion\setLeveledOrdering(), setTestId(), and syncWithOriginal().
|
protected |
Definition at line 104 of file class.assQuestion.php.
Referenced by __construct(), and __get().
|
protected |
Definition at line 245 of file class.assQuestion.php.
Referenced by getLastChange(), and setLastChange().
|
protected |
Definition at line 114 of file class.assQuestion.php.
Referenced by __construct(), _getQuestionTypeName(), _instantiateQuestion(), _setReachedPoints(), instantiateQuestionGUI(), and assMatchingQuestion\toJSON().
|
private |
Number of tries.
Definition at line 152 of file class.assQuestion.php.
Referenced by getNrOfTries().
|
protected |
Definition at line 97 of file class.assQuestion.php.
Referenced by createNewQuestion(), delete(), getImagePath(), getObjId(), and setObjId().
|
private |
Definition at line 170 of file class.assQuestion.php.
Referenced by areObligationsToBeConsidered(), and setObligationsToBeConsidered().
|
protected |
Definition at line 140 of file class.assQuestion.php.
Referenced by _logAction(), assOrderingHorizontal\copyObject(), assFileUpload\copyObject(), assNumeric\copyObject(), assTextQuestion\copyObject(), assImagemapQuestion\copyObject(), assFlashQuestion\copyObject(), assOrderingQuestion\copyObject(), assErrorText\copyObject(), assTextSubset\copyObject(), assMultipleChoice\copyObject(), assSingleChoice\copyObject(), assMatchingQuestion\copyObject(), assJavaApplet\copyObject(), assFormulaQuestion\copyObject(), assKprimChoice\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\duplicate(), assFileUpload\duplicate(), assNumeric\duplicate(), assImagemapQuestion\duplicate(), assTextQuestion\duplicate(), assFlashQuestion\duplicate(), assOrderingQuestion\duplicate(), assErrorText\duplicate(), assTextSubset\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), assTextQuestion\duplicateAnswers(), getOriginalId(), logAction(), saveQuestionDataToDb(), assOrderingHorizontal\saveToDb(), assFileUpload\saveToDb(), assErrorText\saveToDb(), assFlashQuestion\saveToDb(), assNumeric\saveToDb(), assTextSubset\saveToDb(), assTextQuestion\saveToDb(), assOrderingQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assMatchingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assJavaApplet\saveToDb(), assClozeTest\saveToDb(), assFormulaQuestion\saveToDb(), and setOriginalId().
|
protected |
Definition at line 126 of file class.assQuestion.php.
Referenced by getOutputType(), and setOutputType().
|
protected |
Definition at line 48 of file class.assQuestion.php.
Referenced by assFlashQuestion\__construct(), assOrderingHorizontal\__construct(), assFormulaQuestion\__construct(), assErrorText\__construct(), assFileUpload\__construct(), assKprimChoice\__construct(), assNumeric\__construct(), assImagemapQuestion\__construct(), assTextSubset\__construct(), assTextQuestion\__construct(), assOrderingQuestion\__construct(), assSingleChoice\__construct(), assMatchingQuestion\__construct(), assMultipleChoice\__construct(), assJavaApplet\__construct(), assClozeTest\__construct(), __construct(), assOrderingHorizontal\duplicate(), assFileUpload\duplicate(), assNumeric\duplicate(), assImagemapQuestion\duplicate(), assTextQuestion\duplicate(), assFlashQuestion\duplicate(), assOrderingQuestion\duplicate(), assErrorText\duplicate(), assTextSubset\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), getOwner(), and setOwner().
|
protected |
Definition at line 147 of file class.assQuestion.php.
Referenced by __get(), copyPageOfQuestion(), deletePageOfQuestion(), and getPageOfQuestion().
|
protected |
Definition at line 69 of file class.assQuestion.php.
Referenced by _getMaximumPoints(), _getReachedPoints(), _isWorkedThrough(), _setReachedPoints(), assTextSubset\addAnswer(), assMultipleChoice\addAnswer(), assSingleChoice\addAnswer(), assImagemapQuestion\addAnswer(), assTextQuestion\addAnswer(), assErrorText\addErrorData(), assMatchingQuestion\addMatchingPair(), adjustReachedPointsByScoringOptions(), assClozeTest\calculateCombinationResult(), assOrderingHorizontal\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assFlashQuestion\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assOrderingQuestion\calculateReachedPoints(), assJavaApplet\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assFileUpload\calculateReachedPointsForSolution(), assTextQuestion\calculateReachedPointsForSolution(), assKprimChoice\calculateReachedPointsForSolution(), assOrderingHorizontal\calculateReachedPointsForSolution(), assTextSubset\calculateReachedPointsForSolution(), assImagemapQuestion\calculateReachedPointsForSolution(), assMultipleChoice\calculateReachedPointsForSolution(), assOrderingQuestion\calculateReachedPointsForSolution(), assMatchingQuestion\calculateReachedPointsForSolution(), assClozeTest\calculateReachedPointsForSolution(), assNumeric\calculateReachedPointsFromPreviewSession(), assFlashQuestion\calculateReachedPointsFromPreviewSession(), assJavaApplet\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assErrorText\getBestSelection(), assClozeTest\getMaximumGapPoints(), assTextQuestion\getMaximumPoints(), assFlashQuestion\getMaximumPoints(), assTextSubset\getMaximumPoints(), assMultipleChoice\getMaximumPoints(), assSingleChoice\getMaximumPoints(), assImagemapQuestion\getMaximumPoints(), assClozeTest\getMaximumPoints(), assFormulaQuestion\getMaximumPoints(), getMaximumPoints(), assMatchingQuestion\getMaximumPoints(), assTextQuestion\getMinimumPoints(), getPoints(), assErrorText\getPointsForSelectedPositions(), assJavaApplet\getUserQuestionResult(), assFileUpload\handleSubmission(), assMatchingQuestion\insertMatchingPair(), assErrorText\setErrorData(), assClozeTest\setGapAnswerPoints(), and assTextQuestion\setReachedPoints().
| assQuestion::$prevent_rte_usage = false |
Definition at line 207 of file class.assQuestion.php.
Referenced by getPreventRteUsage().
|
protected |
Definition at line 231 of file class.assQuestion.php.
Referenced by _updateTestResultCache(), getProcessLocker(), and setProcessLocker().
|
protected |
Definition at line 62 of file class.assQuestion.php.
Referenced by assFlashQuestion\__construct(), assOrderingHorizontal\__construct(), assErrorText\__construct(), assFormulaQuestion\__construct(), assFileUpload\__construct(), assKprimChoice\__construct(), assNumeric\__construct(), assImagemapQuestion\__construct(), assTextSubset\__construct(), assTextQuestion\__construct(), assSingleChoice\__construct(), assOrderingQuestion\__construct(), assMatchingQuestion\__construct(), assMultipleChoice\__construct(), assJavaApplet\__construct(), assClozeTest\__construct(), __construct(), _getSuggestedSolutionOutput(), _instantiateQuestion(), assKprimChoice\beforeSyncWithOriginal(), getQuestion(), and setQuestion().
| assQuestion::$questionActionCmd = 'handleQuestionAction' |
Definition at line 233 of file class.assQuestion.php.
|
protected |
Definition at line 226 of file class.assQuestion.php.
Referenced by getQuestionChangeListeners().
|
staticprivate |
Definition at line 238 of file class.assQuestion.php.
Referenced by getResultGateway(), and setResultGateway().
| assQuestion::$selfassessmenteditingmode = false |
Definition at line 214 of file class.assQuestion.php.
Referenced by getSelfAssessmentEditingMode().
|
protected |
Definition at line 83 of file class.assQuestion.php.
Referenced by getShuffle(), assSingleChoice\loadFromDb(), assMultipleChoice\loadFromDb(), assClozeTest\setGapShuffle(), setShuffle(), and assMatchingQuestion\setShuffle().
|
protected |
Definition at line 243 of file class.assQuestion.php.
|
protected |
Definition at line 133 of file class.assQuestion.php.
Referenced by getSuggestedSolutions().
|
protected |
Definition at line 90 of file class.assQuestion.php.
Referenced by _questionExistsInTest(), assFileUpload\deleteUploadedFiles(), getTestId(), assFileUpload\getUploadedFilesForWeb(), assFileUpload\hasFileUploads(), and assFileUpload\saveWorkingData().
|
protected |
Definition at line 34 of file class.assQuestion.php.
Referenced by assFlashQuestion\__construct(), assOrderingHorizontal\__construct(), assErrorText\__construct(), assFormulaQuestion\__construct(), assFileUpload\__construct(), assKprimChoice\__construct(), assNumeric\__construct(), assImagemapQuestion\__construct(), assTextSubset\__construct(), assTextQuestion\__construct(), assOrderingQuestion\__construct(), assSingleChoice\__construct(), assMatchingQuestion\__construct(), assMultipleChoice\__construct(), assJavaApplet\__construct(), assClozeTest\__construct(), __construct(), assOrderingHorizontal\copyObject(), assFileUpload\copyObject(), assNumeric\copyObject(), assTextQuestion\copyObject(), assImagemapQuestion\copyObject(), assFlashQuestion\copyObject(), assOrderingQuestion\copyObject(), assErrorText\copyObject(), assTextSubset\copyObject(), assMultipleChoice\copyObject(), assSingleChoice\copyObject(), assMatchingQuestion\copyObject(), assJavaApplet\copyObject(), assFormulaQuestion\copyObject(), assKprimChoice\copyObject(), assClozeTest\copyObject(), assOrderingHorizontal\duplicate(), assFileUpload\duplicate(), assNumeric\duplicate(), assTextQuestion\duplicate(), assImagemapQuestion\duplicate(), assFlashQuestion\duplicate(), assOrderingQuestion\duplicate(), assErrorText\duplicate(), assTextSubset\duplicate(), assSingleChoice\duplicate(), assMultipleChoice\duplicate(), assMatchingQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assFormulaQuestion\duplicate(), assClozeTest\duplicate(), getSuggestedSolutionTitle(), getTitle(), questionTitleExists(), and setTitle().
|
protected |
Definition at line 109 of file class.assQuestion.php.
Referenced by __construct(), and __get().
| const assQuestion::ADDITIONAL_CONTENT_EDITING_MODE_DEFAULT = 'default' |
constant for additional content editing mode "default"
Definition at line 181 of file class.assQuestion.php.
Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilObjQuestionPoolGUI\createQuestionForTestObject(), ilObjQuestionPoolGUI\createQuestionObject(), ilObjTestGUI\createQuestionObject(), ilPCQuestionGUI\edit(), assQuestionImport\fetchAdditionalContentEditingModeInformation(), ilTestExpressPageObjectGUI\handleToolbarCommand(), ilPCQuestionGUI\insert(), and assClozeTestGUI\populateQuestionSpecificFormPart().
| const assQuestion::ADDITIONAL_CONTENT_EDITING_MODE_PAGE_OBJECT = 'pageobject' |
constant for additional content editing mode "pageobject"
Definition at line 186 of file class.assQuestion.php.
Referenced by assQuestionGUI\addBasicQuestionFormProperties(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilObjTestGUI\createQuestionObject(), ilPCQuestionGUI\insert(), and isAdditionalContentEditingModePageObject().