|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 More... | |
| getShuffler () | |
| setShuffler (ilArrayElementShuffler $shuffler) | |
| 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. More... | |
| 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. More... | |
| isComplete () | |
| Returns true, if a question is complete for use. More... | |
| questionTitleExists ($questionpool_id, $title) | |
| Returns TRUE if the question title exists in the database. More... | |
| setTitle ($title="") | |
| Sets the title string of the assQuestion object. More... | |
| setId ($id=-1) | |
| Sets the id of the assQuestion object. More... | |
| setTestId ($id=-1) | |
| Sets the test id of the assQuestion object. More... | |
| setComment ($comment="") | |
| Sets the comment string of the assQuestion object. More... | |
| setOutputType ($outputType=OUTPUT_HTML) | |
| Sets the output type. More... | |
| setShuffle ($shuffle=true) | |
| Sets the shuffle flag. More... | |
| setEstimatedWorkingTime ($hour=0, $min=0, $sec=0) | |
| Sets the estimated working time of a question from given hour, minute and second. More... | |
| setEstimatedWorkingTimeFromDurationString ($durationString) | |
| Sets the estimated working time of a question from a given datetime string. More... | |
| keyInArray ($searchkey, $array) | |
| returns TRUE if the key occurs in an array More... | |
| setAuthor ($author="") | |
| Sets the authors name of the assQuestion object. More... | |
| setOwner ($owner="") | |
| Sets the creator/owner ID of the assQuestion object. More... | |
| getTitle () | |
| Gets the title string of the assQuestion object. More... | |
| getTitleFilenameCompliant () | |
| returns the object title prepared to be used as a filename More... | |
| getId () | |
| Gets the id of the assQuestion object. More... | |
| getShuffle () | |
| Gets the shuffle flag. More... | |
| getTestId () | |
| Gets the test id of the assQuestion object. More... | |
| getComment () | |
| Gets the comment string of the assQuestion object. More... | |
| getOutputType () | |
| Gets the output type. More... | |
| supportsJavascriptOutput () | |
| Returns true if the question type supports JavaScript output. More... | |
| supportsNonJsOutput () | |
| requiresJsSwitch () | |
| getEstimatedWorkingTime () | |
| Gets the estimated working time of a question. More... | |
| getAuthor () | |
| Gets the authors name of the assQuestion object. More... | |
| getOwner () | |
| Gets the creator/owner ID of the assQuestion object. More... | |
| getObjId () | |
| Get the object id of the container object. More... | |
| setObjId ($obj_id=0) | |
| Set the object id of the container object. More... | |
| setExternalId ($external_id) | |
| getExternalId () | |
| getSuggestedSolutionOutput () | |
| & | _getSuggestedSolution ($question_id, $subquestion_index=0) |
| Returns a suggested solution for a given subquestion index. More... | |
| getSuggestedSolutions () | |
| Return the suggested solutions. More... | |
| 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. More... | |
| getMaximumPoints () | |
| Returns the maximum points, a learner can reach answering the question. More... | |
| getAdjustedReachedPoints ($active_id, $pass=null, $authorizedSolution=true) | |
| returns the reached points ... More... | |
| calculateResultsFromSolution ($active_id, $pass=null, $obligationsEnabled=false) | |
| Calculates the question results from a previously saved question solution. More... | |
| persistWorkingState ($active_id, $pass=null, $obligationsEnabled=false, $authorized=true) | |
| persists the working state for current testactive and testpass More... | |
| persistPreviewState (ilAssQuestionPreviewSession $previewSession) | |
| persists the preview state for current user and question More... | |
| validateSolutionSubmit () | |
| saveWorkingData ($active_id, $pass=null, $authorized=true) | |
| Saves the learners input of the question to the database. More... | |
| moveUploadedMediaFile ($file, $name) | |
| Move an uploaded media file to an public accessible temp dir to present it. More... | |
| getSuggestedSolutionPath () | |
| Returns the path for a suggested solution. More... | |
| getJavaPath () | |
| Returns the image path for web accessable images of a question. More... | |
| getImagePath ($question_id=null, $object_id=null) | |
| Returns the image path for web accessable images of a question. More... | |
| buildImagePath ($questionId, $parentObjectId) | |
| getFlashPath () | |
| Returns the image path for web accessable flash files of a question. More... | |
| getJavaPathWeb () | |
| Returns the web image path for web accessable java applets of a question. More... | |
| getSuggestedSolutionPathWeb () | |
| Returns the web path for a suggested solution. More... | |
| getImagePathWeb () | |
| Returns the web image path for web accessable images of a question. More... | |
| getFlashPathWeb () | |
| Returns the web image path for web accessable flash applications of a question. More... | |
| getTestOutputSolutions ($activeId, $pass) | |
| getUserSolutionPreferingIntermediate ($active_id, $pass=null) | |
| getSolutionValues ($active_id, $pass=null, $authorized=true) | |
| Loads solutions of a given user from the database an returns it. More... | |
| isInUse ($question_id="") | |
| Checks whether the question is in use or not. More... | |
| isClone ($question_id="") | |
| Checks whether the question is a clone of another question or not. More... | |
| pcArrayShuffle ($array) | |
| Shuffles the values of a given array. More... | |
| getAdditionalTableName () | |
| Returns the name of the additional question data table in the database. More... | |
| getAnswerTableName () | |
| Returns the name of the answer table in the database. More... | |
| deleteAnswers ($question_id) | |
| Deletes datasets from answers tables. More... | |
| deleteAdditionalTableData ($question_id) | |
| Deletes datasets from the additional question table in the database. More... | |
| delete ($question_id) | |
| Deletes a question and all materials from the database. More... | |
| getTotalAnswers () | |
| get total number of answers More... | |
| _getTotalAnswers ($a_q_id) | |
| get number of answers for question id (static) note: do not use $this inside this method More... | |
| copyXHTMLMediaObjectsOfQuestion ($a_q_id) | |
| syncXHTMLMediaObjectsOfQuestion () | |
| createPageObject () | |
| create page object of question More... | |
| copyPageOfQuestion ($a_q_id) | |
| getPageOfQuestion () | |
| setOriginalId ($original_id) | |
| getOriginalId () | |
| fixSvgToPng ($imageFilenameContainingString) | |
| fixUnavailableSkinImageSources ($html) | |
| loadFromDb ($question_id) | |
| Loads the question from the database. More... | |
| 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. More... | |
| saveQuestionDataToDb ($original_id="") | |
| saveToDb ($original_id="") | |
| Saves the question to the database. More... | |
| setNewOriginalId ($newId) | |
| deleteSuggestedSolutions () | |
| Deletes all suggestes solutions in the database. More... | |
| getSuggestedSolution ($subquestion_index=0) | |
| Returns a suggested solution for a given subquestion index. More... | |
| getSuggestedSolutionTitle ($subquestion_index=0) | |
| Returns the title of a suggested solution at a given subquestion_index. More... | |
| setSuggestedSolution ($solution_id="", $subquestion_index=0, $is_import=false) | |
| Sets a suggested solution for the question. More... | |
| _resolveInternalLink ($internal_link) | |
| _resolveIntLinks ($question_id) | |
| syncWithOriginal () | |
| createRandomSolution ($test_id, $user_id) | |
| _questionExists ($question_id) | |
| Returns true if the question already exists in the database. More... | |
| _questionExistsInPool ($question_id) | |
| Returns true if the question already exists in the database and is assigned to a question pool. More... | |
| getPoints () | |
| Returns the maximum available points for the question. More... | |
| setPoints ($a_points) | |
| Sets the maximum available points for the question. More... | |
| getSolutionMaxPass ($active_id) | |
| Returns the maximum pass a users question solution. More... | |
| calculateReachedPoints ($active_id, $pass=null, $authorizedSolution=true, $returndetails=false) | |
| Returns the points, a learner has reached answering the question. More... | |
| deductHintPointsFromReachedPoints (ilAssQuestionPreviewSession $previewSession, $reachedPoints) | |
| 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. More... | |
| isHTML ($a_text) | |
| Checks if a given string contains HTML or not. More... | |
| prepareTextareaOutput ($txt_output, $prepare_for_latex_output=false, $omitNl2BrWhenTextArea=false) | |
| Prepares a string for a text area output in tests. More... | |
| QTIMaterialToString ($a_material) | |
| Reads an QTI material tag an creates a text string. More... | |
| 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. More... | |
| buildHashedImageFilename ($plain_image_filename, $unique=false) | |
| getQuestion () | |
| Gets the question string of the question object. More... | |
| setQuestion ($question="") | |
| Sets the question string of the question object. More... | |
| getQuestionType () | |
| Returns the question type of the question. More... | |
| getQuestionTypeID () | |
| Returns the question type of the question. More... | |
| cleanupMediaObjectUsage () | |
| synchronises appearances of media objects in the question with media object usage table More... | |
| & | getInstances () |
| Gets all instances of the question. More... | |
| getActiveUserData ($active_id) | |
| Returns the user id and the test id for a given active id. More... | |
| setExportDetailsXLS ($worksheet, $startrow, $active_id, $pass) | |
| Creates an Excel worksheet for the detailed cumulated results of this question. More... | |
| __get ($value) | |
| Object getter. More... | |
| __set ($key, $value) | |
| Object setter. More... | |
| getNrOfTries () | |
| setNrOfTries ($a_nr_of_tries) | |
| setExportImagePath ($a_path) | |
| formatSAQuestion ($a_q) | |
| Format self assessment question. More... | |
| setPreventRteUsage ($a_val) | |
| Set prevent rte usage. More... | |
| getPreventRteUsage () | |
| Get prevent rte usage. More... | |
| migrateContentForLearningModule (ilAssSelfAssessmentMigrator $migrator) | |
| setSelfAssessmentEditingMode ($a_selfassessmenteditingmode) | |
| Set Self-Assessment Editing Mode. More... | |
| getSelfAssessmentEditingMode () | |
| Get Self-Assessment Editing Mode. More... | |
| setDefaultNrOfTries ($a_defaultnroftries) | |
| Set Default Nr of Tries. More... | |
| getDefaultNrOfTries () | |
| Get Default Nr of Tries. More... | |
| syncSkillAssignments ($srcParentId, $srcQuestionId, $trgParentId, $trgQuestionId) | |
| isAnswered ($active_id, $pass=null) | |
| returns boolean wether the question is answered during test pass or not More... | |
| isAutosaveable () | |
| getAdditionalContentEditingMode () | |
| getter for additional content editing mode for this question More... | |
| setAdditionalContentEditingMode ($additinalContentEditingMode) | |
| setter for additional content editing mode for this question More... | |
| isAdditionalContentEditingModePageObject () | |
| isser for additional "pageobject" content editing mode More... | |
| isValidAdditionalContentEditingMode ($additionalContentEditingMode) | |
| returns the fact wether the passed additional content mode is valid or not More... | |
| getValidAdditionalContentEditingModes () | |
| getter for valid additional content editing modes More... | |
| addQuestionChangeListener (ilQuestionChangeListener $listener) | |
| getQuestionChangeListeners () | |
| getHtmlUserSolutionPurifier () | |
| getHtmlQuestionContentPurifier () | |
| setLastChange ($lastChange) | |
| getLastChange () | |
| removeIntermediateSolution ($active_id, $pass) | |
| removeCurrentSolution ($active_id, $pass, $authorized=true) | |
| saveCurrentSolution ($active_id, $pass, $value1, $value2, $authorized=true, $tstamp=null) | |
| updateCurrentSolution ($solutionId, $value1, $value2, $authorized=true) | |
| updateCurrentSolutionsAuthorization ($activeId, $pass, $authorized, $keepTime=false) | |
| setStep ($step) | |
| getStep () | |
| toJSON () | |
| duplicate ($for_test=true, $title="", $author="", $owner="", $testObjId=null) | |
| intermediateSolutionExists ($active_id, $pass) | |
| authorizedSolutionExists ($active_id, $pass) | |
| authorizedOrIntermediateSolutionExists ($active_id, $pass) | |
| removeExistingSolutions ($activeId, $pass) | |
| resetUsersAnswer ($activeId, $pass) | |
| removeResultRecord ($activeId, $pass) | |
| fetchValuePairsFromIndexedValues (array $indexedValues) | |
| fetchIndexedValuesFromValuePairs (array $valuePairs) | |
| areObligationsToBeConsidered () | |
| setObligationsToBeConsidered ($obligationsToBeConsidered) | |
| updateTimestamp () | |
| getTestPresentationConfig () | |
| Get the test question configuration (initialised once) More... | |
Static Public Member Functions | |
| static | setForcePassResultUpdateEnabled ($forcePassResultsUpdateEnabled) |
| static | isForcePassResultUpdateEnabled () |
| static | isAllowedImageMimeType ($mimeType) |
| static | fetchMimeTypeIdentifier ($contentTypeString) |
| static | getAllowedFileExtensionsForMimeType ($mimeType) |
| static | isAllowedImageFileExtension ($mimeType, $fileExtension) |
| static | getAllowedImageMaterialFileExtensions () |
| static | _getMaximumPoints ($question_id) |
| Returns the maximum points, a learner can reach answering the question. More... | |
| static | _getQuestionInfo ($question_id) |
| Returns question information from the database. More... | |
| static | _getSuggestedSolutionCount ($question_id) |
| Returns the number of suggested solutions associated with a question. More... | |
| static | _getSuggestedSolutionOutput ($question_id) |
| Returns the output of the suggested solution. More... | |
| static | _getReachedPoints ($active_id, $question_id, $pass=null) |
| Returns the points, a learner has reached answering the question. More... | |
| static | _updateTestResultCache ($active_id, ilAssQuestionProcessLocker $processLocker=null) |
| @TODO Move this to a proper place. More... | |
| static | logAction ($logtext="", $active_id="", $question_id="") |
| Logs an action into the Test&Assessment log. More... | |
| static | getQuestionTypeFromDb ($question_id) |
| get question type for question id More... | |
| static | _getTotalRightAnswers ($a_q_id) |
| get number of answers for question id (static) note: do not use $this inside this method More... | |
| static | _getTitle ($a_q_id) |
| Returns the title of a question. More... | |
| static | _getQuestionText ($a_q_id) |
| Returns question text. More... | |
| static | isFileAvailable ($file) |
| static | _getQuestionType ($question_id) |
| Returns the question type of a question with a given id. More... | |
| static | _getQuestionTitle ($question_id) |
| Returns the question title of a question with a given id. More... | |
| static | saveOriginalId ($questionId, $originalId) |
| static | resetOriginalId ($questionId) |
| static | _getInternalLinkHref ($target="") |
| static | _getOriginalId ($question_id) |
| Returns the original id of a question. More... | |
| static | originalQuestionExists ($questionId) |
| static | _instanciateQuestion ($question_id) |
| Creates an instance of a question with a given question id. More... | |
| static | _instantiateQuestion ($question_id) |
| static | _getSolutionMaxPass ($question_id, $active_id) |
| Returns the maximum pass a users question solution. More... | |
| static | _isWriteable ($question_id, $user_id) |
| Returns true if the question is writeable by a certain user. More... | |
| static | _isUsedInRandomTest ($question_id="") |
| Checks whether the question is used in a random test or not. More... | |
| 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. More... | |
| static | _areAnswered ($a_user_id, $a_question_ids) |
| Checks if an array of question ids is answered by an user or not. More... | |
| static | _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. More... | |
| static | _needsManualScoring ($question_id) |
| static | _includeClass ($question_type, $gui=0) |
| Include the php class file for a given question type. More... | |
| 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. More... | |
| static & | _instanciateQuestionGUI ($question_id) |
| Creates an instance of a question gui with a given question id. More... | |
| static | instantiateQuestionGUI ($a_question_id) |
| Creates an instance of a question gui with a given question id. More... | |
| static | _questionExistsInTest ($question_id, $test_id) |
| static | lookupParentObjId ($questionId) |
| @global ilDBInterface $ilDB More... | |
| 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) More... | |
| static | isObligationPossible ($questionId) |
| returns boolean wether it is possible to set this question type as obligatory or not considering the current question configuration More... | |
| static | implodeKeyValues ($keyValues) |
| static | explodeKeyValues ($keyValues) |
| static | setResultGateway ($resultGateway) |
| static | getResultGateway () |
| static | sumTimesInISO8601FormatH_i_s_Extended ($time1, $time2) |
| static | convertISO8601FormatH_i_s_ExtendedToSeconds ($time) |
| static | missingResultRecordExists ($activeId, $pass, $questionIds) |
| static | getQuestionsMissingResultRecord ($activeId, $pass, $questionIds) |
| static | lookupResultRecordExist ($activeId, $questionId, $pass) |
Data Fields | |
| const | IMG_MIME_TYPE_JPG = 'image/jpeg' |
| const | IMG_MIME_TYPE_PNG = 'image/png' |
| const | IMG_MIME_TYPE_GIF = 'image/gif' |
| const | ADDITIONAL_CONTENT_EDITING_MODE_DEFAULT = 'default' |
| constant for additional content editing mode "default" More... | |
| const | ADDITIONAL_CONTENT_EDITING_MODE_PAGE_OBJECT = 'pageobject' |
| constant for additional content editing mode "pageobject" More... | |
| $feedbackOBJ = null | |
| $prevent_rte_usage = false | |
| $selfassessmenteditingmode = false | |
| $defaultnroftries = 0 | |
| $questionActionCmd = 'handleQuestionAction' | |
| const | KEY_VALUES_IMPLOSION_SEPARATOR = ':' |
Protected Member Functions | |
| getQuestionAction () | |
| isNonEmptyItemListPostSubmission ($postSubmissionFieldname) | |
| ensureCurrentTestPass ($active_id, $pass) | |
| lookupCurrentTestPass ($active_id, $pass) | |
| lookupTestId ($active_id) | |
| log ($active_id, $langVar) | |
| reworkWorkingData ($active_id, $pass, $obligationsAnswered, $authorized) | |
| Reworks the allready saved working data if neccessary. More... | |
| savePreviewData (ilAssQuestionPreviewSession $previewSession) | |
| deletePageOfQuestion ($question_id) | |
| Deletes the page object of a question with a given ID. More... | |
| onDuplicate ($originalParentId, $originalQuestionId, $duplicateParentId, $duplicateQuestionId) | |
| Will be called when a question is duplicated (inside a question pool or for insertion in a test) More... | |
| 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) More... | |
| duplicateSuggestedSolutionFiles ($parent_id, $question_id) | |
| Duplicates the files of a suggested solution if the question is duplicated. More... | |
| syncSuggestedSolutionFiles ($original_id) | |
| Syncs the files of a suggested solution if the question is synced. More... | |
| copySuggestedSolutionFiles ($source_questionpool_id, $source_question_id) | |
| ensureNonNegativePoints ($points) | |
| getRTETextWithMediaObjects () | |
| Collects all text in the question which could contain media objects which were created with the Rich Text Editor. More... | |
| getSelfAssessmentFormatter () | |
| lmMigrateQuestionTypeGenericContent (ilAssSelfAssessmentMigrator $migrator) | |
| lmMigrateQuestionTypeSpecificContent (ilAssSelfAssessmentMigrator $migrator) | |
| duplicateQuestionHints ($originalQuestionId, $duplicateQuestionId) | |
| duplicateSkillAssignments ($srcParentId, $srcQuestionId, $trgParentId, $trgQuestionId) | |
| buildQuestionDataQuery () | |
| getCurrentSolutionResultSet ($active_id, $pass, $authorized=true) | |
| Get a restulset for the current user solution for a this question by active_id and pass. More... | |
| removeSolutionRecordById ($solutionId) | |
| getSolutionRecordById ($solutionId) | |
| deleteDummySolutionRecord ($activeId, $passIndex) | |
| deleteSolutionRecordByValues ($activeId, $passIndex, $authorized, $matchValues) | |
| duplicateIntermediateSolutionAuthorized ($activeId, $passIndex) | |
| forceExistingIntermediateSolution ($activeId, $passIndex, $considerDummyRecordCreation) | |
| buildTestPresentationConfig () | |
| build basic test question configuration instance More... | |
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 More... | |
| static | getKeyValuesImplosionSeparator () |
Protected Attributes | |
| $id | |
| $title | |
| $comment | |
| $owner | |
| $author | |
| $question | |
| $points | |
| $est_working_time | |
| $shuffle | |
| $test_id | |
| $obj_id | |
| $ilias | |
| $tpl | |
| $lng | |
| $db | |
| $outputType = OUTPUT_JAVASCRIPT | |
| $suggested_solutions | |
| $original_id | |
| $page | |
| $external_id = '' | |
| $questionChangeListeners = array() | |
| $processLocker | |
| $step = null | |
| $lastChange | |
| $shuffler | |
| $testQuestionConfig | |
Static Protected Attributes | |
| static | $allowedFileExtensionsByMimeType |
| static | $allowedCharsetsByMimeType |
| static | $allowedImageMaterialFileExtensionsByMimeType |
| static | $forcePassResultsUpdateEnabled = false |
| static | $imageSourceFixReplaceMap |
Private Member Functions | |
| deleteTaxonomyAssignments () | |
| notifyQuestionCreated () | |
| notifyQuestionEdited () | |
| notifyQuestionDeleted () | |
Private Attributes | |
| $nr_of_tries | |
| Number of tries. More... | |
| $arrData | |
| Associative array to store properties. More... | |
| $export_image_path | |
| (Web) Path to images More... | |
| $additinalContentEditingMode = null | |
| $obligationsToBeConsidered = false | |
| $testQuestionConfigInstance = 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.
@abstract
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 @access public |
Reimplemented in assClozeTest, assFileUpload, assFlashQuestion, assFormulaQuestion, assLongMenu, assNumeric, assOrderingHorizontal, assTextQuestion, assTextSubset, assErrorText, and assKprimChoice.
Definition at line 286 of file class.assQuestion.php.
References $author, $comment, $ilDB, $ilias, $lng, $owner, $question, $title, $tpl, comment(), setEstimatedWorkingTime(), setExternalId(), and setQuestion().
Here is the call graph for this function:| assQuestion::__get | ( | $value | ) |
Object getter.
Reimplemented in assErrorText, assFileUpload, assFormulaQuestion, and assOrderingHorizontal.
Definition at line 4049 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 4116 of file class.assQuestion.php.
References $key, 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 3464 of file class.assQuestion.php.
Referenced by ilCourseObjectiveResult\getStatus().
Here is the caller graph for this function:
|
static |
Definition at line 3012 of file class.assQuestion.php.
References $_GET, $ilDB, $target, $target_id, and $type.
Referenced by getSuggestedSolutionOutput(), and assQuestionGUI\suggestedsolution().
Here is the caller graph for this function:
|
static |
Returns the maximum points, a learner can reach answering the question.
| integer | $question_id | The database Id of the question |
Definition at line 934 of file class.assQuestion.php.
References $ilDB, $points, $result, and $row.
Referenced by _getTotalRightAnswers(), ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), ilTestScoringGUI\buildManScoringParticipantForm(), assFileUpload\handleSubmission(), ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), 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 3053 of file class.assQuestion.php.
References $ilDB, $result, and $row.
Referenced by ilTestFixedQuestionSetConfig\cloneQuestionSetRelatedData(), ilObjTestGUI\copyAndLinkToQuestionpoolObject(), assClozeTest\copyObject(), assErrorText\copyObject(), assFileUpload\copyObject(), assFlashQuestion\copyObject(), assFormulaQuestion\copyObject(), assImagemapQuestion\copyObject(), assJavaApplet\copyObject(), assKprimChoice\copyObject(), assLongMenu\copyObject(), assMatchingQuestion\copyObject(), assMultipleChoice\copyObject(), assNumeric\copyObject(), assOrderingHorizontal\copyObject(), assOrderingQuestion\copyObject(), assSingleChoice\copyObject(), assTextQuestion\copyObject(), assTextSubset\copyObject(), assClozeTest\duplicate(), assErrorText\duplicate(), assFileUpload\duplicate(), assFlashQuestion\duplicate(), assFormulaQuestion\duplicate(), assImagemapQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assLongMenu\duplicate(), assMatchingQuestion\duplicate(), assMultipleChoice\duplicate(), assNumeric\duplicate(), assOrderingHorizontal\duplicate(), assOrderingQuestion\duplicate(), assSingleChoice\duplicate(), assTextQuestion\duplicate(), assTextSubset\duplicate(), logAction(), and ilObjTest\logAction().
Here is the caller graph for this function:
|
static |
Returns question information from the database.
| integer | $question_id | The database Id of the question |
Definition at line 957 of file class.assQuestion.php.
References $ilDB, and $result.
Referenced by ilObjMediaObject\getParentObjectIdForUsage(), and ilTestManScoringParticipantsBySelectedQuestionAndPassTableGUI\initFilter().
Here is the caller graph for this function:
|
static |
Returns question text.
| int | $a_q_id | question id |
Definition at line 2228 of file class.assQuestion.php.
References $ilDB, $result, and $row.
Referenced by ilLMQuestionListTableGUI\fillRow().
Here is the caller graph for this function:
|
static |
Returns the question title of a question with a given id.
| integer | $question_id | The database id of the question |
Definition at line 2347 of file class.assQuestion.php.
References $data, $ilDB, and $result.
Referenced by ilObjAssessmentFolderGUI\exportLogObject(), ilObjectivesAlignmentTableGUI\fillRow(), and ilAssessmentFolderLogTableGUI\fillRow().
Here is the caller graph for this function:
|
static |
Returns the question type of a question with a given id.
| integer | $question_id | The database id of the question |
Definition at line 2320 of file class.assQuestion.php.
References $data, $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 @access public |
Definition at line 3957 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:
|
static |
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 1084 of file class.assQuestion.php.
References $ilDB, $pass, $points, $result, $row, and _getSolutionMaxPass().
Referenced by ilTestScoringGUI\buildManScoringParticipantForm(), ilTestServiceGUI\getPassListOfAnswersWithScoring(), and ilTestPlayerDynamicQuestionSetGUI\isQuestionAnsweredCorrect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Returns the maximum pass a users question solution.
| return | integer The maximum pass of the users solution @access public |
Definition at line 3271 of file class.assQuestion.php.
References $ilDB, $result, and $row.
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 1047 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 979 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 997 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:
|
static |
Returns the title of a question.
| int | $a_q_id | question id |
Definition at line 2207 of file class.assQuestion.php.
References $ilDB, $result, and $row.
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 2136 of file class.assQuestion.php.
References $ilDB, $result, and $row.
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 2166 of file class.assQuestion.php.
References $ilDB, $key, $result, $row, 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 3879 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 3197 of file class.assQuestion.php.
References _instantiateQuestion().
Referenced by _getSuggestedSolutionOutput(), ilObjTest\_instanciateQuestion(), 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 3984 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 |
| $question_id |
Definition at line 3206 of file class.assQuestion.php.
References $ilCtrl, $ilDB, $lng, $question, _getQuestionType(), _includeClass(), getFeedbackClassNameByQuestionType(), and getObjectClassNameByQuestionType().
Referenced by _instanciateQuestion(), ilTestExport\exportToExcel(), ilSCORM2004Asset\exportXMLPageObjects(), ilAssLacQuestionProvider\getQuestion(), ilTestPlayerAbstractGUI\getQuestionInstance(), ilTestExport\getQuestionQtiXml(), ilTestRandomQuestionSetPoolDeriver\getQuestionsForPool(), ilPageObject\newQuestionCopies(), ilAssIncompleteQuestionPurger\purgeQuestionIds(), ilTestRandomQuestionSetStagingPoolBuilder\stageQuestionsFromSourcePoolCheap(), and ilAssQuestionSkillAssignmentsGUI\syncOriginalCmd().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Checks whether the question is used in a random test or not.
Definition at line 3332 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 3432 of file class.assQuestion.php.
References $ilDB, $pass, $points, $result, _getSolutionMaxPass(), and lookupResultRecordExist().
Referenced by ilObjTest\getAnsweredQuestionCount(), ilTestOutputGUI\handleQuestionPostponing(), ilTestPlayerDynamicQuestionSetGUI\nextQuestionCmd(), ilTestOutputGUI\showQuestionCmd(), and ilTestPlayerDynamicQuestionSetGUI\showQuestionCmd().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
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 3303 of file class.assQuestion.php.
References $ilDB, $result, $row, and ilObjQuestionPool\_isWriteable().
Referenced by ilAssQuestionFeedbackEditingGUI\isSyncAfterSaveRequired(), ilAssQuestionHintsGUI\performDeleteCmd(), assQuestionGUI\save(), assQuestionGUI\saveEdit(), ilAssQuestionHintGUI\saveFormCmd(), ilAssQuestionHintsGUI\saveListOrderCmd(), assQuestionGUI\saveReturn(), assFormulaQuestionGUI\saveReturnFQ(), and assQuestionGUI\suggestedsolution().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 3837 of file class.assQuestion.php.
References ilObjAssessmentFolder\_getManualScoringTypes(), and _getQuestionType().
Referenced by ilTestExpressPageObjectGUI\insertQuestions(), ilTestQuestionBrowserTableGUI\insertQuestionsCmd(), 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 3143 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 3170 of file class.assQuestion.php.
|
static |
Definition at line 4184 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 2933 of file class.assQuestion.php.
References ilLMObject\_getIdForImportId(), and ilInternalLink\_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 2965 of file class.assQuestion.php.
References $ilDB, $result, $row, 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:
|
static |
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 3602 of file class.assQuestion.php.
References $ilDB, $ilUser, $lng, $pass, $points, $result, $row, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilObjTestAccess\_getParticipantData(), _getSolutionMaxPass(), ilObjTest\_getUserIdFromActiveId(), ilCourseObjectiveResult\_updateObjectiveResult(), logAction(), and sprintf.
Referenced by assFileUpload\handleSubmission(), and ilTestScoringGUI\saveManScoringParticipantScreen().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
@TODO Move this to a proper place.
Definition at line 1355 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 3541 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 4554 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.
@final @access public
| integer | $points | |
| integer | $active_id | |
| integer | $pass |
Definition at line 3406 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, assMatchingQuestion, assOrderingQuestion, and assSingleChoice.
Definition at line 2664 of file class.assQuestion.php.
Referenced by syncWithOriginal().
Here is the caller graph for this function:| assQuestion::areObligationsToBeConsidered | ( | ) |
Definition at line 5285 of file class.assQuestion.php.
References $obligationsToBeConsidered.
Referenced by resetUsersAnswer().
Here is the caller graph for this function:| assQuestion::authorizedOrIntermediateSolutionExists | ( | $active_id, | |
| $pass | |||
| ) |
Definition at line 5042 of file class.assQuestion.php.
References $pass.
| assQuestion::authorizedSolutionExists | ( | $active_id, | |
| $pass | |||
| ) |
Definition at line 5037 of file class.assQuestion.php.
References $pass.
|
protected |
Reimplemented in assKprimChoice.
Definition at line 2660 of file class.assQuestion.php.
Referenced by syncWithOriginal().
Here is the caller graph for this function:| assQuestion::buildHashedImageFilename | ( | $plain_image_filename, | |
$unique = false |
|||
| ) |
Definition at line 3575 of file class.assQuestion.php.
Referenced by assKprimChoice\handleFileUpload().
Here is the caller graph for this function:| assQuestion::buildImagePath | ( | $questionId, | |
| $parentObjectId | |||
| ) |
Definition at line 1639 of file class.assQuestion.php.
Referenced by assMatchingQuestion\afterSyncWithOriginal(), assSingleChoice\afterSyncWithOriginal(), and getImagePath().
Here is the caller graph for this function:
|
protected |
Definition at line 4606 of file class.assQuestion.php.
Referenced by assKprimChoice\loadFromDb().
Here is the caller graph for this function:
|
protected |
build basic test question configuration instance
method can be overwritten to configure an instance use parent call for building when possible
Reimplemented in assFileUpload, assFlashQuestion, assJavaApplet, assMultipleChoice, assOrderingHorizontal, and assOrderingQuestion.
Definition at line 5341 of file class.assQuestion.php.
Referenced by getTestPresentationConfig().
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.
@abstract @access public
| integer | $active_id | |
| integer | $pass | |
| boolean | $returndetails | (deprecated !!) |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Referenced by calculateResultsFromSolution(), and getAdjustedReachedPoints().
Here is the caller graph for this function:| assQuestion::calculateReachedPointsFromPreviewSession | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Reimplemented in assClozeTest, assErrorText, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assNumeric, assOrderingQuestion, and assSingleChoice.
Definition at line 3371 of file class.assQuestion.php.
References deductHintPointsFromReachedPoints(), ensureNonNegativePoints(), and 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.
@final @global ilDBInterface $ilDB @global ilObjUser $ilUser
| integer | $active_id | Active id of the user |
| integer | $pass | Test pass |
Definition at line 1173 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(), logAction(), and sprintf.
Referenced by assSingleChoice\createRandomSolution(), and 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 3784 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 5012 of file class.assQuestion.php.
References $time.
Referenced by sumTimesInISO8601FormatH_i_s_Extended().
Here is the caller graph for this function:| assQuestion::copyPageOfQuestion | ( | $a_q_id | ) |
Definition at line 2296 of file class.assQuestion.php.
Referenced by syncWithOriginal().
Here is the caller graph for this function:
|
protected |
Definition at line 2820 of file class.assQuestion.php.
References $filename, $ilLog, $index, 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 2261 of file class.assQuestion.php.
References $mobs, ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_saveUsage(), and getId().
Here is the call 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 2477 of file class.assQuestion.php.
References $_GET, $_POST, $ilDB, $ilUser, $obj_id, ilObject\_lookupObjId(), createPageObject(), getAdditionalContentEditingMode(), getAuthor(), getDefaultNrOfTries(), getEstimatedWorkingTime(), getExternalId(), getId(), getObjId(), getQuestionTypeID(), notifyQuestionCreated(), setId(), and sprintf.
Here is the call graph for this function:| assQuestion::createPageObject | ( | ) |
create page object of question
Definition at line 2282 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 3132 of file class.assQuestion.php.
| assQuestion::deductHintPointsFromReachedPoints | ( | ilAssQuestionPreviewSession | $previewSession, |
| $reachedPoints | |||
| ) |
Definition at line 3360 of file class.assQuestion.php.
References $DIC.
Referenced by assClozeTest\calculateReachedPointsFromPreviewSession(), assErrorText\calculateReachedPointsFromPreviewSession(), assFlashQuestion\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assImagemapQuestion\calculateReachedPointsFromPreviewSession(), assJavaApplet\calculateReachedPointsFromPreviewSession(), assNumeric\calculateReachedPointsFromPreviewSession(), assOrderingQuestion\calculateReachedPointsFromPreviewSession(), calculateReachedPointsFromPreviewSession(), and assSingleChoice\calculateReachedPointsFromPreviewSession().
Here is the caller graph for this function:| assQuestion::delete | ( | $question_id | ) |
Deletes a question and all materials from the database.
| integer | $question_id | The database id of the question @access private |
Reimplemented in assLongMenu.
Definition at line 1979 of file class.assQuestion.php.
References $ilDB, $ilLog, $mobs, $obj_id, $result, $row, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilObjQuestionPool\_updateQuestionCount(), ilUtil\delDir(), deleteAdditionalTableData(), deleteAnswers(), ilAssQuestionHintList\deleteHintsByQuestionIds(), deletePageOfQuestion(), 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 @access public |
Definition at line 1938 of file class.assQuestion.php.
References $ilDB, $table, 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 @access public |
Reimplemented in assFileUpload, assFlashQuestion, assFormulaQuestion, and assOrderingHorizontal.
Definition at line 1912 of file class.assQuestion.php.
References $ilDB, $table, and getAnswerTableName().
Referenced by delete().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 4884 of file class.assQuestion.php.
References getSolutionValues(), and removeSolutionRecordById().
Referenced by assFileUpload\saveWorkingData(), and assImagemapQuestion\saveWorkingData().
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 @access protected |
Definition at line 1965 of file class.assQuestion.php.
References $page.
Referenced by delete(), and syncWithOriginal().
Here is the caller graph for this function:
|
protected |
Definition at line 4893 of file class.assQuestion.php.
References $GLOBALS, $ilDB, $query, getId(), and getStep().
Referenced by assImagemapQuestion\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::deleteSuggestedSolutions | ( | ) |
Deletes all suggestes solutions in the database.
Definition at line 2690 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 2110 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 |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
|
protected |
Definition at line 4936 of file class.assQuestion.php.
References getSolutionValues(), and saveCurrentSolution().
Referenced by forceExistingIntermediateSolution().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 4348 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 |
Definition at line 4369 of file class.assQuestion.php.
References $ilDB.
Referenced by onCopy(), onDuplicate(), and syncSkillAssignments().
Here is the caller graph for this function:
|
protected |
Duplicates the files of a suggested solution if the question is duplicated.
Definition at line 2768 of file class.assQuestion.php.
References $filename, $ilLog, $index, getSuggestedSolutionPath(), and ilUtil\makeDirParents().
Referenced by onDuplicate().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $active_id | |
| $pass |
Definition at line 422 of file class.assQuestion.php.
References $pass, and lookupCurrentTestPass().
Referenced by assFileUpload\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 3379 of file class.assQuestion.php.
References $points.
Referenced by assClozeTest\calculateReachedPointsFromPreviewSession(), assErrorText\calculateReachedPointsFromPreviewSession(), assFlashQuestion\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assImagemapQuestion\calculateReachedPointsFromPreviewSession(), assJavaApplet\calculateReachedPointsFromPreviewSession(), assNumeric\calculateReachedPointsFromPreviewSession(), assOrderingQuestion\calculateReachedPointsFromPreviewSession(), calculateReachedPointsFromPreviewSession(), and assSingleChoice\calculateReachedPointsFromPreviewSession().
Here is the caller graph for this function:
|
static |
Definition at line 4879 of file class.assQuestion.php.
Referenced by assImagemapQuestion\getReuseSolutionSelectionParameter().
Here is the caller graph for this function:| assQuestion::fetchIndexedValuesFromValuePairs | ( | array | $valuePairs | ) |
| array | $valuePairs |
Reimplemented in assMatchingQuestion.
Definition at line 5271 of file class.assQuestion.php.
Referenced by assOrderingQuestion\calculateReachedPoints(), assOrderingQuestion\getOrderingElementListForSolutionOutput(), and assOrderingQuestion\getSolutionOrderingElementListForTestOutput().
Here is the caller graph for this function:
|
static |
Definition at line 347 of file class.assQuestion.php.
Referenced by ilQtiMatImageSecurity\validateContent().
Here is the caller graph for this function:| assQuestion::fetchValuePairsFromIndexedValues | ( | array | $indexedValues | ) |
| array | $indexedValues |
Definition at line 5256 of file class.assQuestion.php.
| assQuestion::fixSvgToPng | ( | $imageFilenameContainingString | ) |
Definition at line 2386 of file class.assQuestion.php.
Referenced by getSuggestedSolutionOutput().
Here is the caller graph for this function:| assQuestion::fixUnavailableSkinImageSources | ( | $html | ) |
Definition at line 2394 of file class.assQuestion.php.
References $file, $html, ilUtil\getImagePath(), and ilUtil\removeTrailingPathSeparators().
Referenced by getSuggestedSolutionOutput().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 4943 of file class.assQuestion.php.
References duplicateIntermediateSolutionAuthorized(), getSolutionValues(), saveCurrentSolution(), and updateCurrentSolutionsAuthorization().
Referenced by assFileUpload\saveWorkingData(), and assImagemapQuestion\saveWorkingData().
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 4210 of file class.assQuestion.php.
References getSelfAssessmentFormatter().
Referenced by assClozeTest\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assLongMenu\toJSON(), assMatchingQuestion\toJSON(), assMultipleChoice\toJSON(), assOrderingHorizontal\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assTextQuestion\toJSON(), and assTextSubset\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 @access public |
Reimplemented in assErrorText, assFileUpload, assFlashQuestion, and assOrderingHorizontal.
Definition at line 532 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 3856 of file class.assQuestion.php.
| assQuestion::getAdditionalContentEditingMode | ( | ) |
getter for additional content editing mode for this question
@access public
Definition at line 4489 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, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 1890 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 1140 of file class.assQuestion.php.
References $pass, ilObjTest\_getPass(), adjustReachedPointsByScoringOptions(), calculateReachedPoints(), and getId().
Here is the call graph for this function:
|
static |
Definition at line 352 of file class.assQuestion.php.
|
static |
Definition at line 479 of file class.assQuestion.php.
Referenced by ilImageWizardInputGUI\__construct().
Here is the caller graph for this function:| assQuestion::getAnswerTableName | ( | ) |
Returns the name of the answer table in the database.
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 1901 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 863 of file class.assQuestion.php.
References $author.
Referenced by __get(), createNewQuestion(), assClozeTest\isComplete(), assOrderingQuestion\isComplete(), and saveQuestionDataToDb().
Here is the caller graph for this function:| assQuestion::getComment | ( | ) |
Gets the comment string of the assQuestion object.
Definition at line 803 of file class.assQuestion.php.
References $comment.
Referenced by __get(), and saveQuestionDataToDb().
Here is the caller graph for this function:
|
protected |
Get a restulset for the current user solution for a this question by active_id and pass.
| int | $active_id | |
| int | $pass | |
| bool | true | $authorized | @global ilDBInterface $ilDB |
Definition at line 4638 of file class.assQuestion.php.
References $ilDB, $query, getId(), and getStep().
Referenced by assClozeTest\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assFlashQuestion\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assJavaApplet\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assOrderingHorizontal\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), and assSingleChoice\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getDefaultNrOfTries | ( | ) |
Get Default Nr of Tries.
Definition at line 4309 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 848 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 915 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 3898 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
@access public
Definition at line 1650 of file class.assQuestion.php.
Referenced by assFlashQuestion\copyApplet(), assFlashQuestion\deleteApplet(), assFlashQuestion\duplicateApplet(), assFlashQuestion\moveAppletIfExists(), and assFlashQuestion\moveUploadedFile().
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
@access public
Definition at line 1705 of file class.assQuestion.php.
References ilUtil\removeTrailingPathSeparators().
Here is the call graph for this function:
|
static |
Definition at line 3888 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 4600 of file class.assQuestion.php.
References ilHtmlPurifierFactory\_getInstanceByType().
Here is the call graph for this function:| assQuestion::getHtmlUserSolutionPurifier | ( | ) |
Definition at line 4591 of file class.assQuestion.php.
References ilHtmlPurifierFactory\_getInstanceByType().
Referenced by assTextQuestion\getSolutionSubmit(), and 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 767 of file class.assQuestion.php.
References $id.
Referenced by ilQuestionCumulatedStatisticsTableGUI\__construct(), ilQuestionUsagesTableGUI\__construct(), ilAssQuestionHintsOrderingClipboard\__construct(), __get(), addQTIMaterial(), assLongMenu\buildFolderName(), assOrderingQuestion\buildNestedOrderingElementInputGui(), assClozeTest\calculateCombinationResult(), calculateResultsFromSolution(), cleanupMediaObjectUsage(), assClozeTest\copyObject(), assErrorText\copyObject(), copyXHTMLMediaObjectsOfQuestion(), createNewQuestion(), createPageObject(), deleteSolutionRecordByValues(), deleteSuggestedSolutions(), deleteTaxonomyAssignments(), ilDynamicTestQuestionChangeListener\deleteTestsParticipantsQuestionData(), assClozeTest\duplicate(), assErrorText\duplicate(), assFileUpload\duplicate(), assFlashQuestion\duplicate(), assFormulaQuestion\duplicate(), assImagemapQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assLongMenu\duplicate(), assMatchingQuestion\duplicate(), assMultipleChoice\duplicate(), assNumeric\duplicate(), assOrderingHorizontal\duplicate(), assOrderingQuestion\duplicate(), assSingleChoice\duplicate(), assTextQuestion\duplicate(), assTextSubset\duplicate(), assTextQuestion\duplicateAnswers(), assOrderingQuestion\duplicateOrderlingElementList(), duplicateQuestionHints(), assOrderingQuestion\fetchSolutionListFromFormSubmissionData(), assOrderingQuestion\fetchSolutionListFromSubmittedForm(), assMatchingQuestion\fetchSubmittedMatchingsFromPost(), getAdjustedReachedPoints(), assLongMenu\getCorrectAnswersAsJson(), getCurrentSolutionResultSet(), getExternalId(), assFileUpload\getFileUploadPath(), assFileUpload\getFileUploadPathWeb(), getInstances(), assClozeTest\getMaximumPoints(), assOrderingQuestion\getOldLeveledOrdering(), assJavaApplet\getReachedInformation(), getReachedPoints(), assImagemapQuestion\getRTETextWithMediaObjects(), assMultipleChoice\getRTETextWithMediaObjects(), getRTETextWithMediaObjects(), assSingleChoice\getRTETextWithMediaObjects(), getSolutionMaxPass(), assOrderingQuestion\getSolutionOrderingElementList(), getSolutionValues(), assFileUpload\getUploadedFiles(), assFileUpload\handleSubmission(), assFileUpload\hasFileUploads(), assFileUpload\isAnswered(), assKprimChoice\isAnswered(), assMultipleChoice\isAnswered(), assSingleChoice\isAnswered(), assTextQuestion\isAnswered(), isInUse(), assOrderingQuestion\loadFromDb(), loadFromDb(), assTextQuestion\loadFromDb(), log(), logAction(), assFormulaQuestion\lookupForExistingSolutions(), assLongMenu\lookupForExistingSolutions(), migrateContentForLearningModule(), ilAssNestedOrderingElementsInputGUI\prepareReprintable(), removeCurrentSolution(), assFormulaQuestion\removeExistingSolutions(), removeExistingSolutions(), removeResultRecord(), ilAssOrderingQuestionAuthoringFormGUI\renewOrderingElementInput(), assClozeTest\saveAdditionalQuestionDataToDb(), assErrorText\saveAdditionalQuestionDataToDb(), assFileUpload\saveAdditionalQuestionDataToDb(), assFlashQuestion\saveAdditionalQuestionDataToDb(), assImagemapQuestion\saveAdditionalQuestionDataToDb(), assJavaApplet\saveAdditionalQuestionDataToDb(), assKprimChoice\saveAdditionalQuestionDataToDb(), assLongMenu\saveAdditionalQuestionDataToDb(), assMatchingQuestion\saveAdditionalQuestionDataToDb(), assOrderingHorizontal\saveAdditionalQuestionDataToDb(), assClozeTest\saveAnswerSpecificDataToDb(), assErrorText\saveAnswerSpecificDataToDb(), assImagemapQuestion\saveAnswerSpecificDataToDb(), assKprimChoice\saveAnswerSpecificDataToDb(), assLongMenu\saveAnswerSpecificDataToDb(), assMatchingQuestion\saveAnswerSpecificDataToDb(), assOrderingQuestion\saveAnswerSpecificDataToDb(), assClozeTest\saveClozeNumericGapRecordToDb(), assClozeTest\saveClozeSelectGapRecordToDb(), assClozeTest\saveClozeTextGapRecordToDb(), saveCurrentSolution(), assErrorText\savePreviewData(), assSingleChoice\savePreviewData(), saveQuestionDataToDb(), assFormulaQuestion\saveToDb(), assMultipleChoice\saveToDb(), assErrorText\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assFormulaQuestion\setId(), setNewOriginalId(), assTextQuestion\setReachedPoints(), syncWithOriginal(), syncXHTMLMediaObjectsOfQuestion(), assClozeTest\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assLongMenu\toJSON(), assMatchingQuestion\toJSON(), assMultipleChoice\toJSON(), assOrderingHorizontal\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assTextQuestion\toJSON(), assTextSubset\toJSON(), updateCurrentSolutionsAuthorization(), ilLOTestQuestionAdapter\updateQuestionResult(), and updateTimestamp().
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
@access public
Definition at line 1626 of file class.assQuestion.php.
References $id, $obj_id, and buildImagePath().
Referenced by assOrderingQuestion\buildOrderingImagesFormDataConverter(), assOrderingQuestion\cleanImagefiles(), assImagemapQuestion\copyImage(), assMatchingQuestion\copyImages(), assMultipleChoice\copyImages(), assOrderingQuestion\copyImages(), assOrderingQuestion\createImageThumbnail(), assMultipleChoice\deleteImage(), assSingleChoice\deleteImage(), assImagemapQuestion\deleteImage(), assMatchingQuestion\deleteImagefile(), assOrderingQuestion\dropImageFile(), assImagemapQuestion\duplicateImage(), assMatchingQuestion\duplicateImages(), assSingleChoice\duplicateImages(), assOrderingQuestion\duplicateImages(), assOrderingQuestion\ensureImagePathExists(), assKprimChoice\handleFileUpload(), assOrderingQuestion\isImageFileStored(), assKprimChoice\loadAnswerData(), assMultipleChoice\loadFromDb(), assSingleChoice\loadFromDb(), assMatchingQuestion\rebuildThumbnails(), assMultipleChoice\rebuildThumbnails(), assOrderingQuestion\rebuildThumbnails(), assSingleChoice\rebuildThumbnails(), assMatchingQuestion\setExportDetailsXLS(), assMultipleChoice\setImageFile(), assSingleChoice\setImageFile(), assMatchingQuestion\setImageFile(), assImagemapQuestion\setImageFilename(), assOrderingQuestion\storeImageFile(), 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
@access public
TODO: in use? refactor and ask for a supported path in all cases, not for THE dynamic highlander path ^^
Definition at line 1688 of file class.assQuestion.php.
References $export_image_path, and ilUtil\removeTrailingPathSeparators().
Referenced by assOrderingQuestion\buildNestedOrderingElementInputGui(), assOrderingQuestion\buildNestedOrderingFormDataConverter(), assOrderingQuestion\buildOrderingImagesFormDataConverter(), assKprimChoice\loadAnswerData(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assMultipleChoice\toJSON(), assOrderingQuestion\toJSON(), and assSingleChoice\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 3796 of file class.assQuestion.php.
References $ilDB, $key, $result, $row, 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
@access public
Definition at line 1615 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
@access public
Definition at line 1661 of file class.assQuestion.php.
References ilUtil\removeTrailingPathSeparators().
Here is the call graph for this function:
|
staticprotected |
Definition at line 4871 of file class.assQuestion.php.
References KEY_VALUES_IMPLOSION_SEPARATOR.
| assQuestion::getLastChange | ( | ) |
Reimplemented in assMultipleChoice.
Definition at line 4623 of file class.assQuestion.php.
References $lastChange.
| assQuestion::getMaximumPoints | ( | ) |
Returns the maximum points, a learner can reach answering the question.
@access public
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 1124 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 4169 of file class.assQuestion.php.
References $nr_of_tries.
Referenced by saveQuestionDataToDb(), assClozeTest\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assLongMenu\toJSON(), assMatchingQuestion\toJSON(), assMultipleChoice\toJSON(), assOrderingHorizontal\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assTextQuestion\toJSON(), and assTextSubset\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
@access protected
@global ilDBInterface $ilDB
| integer | $activeId | |
| integer | $pass | |
| integer | $questionId |
Definition at line 4458 of file class.assQuestion.php.
References $ilDB, $pass, $query, $res, and $row.
Referenced by assFileUpload\isAnswered(), assKprimChoice\isAnswered(), assMultipleChoice\isAnswered(), assSingleChoice\isAnswered(), and assTextQuestion\isAnswered().
Here is the caller graph for this function:
|
static |
Definition at line 3893 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 887 of file class.assQuestion.php.
References $obj_id.
Referenced by __get(), assClozeTest\copyObject(), assErrorText\copyObject(), assFileUpload\copyObject(), assFlashQuestion\copyObject(), assFormulaQuestion\copyObject(), assImagemapQuestion\copyObject(), assJavaApplet\copyObject(), assKprimChoice\copyObject(), assLongMenu\copyObject(), assMatchingQuestion\copyObject(), assMultipleChoice\copyObject(), assNumeric\copyObject(), assOrderingHorizontal\copyObject(), assOrderingQuestion\copyObject(), assSingleChoice\copyObject(), assTextQuestion\copyObject(), assTextSubset\copyObject(), assClozeTest\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assFlashQuestion\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assJavaApplet\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assLongMenu\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), createNewQuestion(), createPageObject(), delete(), deleteTaxonomyAssignments(), assClozeTest\duplicate(), assErrorText\duplicate(), assFileUpload\duplicate(), assFlashQuestion\duplicate(), assFormulaQuestion\duplicate(), assImagemapQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assLongMenu\duplicate(), assMatchingQuestion\duplicate(), assMultipleChoice\duplicate(), assNumeric\duplicate(), assOrderingHorizontal\duplicate(), assOrderingQuestion\duplicate(), assSingleChoice\duplicate(), assTextQuestion\duplicate(), assTextSubset\duplicate(), saveQuestionDataToDb(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::getOriginalId | ( | ) |
Definition at line 2373 of file class.assQuestion.php.
References $original_id.
Referenced by __get(), assMultipleChoice\syncImages(), assSingleChoice\syncImages(), assImagemapQuestion\syncWithOriginal(), assMultipleChoice\syncWithOriginal(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::getOutputType | ( | ) |
Gets the output type.
Reimplemented in assMultipleChoice, and assSingleChoice.
Definition at line 815 of file class.assQuestion.php.
References $outputType.
Referenced by __get().
Here is the caller graph for this function:| assQuestion::getOwner | ( | ) |
Gets the creator/owner ID of the assQuestion object.
Definition at line 875 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 2308 of file class.assQuestion.php.
References $page.
| assQuestion::getPoints | ( | ) |
Returns the maximum available points for the question.
Definition at line 3233 of file class.assQuestion.php.
References $points.
Referenced by __get(), assKprimChoice\calculateReachedPointsForSolution(), assFileUpload\calculateReachedPointsForSolution(), assOrderingHorizontal\calculateReachedPointsForSolution(), assOrderingQuestion\calculateReachedPointsForSolution(), assNumeric\calculateReachedPointsFromPreviewSession(), assFileUpload\getMaximumPoints(), assNumeric\getMaximumPoints(), assOrderingHorizontal\getMaximumPoints(), assOrderingQuestion\getMaximumPoints(), assTextSubset\isAnswerCorrect(), assJavaApplet\isComplete(), assLongMenu\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 4241 of file class.assQuestion.php.
References $prevent_rte_usage.
| assQuestion::getProcessLocker | ( | ) |
Definition at line 516 of file class.assQuestion.php.
References $processLocker.
Referenced by calculateResultsFromSolution(), persistWorkingState(), removeIntermediateSolution(), resetUsersAnswer(), assClozeTest\saveWorkingData(), assErrorText\saveWorkingData(), assFileUpload\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assOrderingHorizontal\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), and assTextSubset\saveWorkingData().
Here is the caller graph for this function:| assQuestion::getQuestion | ( | ) |
Gets the question string of the question object.
Definition at line 3668 of file class.assQuestion.php.
References $question.
Referenced by __get(), assFormulaQuestion\checkForDuplicateResults(), assFormulaQuestion\checkForDuplicateVariables(), assFormulaQuestion\getInitialVariableSolutionValues(), getRTETextWithMediaObjects(), assFormulaQuestion\hasRequiredVariableSolutionValues(), assOrderingQuestion\isComplete(), assFormulaQuestion\parseQuestionText(), saveQuestionDataToDb(), assFormulaQuestion\substituteVariables(), assClozeTest\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assLongMenu\toJSON(), assMatchingQuestion\toJSON(), assMultipleChoice\toJSON(), assOrderingHorizontal\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assTextQuestion\toJSON(), and assTextSubset\toJSON().
Here is the caller graph for this function:
|
protected |
Definition at line 383 of file class.assQuestion.php.
References $_POST.
Referenced by assFileUpload\isFileDeletionAction().
Here is the caller graph for this function:| assQuestion::getQuestionChangeListeners | ( | ) |
Definition at line 4562 of file class.assQuestion.php.
References $questionChangeListeners.
Referenced by notifyQuestionCreated(), notifyQuestionDeleted(), and notifyQuestionEdited().
Here is the caller graph for this function:
|
static |
Definition at line 5201 of file class.assQuestion.php.
References $ilDB, $pass, $query, $res, and $row.
Referenced by ilTestOutputGUI\handlePrimaryButton().
Here is the caller graph for this function:
|
abstract |
Returns the question type of the question.
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Referenced by fromXML(), getQuestionTypeID(), and toXML().
Here is the caller graph for this function:
|
static |
get question type for question id
note: please don't use $this in this class to allow static calls
Definition at line 1871 of file class.assQuestion.php.
References $data, $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 3700 of file class.assQuestion.php.
References $ilDB, $result, $row, 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 @access public |
Definition at line 1113 of file class.assQuestion.php.
References $pass, and getId().
Referenced by ilLOTestQuestionAdapter\updateQuestionResult().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 4975 of file class.assQuestion.php.
References $resultGateway.
|
protected |
Collects all text in the question which could contain media objects which were created with the Rich Text Editor.
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 3757 of file class.assQuestion.php.
References getId(), ilAssQuestionHintList\getListByQuestionId(), and getQuestion().
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 4289 of file class.assQuestion.php.
References $selfassessmenteditingmode.
Referenced by ilAssQuestionAuthoringFormGUI\addGenericAssessmentQuestionCommandButtons().
Here is the caller graph for this function:
|
protected |
Definition at line 4218 of file class.assQuestion.php.
Referenced by formatSAQuestion().
Here is the caller graph for this function:| assQuestion::getShuffle | ( | ) |
Gets the shuffle flag.
Definition at line 779 of file class.assQuestion.php.
References $shuffle.
Referenced by __get(), assClozeTest\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assLongMenu\toJSON(), assMultipleChoice\toJSON(), assSingleChoice\toJSON(), and assTextQuestion\toJSON().
Here is the caller graph for this function:| assQuestion::getShuffler | ( | ) |
Definition at line 492 of file class.assQuestion.php.
References $shuffler.
Referenced by assOrderingHorizontal\getRandomOrderingElements(), assOrderingQuestion\getShuffledOrderingElementList(), assMatchingQuestion\toJSON(), and assOrderingQuestion\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 @access public |
Definition at line 3260 of file class.assQuestion.php.
References _getSolutionMaxPass(), and getId().
Referenced by assClozeTest\calculateReachedPoints(), assErrorText\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assFlashQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assJavaApplet\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assOrderingHorizontal\calculateReachedPoints(), assOrderingQuestion\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assTextSubset\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:
|
protected |
| $solutionId | @global ilDBInterface $ilDB |
Definition at line 4700 of file class.assQuestion.php.
References $GLOBALS, $ilDB, $res, and $row.
Referenced by assFileUpload\saveWorkingData().
Here is the caller graph for this function:| assQuestion::getSolutionValues | ( | $active_id, | |
$pass = null, |
|||
$authorized = true |
|||
| ) |
Loads solutions of a given user from the database an returns it.
Reimplemented in assJavaApplet.
Definition at line 1739 of file class.assQuestion.php.
References $ilDB, $pass, $query, $result, $row, getId(), getSolutionMaxPass(), and getStep().
Referenced by assFormulaQuestion\calculateReachedPoints(), assOrderingQuestion\calculateReachedPoints(), deleteDummySolutionRecord(), duplicateIntermediateSolutionAuthorized(), forceExistingIntermediateSolution(), assOrderingQuestion\getOrderingElementListForSolutionOutput(), getTestOutputSolutions(), assFileUpload\getUserSolutionPreferingIntermediate(), getUserSolutionPreferingIntermediate(), assClozeTest\setExportDetailsXLS(), assErrorText\setExportDetailsXLS(), assFileUpload\setExportDetailsXLS(), assFormulaQuestion\setExportDetailsXLS(), assImagemapQuestion\setExportDetailsXLS(), assKprimChoice\setExportDetailsXLS(), assLongMenu\setExportDetailsXLS(), assMatchingQuestion\setExportDetailsXLS(), assMultipleChoice\setExportDetailsXLS(), assNumeric\setExportDetailsXLS(), assOrderingHorizontal\setExportDetailsXLS(), assOrderingQuestion\setExportDetailsXLS(), assSingleChoice\setExportDetailsXLS(), assTextQuestion\setExportDetailsXLS(), and assTextSubset\setExportDetailsXLS().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getStep | ( | ) |
Definition at line 4991 of file class.assQuestion.php.
References $step.
Referenced by calculateResultsFromSolution(), deleteSolutionRecordByValues(), getCurrentSolutionResultSet(), getSolutionValues(), assFormulaQuestion\lookupForExistingSolutions(), assLongMenu\lookupForExistingSolutions(), removeCurrentSolution(), assFormulaQuestion\removeExistingSolutions(), removeExistingSolutions(), removeResultRecord(), saveCurrentSolution(), assFormulaQuestion\saveWorkingData(), updateCurrentSolution(), and updateCurrentSolutionsAuthorization().
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 2713 of file class.assQuestion.php.
| assQuestion::getSuggestedSolutionOutput | ( | ) |
Definition at line 1006 of file class.assQuestion.php.
References $output, _getInternalLinkHref(), fixSvgToPng(), fixUnavailableSkinImageSources(), getSuggestedSolutionPathWeb(), ilUtil\prepareFormOutput(), prepareTextareaOutput(), ilWACSignedPath\setTokenMaxLifetimeInSeconds(), and ilWACSignedPath\signFile().
Here is the call graph for this function:| assQuestion::getSuggestedSolutionPath | ( | ) |
Returns the path for a suggested solution.
@access public
Definition at line 1604 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.
@access public
Definition at line 1673 of file class.assQuestion.php.
References 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 1072 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 2730 of file class.assQuestion.php.
References $title.
| assQuestion::getTestId | ( | ) |
Gets the test id of the assQuestion object.
Definition at line 791 of file class.assQuestion.php.
References $test_id.
Referenced by __get(), and resetUsersAnswer().
Here is the caller graph for this function:| assQuestion::getTestOutputSolutions | ( | $activeId, | |
| $pass | |||
| ) |
Reimplemented in assImagemapQuestion.
Definition at line 1713 of file class.assQuestion.php.
References $pass, getSolutionValues(), getTestPresentationConfig(), and getUserSolutionPreferingIntermediate().
Referenced by assOrderingQuestion\getSolutionOrderingElementListForTestOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getTestPresentationConfig | ( | ) |
Get the test question configuration (initialised once)
Definition at line 5324 of file class.assQuestion.php.
References $testQuestionConfigInstance, and buildTestPresentationConfig().
Referenced by getTestOutputSolutions(), ilTestPlayerAbstractGUI\initTestQuestionConfig(), assFileUpload\isFileReuseHandlingRequired(), and assImagemapQuestion\isReuseSolutionSelectionRequest().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::getTitle | ( | ) |
Gets the title string of the assQuestion object.
Definition at line 744 of file class.assQuestion.php.
References $title.
Referenced by __get(), getTitleFilenameCompliant(), assClozeTest\isComplete(), assOrderingQuestion\isComplete(), saveQuestionDataToDb(), assClozeTest\toJSON(), assErrorText\toJSON(), assImagemapQuestion\toJSON(), assKprimChoice\toJSON(), assLongMenu\toJSON(), assMatchingQuestion\toJSON(), assMultipleChoice\toJSON(), assOrderingHorizontal\toJSON(), assOrderingQuestion\toJSON(), assSingleChoice\toJSON(), assTextQuestion\toJSON(), and assTextSubset\toJSON().
Here is the caller graph for this function:| assQuestion::getTitleFilenameCompliant | ( | ) |
returns the object title prepared to be used as a filename
Definition at line 754 of file class.assQuestion.php.
References ilUtil\getASCIIFilename(), and getTitle().
Here is the call graph for this function:| assQuestion::getTotalAnswers | ( | ) |
get total number of answers
Definition at line 2125 of file class.assQuestion.php.
References _getTotalAnswers().
Here is the call graph for this function:| assQuestion::getUserSolutionPreferingIntermediate | ( | $active_id, | |
$pass = null |
|||
| ) |
Reimplemented in assFileUpload.
Definition at line 1725 of file class.assQuestion.php.
References $pass, and getSolutionValues().
Referenced by getTestOutputSolutions().
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
@access public
Definition at line 4543 of file class.assQuestion.php.
Referenced by isValidAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
Here is the caller graph for this function:
|
static |
Definition at line 4875 of file class.assQuestion.php.
Referenced by assImagemapQuestionGUI\buildSelectionParameter().
Here is the caller graph for this function:
|
static |
Definition at line 3909 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 3925 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 3996 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::intermediateSolutionExists | ( | $active_id, | |
| $pass | |||
| ) |
Definition at line 5032 of file class.assQuestion.php.
References $pass.
Referenced by assFileUpload\saveWorkingData().
Here is the caller graph for this function:| assQuestion::isAdditionalContentEditingModePageObject | ( | ) |
isser for additional "pageobject" content editing mode
@access public
Definition at line 4516 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:
|
static |
Definition at line 370 of file class.assQuestion.php.
Referenced by ilQtiMatImageSecurity\validateLabel().
Here is the caller graph for this function:
|
static |
Definition at line 342 of file class.assQuestion.php.
Referenced by ilQtiMatImageSecurity\validateContent().
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 assFileUpload, assKprimChoice, assMultipleChoice, assSingleChoice, and assTextQuestion.
Definition at line 4419 of file class.assQuestion.php.
Referenced by calculateResultsFromSolution().
Here is the caller graph for this function:| assQuestion::isAutosaveable | ( | ) |
Reimplemented in assFileUpload, assFlashQuestion, assImagemapQuestion, and assJavaApplet.
Definition at line 4441 of file class.assQuestion.php.
| assQuestion::isClone | ( | $question_id = "" | ) |
Checks whether the question is a clone of another question or not.
Definition at line 1833 of file class.assQuestion.php.
| assQuestion::isComplete | ( | ) |
Returns true, if a question is complete for use.
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 560 of file class.assQuestion.php.
Referenced by saveQuestionDataToDb(), and saveToDb().
Here is the caller graph for this function:
|
static |
Definition at line 3903 of file class.assQuestion.php.
References getGuiClassNameByQuestionType().
Here is the call graph for this function:
|
static |
Definition at line 2244 of file class.assQuestion.php.
References $file.
Referenced by assMatchingQuestion\copyImages().
Here is the caller graph for this function:
|
static |
Definition at line 337 of file class.assQuestion.php.
References $forcePassResultsUpdateEnabled.
| assQuestion::isHTML | ( | $a_text | ) |
Checks if a given string contains HTML or not.
| string | $a_text | Text which should be checked |
Definition at line 3487 of file class.assQuestion.php.
References ilUtil\isHTML().
Referenced by addQTIMaterial().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::isInUse | ( | $question_id = "" | ) |
Checks whether the question is in use or not.
Definition at line 1796 of file class.assQuestion.php.
References $ilDB, $result, $row, and getId().
Here is the call graph for this function:
|
protected |
| string | $postSubmissionFieldname |
Definition at line 400 of file class.assQuestion.php.
References $_POST.
Referenced by assFileUpload\isFileDeletionSubmitAvailable(), and assFileUpload\isFileReuseSubmitAvailable().
Here is the caller 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 assFileUpload, assKprimChoice, assSingleChoice, and assTextQuestion.
Definition at line 4436 of file class.assQuestion.php.
| assQuestion::isPreviewSolutionCorrect | ( | ilAssQuestionPreviewSession | $previewSession | ) |
Definition at line 3384 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
@access public
| string | $additionalContentEditingMode |
Definition at line 4528 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 @access public |
Definition at line 698 of file class.assQuestion.php.
References $key.
|
protected |
| ilAssSelfAssessmentMigrator | $migrator |
Definition at line 4261 of file class.assQuestion.php.
References ilAssSelfAssessmentMigrator\migrateToLmContent(), and setQuestion().
Referenced by migrateContentForLearningModule().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| ilAssSelfAssessmentMigrator | $migrator |
Reimplemented in assClozeTest, assKprimChoice, assLongMenu, assMultipleChoice, and assSingleChoice.
Definition at line 4269 of file class.assQuestion.php.
Referenced by migrateContentForLearningModule().
Here is the caller graph for this function:| assQuestion::loadFromDb | ( | $question_id | ) |
Loads the question from the database.
| integer | $question_id | A unique key which defines the question in the database @access public |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assLongMenu, assMatchingQuestion, assMultipleChoice, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, assTextSubset, and assKprimChoice.
Definition at line 2437 of file class.assQuestion.php.
References $data, $ilDB, $result, $row, ilRTE\_replaceMediaObjectImageSrc(), and getId().
Here is the call graph for this function:
|
protected |
| integer | $active_id | |
| string | $langVar |
Definition at line 468 of file class.assQuestion.php.
References $message, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), getId(), and logAction().
Referenced by resetUsersAnswer(), and assOrderingQuestion\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Logs an action into the Test&Assessment log.
| string | $logtext | The log text |
| int | string | $active_id | |
| int | string | $question_id | If given, saves the question id to the database |
Definition at line 1557 of file class.assQuestion.php.
References $GLOBALS, $original_id, ilObjAssessmentFolder\_addLog(), ilObjTest\_getObjectIDFromActiveID(), _getOriginalId(), and getId().
Referenced by _setReachedPoints(), calculateResultsFromSolution(), log(), assClozeTest\saveWorkingData(), assErrorText\saveWorkingData(), assFileUpload\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assOrderingHorizontal\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), and assTextSubset\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $active_id | |
| $pass |
Definition at line 436 of file class.assQuestion.php.
References ilObjTest\_getPass().
Referenced by ensureCurrentTestPass().
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)
@global ilDBInterface $ilDB
| integer | $originalQuestionId |
Definition at line 4343 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 |
@global ilDBInterface $ilDB
| integer | $questionId |
Definition at line 4321 of file class.assQuestion.php.
References $ilDB, $query, $res, and $row.
Referenced by ilObjTestGUI\copyAndLinkToQuestionpoolObject(), ilAssQuestionSkillAssignmentsGUI\isSyncOriginalPossibleAndAllowed(), and lookupOriginalParentObjId().
Here is the caller graph for this function:
|
static |
Definition at line 5235 of file class.assQuestion.php.
References $ilDB, $pass, $query, and $row.
Referenced by _isWorkedThrough().
Here is the caller graph for this function:
|
protected |
| $active_id |
Definition at line 446 of file class.assQuestion.php.
References $GLOBALS, $ilDB, $result, and $row.
Referenced by assFileUpload\removeIntermediateSolution(), and assFileUpload\saveWorkingData().
Here is the caller graph for this function:| assQuestion::migrateContentForLearningModule | ( | ilAssSelfAssessmentMigrator | $migrator | ) |
| ilAssSelfAssessmentMigrator | $migrator |
Definition at line 4249 of file class.assQuestion.php.
References getId(), lmMigrateQuestionTypeGenericContent(), lmMigrateQuestionTypeSpecificContent(), and saveToDb().
Referenced by ilAssSelfAssessmentQuestionFormatter\prepareQuestionForLearningModule().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 5178 of file class.assQuestion.php.
| 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 @access public |
Definition at line 1583 of file class.assQuestion.php.
References $file, $name, and ilUtil\createDirectory().
Here is the call graph for this function:
|
private |
Definition at line 4567 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 4581 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 4574 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 2673 of file class.assQuestion.php.
References copySuggestedSolutionFiles(), duplicateQuestionHints(), and duplicateSkillAssignments().
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 2646 of file class.assQuestion.php.
References duplicateQuestionHints(), duplicateSkillAssignments(), and duplicateSuggestedSolutionFiles().
Here is the call graph for this function:
|
static |
Definition at line 3073 of file class.assQuestion.php.
References $ilDB, $query, $res, and $row.
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 @access public |
Definition at line 1855 of file class.assQuestion.php.
|
final |
persists the preview state for current user and question
Definition at line 1318 of file class.assQuestion.php.
References savePreviewData(), and validateSolutionSubmit().
Here is the call graph for this function:
|
final |
persists the working state for current testactive and testpass
@final @access public
| integer | $active_id | Active id of the user |
| integer | $pass | Test pass |
Definition at line 1285 of file class.assQuestion.php.
References $pass, ilObjTest\_getPass(), calculateResultsFromSolution(), getProcessLocker(), removeIntermediateSolution(), reworkWorkingData(), saveWorkingData(), and validateSolutionSubmit().
Here is the call graph for this function:| assQuestion::prepareTextareaOutput | ( | $txt_output, | |
$prepare_for_latex_output = false, |
|||
$omitNl2BrWhenTextArea = false |
|||
| ) |
Prepares a string for a text area output in tests.
| string | $txt_output | String which should be prepared for output @access public |
Definition at line 3498 of file class.assQuestion.php.
References ilUtil\prepareTextareaOutput().
Referenced by getSuggestedSolutionOutput(), and assClozeTest\updateClozeTextFromGaps().
Here is the call graph for this function:
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 3511 of file class.assQuestion.php.
| 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 572 of file class.assQuestion.php.
| assQuestion::removeCurrentSolution | ( | $active_id, | |
| $pass, | |||
$authorized = true |
|||
| ) |
| int | $active_id | |
| int | $pass | |
| bool | true | $authorized | @global ilDBInterface $ilDB |
Definition at line 4739 of file class.assQuestion.php.
References $ilDB, $query, getId(), and getStep().
Referenced by removeIntermediateSolution(), assClozeTest\saveWorkingData(), assErrorText\saveWorkingData(), assFileUpload\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assOrderingHorizontal\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assTextQuestion\saveWorkingData(), and assTextSubset\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::removeExistingSolutions | ( | $activeId, | |
| $pass | |||
| ) |
Reimplemented in assFormulaQuestion.
Definition at line 5118 of file class.assQuestion.php.
References $ilDB, $query, getId(), and getStep().
Referenced by resetUsersAnswer().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::removeIntermediateSolution | ( | $active_id, | |
| $pass | |||
| ) |
| int | $active_id | |
| int | $pass | |
| bool | true | $authorized | @global ilDBInterface $ilDB |
Reimplemented in assFileUpload.
Definition at line 4724 of file class.assQuestion.php.
References $pass, getProcessLocker(), and removeCurrentSolution().
Referenced by persistWorkingState().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::removeResultRecord | ( | $activeId, | |
| $pass | |||
| ) |
Definition at line 5156 of file class.assQuestion.php.
References $ilDB, $query, getId(), and getStep().
Referenced by resetUsersAnswer().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
| $solutionId | @global ilDBInterface $ilDB |
Definition at line 4682 of file class.assQuestion.php.
References $ilDB.
Referenced by deleteDummySolutionRecord(), assFileUpload\saveWorkingData(), and assSingleChoice\saveWorkingData().
Here is the caller graph for this function:| assQuestion::requiresJsSwitch | ( | ) |
Definition at line 836 of file class.assQuestion.php.
References supportsJavascriptOutput(), and supportsNonJsOutput().
Here is the call graph for this function:
|
static |
Definition at line 2632 of file class.assQuestion.php.
References $GLOBALS, and $query.
Referenced by assOrderingQuestionImport\fromXML(), and ilTestRandomQuestionSetPoolDeriver\updateTestQuestionStage().
Here is the caller graph for this function:| assQuestion::resetUsersAnswer | ( | $activeId, | |
| $pass | |||
| ) |
Definition at line 5140 of file class.assQuestion.php.
References $pass, areObligationsToBeConsidered(), getProcessLocker(), getTestId(), log(), removeExistingSolutions(), and removeResultRecord().
Here is the call graph for this function:
|
abstractprotected |
Reworks the allready saved working data if neccessary.
| integer | $active_id | |
| integer | $pass | |
| boolean | $obligationsAnswered | |
| boolean | $authorized |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Referenced by persistWorkingState().
Here is the caller graph for this function:| assQuestion::saveCurrentSolution | ( | $active_id, | |
| $pass, | |||
| $value1, | |||
| $value2, | |||
$authorized = true, |
|||
$tstamp = null |
|||
| ) |
| int | $active_id | |
| int | $pass | |
| mixed | $value1 | |
| mixed | $value2 | |
| bool | true | $authorized | |
| int | null | $tstamp | @global ilDBInterface $ilDB |
Definition at line 4787 of file class.assQuestion.php.
References $ilDB, $pass, getId(), and getStep().
Referenced by duplicateIntermediateSolutionAuthorized(), forceExistingIntermediateSolution(), assClozeTest\saveWorkingData(), assErrorText\saveWorkingData(), assFileUpload\saveWorkingData(), assFormulaQuestion\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assLongMenu\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assOrderingHorizontal\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assSingleChoice\saveWorkingData(), assTextQuestion\saveWorkingData(), and assTextSubset\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 2621 of file class.assQuestion.php.
References $GLOBALS, and $query.
Referenced by assOrderingQuestionImport\fromXML(), setNewOriginalId(), and ilTestRandomQuestionSetPoolDeriver\updateTestQuestionStage().
Here is the caller graph for this function:
|
protected |
Reimplemented in assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assLongMenu, assMatchingQuestion, assNumeric, assOrderingQuestion, and assSingleChoice.
Definition at line 1349 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 2526 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(), setId(), and sprintf.
Referenced by assClozeTest\saveToDb(), assErrorText\saveToDb(), assFileUpload\saveToDb(), assFlashQuestion\saveToDb(), assFormulaQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assJavaApplet\saveToDb(), assLongMenu\saveToDb(), assMatchingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assNumeric\saveToDb(), assOrderingHorizontal\saveToDb(), assOrderingQuestion\saveToDb(), assTextQuestion\saveToDb(), assTextSubset\saveToDb(), and assKprimChoice\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 | @access public |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assTextQuestion, assTextSubset, and assKprimChoice.
Definition at line 2585 of file class.assQuestion.php.
References $ilDB, ilObjQuestionPool\_updateQuestionCount(), cleanupMediaObjectUsage(), getOwner(), isComplete(), and notifyQuestionEdited().
Referenced by migrateContentForLearningModule(), and 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.
@abstract @access public
| integer | $active_id | Active id of the user |
| integer | $pass | Test pass |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assLongMenu, assMatchingQuestion, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Referenced by persistWorkingState().
Here is the caller graph for this function:| assQuestion::setAdditionalContentEditingMode | ( | $additinalContentEditingMode | ) |
setter for additional content editing mode for this question
@access public
Definition at line 4500 of file class.assQuestion.php.
References $additinalContentEditingMode, and getValidAdditionalContentEditingModes().
Referenced by assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), and assKprimChoice\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 @access public |
Definition at line 717 of file class.assQuestion.php.
References $author.
Referenced by __set(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), and assKprimChoice\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 @access public |
Definition at line 627 of file class.assQuestion.php.
References $comment, and comment().
Referenced by __set(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), and assKprimChoice\loadFromDb().
Here is the call graph for this function:
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 4299 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 @access public |
Definition at line 671 of file class.assQuestion.php.
Referenced by __construct(), __set(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), and assTextSubset\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 682 of file class.assQuestion.php.
Referenced by assKprimChoice\loadFromDb().
Here is the caller graph for this function:| assQuestion::setExportDetailsXLS | ( | $worksheet, | |
| $startrow, | |||
| $active_id, | |||
| $pass | |||
| ) |
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 |
Reimplemented in assClozeTest, assErrorText, assFileUpload, assFlashQuestion, assFormulaQuestion, assImagemapQuestion, assJavaApplet, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assNumeric, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 4038 of file class.assQuestion.php.
References $worksheet.
| assQuestion::setExportImagePath | ( | $a_path | ) |
Definition at line 4179 of file class.assQuestion.php.
| assQuestion::setExternalId | ( | $external_id | ) |
| string | $external_id |
Definition at line 907 of file class.assQuestion.php.
References $external_id.
Referenced by __construct().
Here is the caller graph for this function:
|
static |
Definition at line 332 of file class.assQuestion.php.
References $forcePassResultsUpdateEnabled.
| assQuestion::setId | ( | $id = -1 | ) |
Sets the id of the assQuestion object.
| integer | $id | A unique integer value @access public |
Reimplemented in assFormulaQuestion.
Definition at line 603 of file class.assQuestion.php.
References $id.
Referenced by __set(), createNewQuestion(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assKprimChoice\loadFromDb(), saveQuestionDataToDb(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::setLastChange | ( | $lastChange | ) |
Reimplemented in assMultipleChoice.
Definition at line 4618 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 2616 of file class.assQuestion.php.
References getId(), and saveOriginalId().
Here is the call graph for this function:| assQuestion::setNrOfTries | ( | $a_nr_of_tries | ) |
Definition at line 4174 of file class.assQuestion.php.
Referenced by assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), and assKprimChoice\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 @access public |
Definition at line 899 of file class.assQuestion.php.
References $obj_id.
Referenced by __set(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assKprimChoice\loadFromDb(), and syncWithOriginal().
Here is the caller graph for this function:| assQuestion::setObligationsToBeConsidered | ( | $obligationsToBeConsidered | ) |
| boolean | $obligationsToBeConsidered |
Definition at line 5293 of file class.assQuestion.php.
References $obligationsToBeConsidered.
| assQuestion::setOriginalId | ( | $original_id | ) |
Definition at line 2368 of file class.assQuestion.php.
References $original_id.
Referenced by __set(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assKprimChoice\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 @access public |
Reimplemented in assMultipleChoice, and assSingleChoice.
Definition at line 639 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 @access public |
Definition at line 732 of file class.assQuestion.php.
References $owner.
Referenced by __set(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), and assKprimChoice\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 @access public |
Definition at line 3249 of file class.assQuestion.php.
Referenced by assKprimChoice\__construct(), __set(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), assKprimChoice\loadFromDb(), and assLongMenu\saveAnswerSpecificDataToDb().
Here is the caller graph for this function:| assQuestion::setPreventRteUsage | ( | $a_val | ) |
Set prevent rte usage.
| boolean | prevent rte usage |
Definition at line 4231 of file class.assQuestion.php.
| assQuestion::setProcessLocker | ( | $processLocker | ) |
| \ilAssQuestionProcessLocker | $processLocker |
Definition at line 508 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 @access public |
Definition at line 3680 of file class.assQuestion.php.
References $question.
Referenced by assClozeTest\__construct(), __construct(), __set(), lmMigrateQuestionTypeGenericContent(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), and assKprimChoice\loadFromDb().
Here is the caller graph for this function:
|
static |
| \ilObjTestGateway | $resultGateway |
Definition at line 4967 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 4279 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 @access public |
Reimplemented in assMatchingQuestion.
Definition at line 652 of file class.assQuestion.php.
References $shuffle.
Referenced by __set(), assMultipleChoice\loadFromDb(), assSingleChoice\loadFromDb(), and assTextQuestion\loadFromDb().
Here is the caller graph for this function:| assQuestion::setShuffler | ( | ilArrayElementShuffler | $shuffler | ) |
| ilArrayElementShuffler | $shuffler |
Definition at line 500 of file class.assQuestion.php.
References $shuffler.
Referenced by assMatchingQuestion\toJSON().
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 @access public |
Definition at line 2750 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 @access public |
Definition at line 615 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 @access public |
Definition at line 591 of file class.assQuestion.php.
References $title.
Referenced by __set(), assClozeTest\loadFromDb(), assErrorText\loadFromDb(), assFileUpload\loadFromDb(), assFlashQuestion\loadFromDb(), assFormulaQuestion\loadFromDb(), assImagemapQuestion\loadFromDb(), assJavaApplet\loadFromDb(), assLongMenu\loadFromDb(), assMatchingQuestion\loadFromDb(), assMultipleChoice\loadFromDb(), assOrderingHorizontal\loadFromDb(), assOrderingQuestion\loadFromDb(), assSingleChoice\loadFromDb(), assTextQuestion\loadFromDb(), assTextSubset\loadFromDb(), and assKprimChoice\loadFromDb().
Here is the caller graph for this function:
|
static |
| $time1 | |
| $time2 |
Definition at line 5001 of file class.assQuestion.php.
References $time, and 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, assOrderingHorizontal, and assOrderingQuestion.
Definition at line 826 of file class.assQuestion.php.
Referenced by requiresJsSwitch().
Here is the caller graph for this function:| assQuestion::supportsNonJsOutput | ( | ) |
Reimplemented in assMatchingQuestion, assOrderingHorizontal, and assOrderingQuestion.
Definition at line 831 of file class.assQuestion.php.
Referenced by requiresJsSwitch().
Here is the caller graph for this function:| assQuestion::syncSkillAssignments | ( | $srcParentId, | |
| $srcQuestionId, | |||
| $trgParentId, | |||
| $trgQuestionId | |||
| ) |
Definition at line 4388 of file class.assQuestion.php.
References $ilDB, and duplicateSkillAssignments().
Here is the call graph for this function:
|
protected |
Syncs the files of a suggested solution if the question is synced.
Definition at line 2797 of file class.assQuestion.php.
References $filename, $ilLog, $index, ilUtil\delDir(), getSuggestedSolutionPath(), and ilUtil\makeDirParents().
Here is the call graph for this function:| assQuestion::syncWithOriginal | ( | ) |
Reimplemented in assImagemapQuestion, and assMultipleChoice.
Definition at line 3091 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 2270 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, assErrorText, assImagemapQuestion, assKprimChoice, assLongMenu, assMatchingQuestion, assMultipleChoice, assOrderingHorizontal, assOrderingQuestion, assSingleChoice, assTextQuestion, and assTextSubset.
Definition at line 5024 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 assErrorText, assFileUpload, assFlashQuestion, and assOrderingHorizontal.
Definition at line 546 of file class.assQuestion.php.
References getQuestionType().
Here is the call graph for this function:| assQuestion::updateCurrentSolution | ( | $solutionId, | |
| $value1, | |||
| $value2, | |||
$authorized = true |
|||
| ) |
| int | $active_id | |
| int | $pass | |
| mixed | $value1 | |
| mixed | $value2 | |
| bool | true | $authorized | @global ilDBInterface $ilDB |
Definition at line 4822 of file class.assQuestion.php.
References $ilDB, and getStep().
Referenced by assSingleChoice\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::updateCurrentSolutionsAuthorization | ( | $activeId, | |
| $pass, | |||
| $authorized, | |||
$keepTime = false |
|||
| ) |
Definition at line 4843 of file class.assQuestion.php.
References $ilDB, $pass, getId(), and getStep().
Referenced by forceExistingIntermediateSolution(), assFileUpload\saveWorkingData(), and assImagemapQuestion\saveWorkingData().
Here is the call graph for this function:
Here is the caller graph for this function:| assQuestion::updateTimestamp | ( | ) |
Definition at line 5298 of file class.assQuestion.php.
References $ilDB, and getId().
Here is the call graph for this function:| assQuestion::validateSolutionSubmit | ( | ) |
Reimplemented in assClozeTest, assFormulaQuestion, assMultipleChoice, assNumeric, and assOrderingQuestion.
Definition at line 1324 of file class.assQuestion.php.
Referenced by persistPreviewState(), and persistWorkingState().
Here is the caller graph for this function:
|
private |
Definition at line 201 of file class.assQuestion.php.
Referenced by getAdditionalContentEditingMode(), and setAdditionalContentEditingMode().
|
staticprotected |
Definition at line 32 of file class.assQuestion.php.
|
staticprotected |
Definition at line 26 of file class.assQuestion.php.
|
staticprotected |
Definition at line 272 of file class.assQuestion.php.
|
private |
Associative array to store properties.
Definition at line 173 of file class.assQuestion.php.
|
protected |
Definition at line 71 of file class.assQuestion.php.
Referenced by assClozeTest\__construct(), assFileUpload\__construct(), assFlashQuestion\__construct(), assFormulaQuestion\__construct(), assLongMenu\__construct(), assNumeric\__construct(), assOrderingHorizontal\__construct(), __construct(), assTextQuestion\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assJavaApplet\__construct(), assMatchingQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), assClozeTest\duplicate(), assErrorText\duplicate(), assFileUpload\duplicate(), assFlashQuestion\duplicate(), assFormulaQuestion\duplicate(), assImagemapQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assLongMenu\duplicate(), assMatchingQuestion\duplicate(), assMultipleChoice\duplicate(), assNumeric\duplicate(), assOrderingHorizontal\duplicate(), assOrderingQuestion\duplicate(), assSingleChoice\duplicate(), assTextQuestion\duplicate(), assTextSubset\duplicate(), getAuthor(), and setAuthor().
|
protected |
Definition at line 57 of file class.assQuestion.php.
Referenced by assClozeTest\__construct(), assFileUpload\__construct(), assFlashQuestion\__construct(), assFormulaQuestion\__construct(), assLongMenu\__construct(), assNumeric\__construct(), assOrderingHorizontal\__construct(), __construct(), assTextQuestion\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assJavaApplet\__construct(), assMatchingQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), getComment(), and setComment().
|
protected |
Definition at line 135 of file class.assQuestion.php.
| assQuestion::$defaultnroftries = 0 |
Definition at line 229 of file class.assQuestion.php.
Referenced by getDefaultNrOfTries().
|
protected |
Definition at line 92 of file class.assQuestion.php.
Referenced by getEstimatedWorkingTime().
|
private |
(Web) Path to images
Definition at line 178 of file class.assQuestion.php.
Referenced by getImagePathWeb().
|
protected |
Definition at line 184 of file class.assQuestion.php.
Referenced by getExternalId(), and setExternalId().
| assQuestion::$feedbackOBJ = null |
Definition at line 208 of file class.assQuestion.php.
|
staticprotected |
Definition at line 330 of file class.assQuestion.php.
Referenced by isForcePassResultUpdateEnabled(), and setForcePassResultUpdateEnabled().
|
protected |
Definition at line 43 of file class.assQuestion.php.
Referenced by assFormulaQuestion\addResultUnits(), assClozeTest\createNewOriginalFromThisDuplicate(), assErrorText\createNewOriginalFromThisDuplicate(), assFileUpload\createNewOriginalFromThisDuplicate(), assFlashQuestion\createNewOriginalFromThisDuplicate(), assFormulaQuestion\createNewOriginalFromThisDuplicate(), assImagemapQuestion\createNewOriginalFromThisDuplicate(), assJavaApplet\createNewOriginalFromThisDuplicate(), assKprimChoice\createNewOriginalFromThisDuplicate(), assLongMenu\createNewOriginalFromThisDuplicate(), assMatchingQuestion\createNewOriginalFromThisDuplicate(), assMultipleChoice\createNewOriginalFromThisDuplicate(), assNumeric\createNewOriginalFromThisDuplicate(), assOrderingHorizontal\createNewOriginalFromThisDuplicate(), assOrderingQuestion\createNewOriginalFromThisDuplicate(), assSingleChoice\createNewOriginalFromThisDuplicate(), assTextQuestion\createNewOriginalFromThisDuplicate(), assTextSubset\createNewOriginalFromThisDuplicate(), getId(), getImagePath(), isClone(), assImagemapQuestion\setExportDetailsXLS(), assKprimChoice\setExportDetailsXLS(), assMultipleChoice\setExportDetailsXLS(), assSingleChoice\setExportDetailsXLS(), assFormulaQuestion\setId(), setId(), setTestId(), and syncWithOriginal().
|
protected |
Definition at line 120 of file class.assQuestion.php.
Referenced by __construct(), and __get().
|
staticprotected |
Definition at line 2378 of file class.assQuestion.php.
|
protected |
Definition at line 253 of file class.assQuestion.php.
Referenced by getLastChange(), and setLastChange().
|
protected |
Definition at line 130 of file class.assQuestion.php.
Referenced by __construct(), _getQuestionTypeName(), _instantiateQuestion(), _setReachedPoints(), assFileUpload\deliverFileUploadZIPFile(), assKprimChoice\getAnswerTypeSelectOptions(), assKprimChoice\getFalseOptionLabelTranslation(), assKprimChoice\getInstructionTextTranslation(), assKprimChoice\getTrueOptionLabelTranslation(), assKprimChoice\getValidOptionLabelsTranslated(), instantiateQuestionGUI(), and assMatchingQuestion\toJSON().
|
private |
Number of tries.
Definition at line 168 of file class.assQuestion.php.
Referenced by getNrOfTries().
|
protected |
Definition at line 113 of file class.assQuestion.php.
Referenced by createNewQuestion(), delete(), getImagePath(), getObjId(), and setObjId().
|
private |
Definition at line 263 of file class.assQuestion.php.
Referenced by areObligationsToBeConsidered(), and setObligationsToBeConsidered().
|
protected |
Definition at line 156 of file class.assQuestion.php.
Referenced by assClozeTest\copyObject(), assErrorText\copyObject(), assFileUpload\copyObject(), assFlashQuestion\copyObject(), assFormulaQuestion\copyObject(), assImagemapQuestion\copyObject(), assJavaApplet\copyObject(), assKprimChoice\copyObject(), assLongMenu\copyObject(), assMatchingQuestion\copyObject(), assMultipleChoice\copyObject(), assNumeric\copyObject(), assOrderingHorizontal\copyObject(), assOrderingQuestion\copyObject(), assSingleChoice\copyObject(), assTextQuestion\copyObject(), assTextSubset\copyObject(), assLongMenu\delete(), assClozeTest\duplicate(), assErrorText\duplicate(), assFileUpload\duplicate(), assFlashQuestion\duplicate(), assFormulaQuestion\duplicate(), assImagemapQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assLongMenu\duplicate(), assMatchingQuestion\duplicate(), assMultipleChoice\duplicate(), assNumeric\duplicate(), assOrderingHorizontal\duplicate(), assOrderingQuestion\duplicate(), assSingleChoice\duplicate(), assTextQuestion\duplicate(), assTextSubset\duplicate(), assTextQuestion\duplicateAnswers(), getOriginalId(), logAction(), saveQuestionDataToDb(), assClozeTest\saveToDb(), assErrorText\saveToDb(), assFileUpload\saveToDb(), assFlashQuestion\saveToDb(), assFormulaQuestion\saveToDb(), assImagemapQuestion\saveToDb(), assJavaApplet\saveToDb(), assLongMenu\saveToDb(), assMatchingQuestion\saveToDb(), assMultipleChoice\saveToDb(), assNumeric\saveToDb(), assOrderingHorizontal\saveToDb(), assOrderingQuestion\saveToDb(), assTextQuestion\saveToDb(), assTextSubset\saveToDb(), and setOriginalId().
|
protected |
Definition at line 142 of file class.assQuestion.php.
Referenced by getOutputType(), and setOutputType().
|
protected |
Definition at line 64 of file class.assQuestion.php.
Referenced by assClozeTest\__construct(), assFileUpload\__construct(), assFlashQuestion\__construct(), assFormulaQuestion\__construct(), assLongMenu\__construct(), assNumeric\__construct(), assOrderingHorizontal\__construct(), __construct(), assTextQuestion\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assJavaApplet\__construct(), assMatchingQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), assClozeTest\duplicate(), assErrorText\duplicate(), assFileUpload\duplicate(), assFlashQuestion\duplicate(), assFormulaQuestion\duplicate(), assImagemapQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assLongMenu\duplicate(), assMatchingQuestion\duplicate(), assMultipleChoice\duplicate(), assNumeric\duplicate(), assOrderingHorizontal\duplicate(), assOrderingQuestion\duplicate(), assSingleChoice\duplicate(), assTextQuestion\duplicate(), assTextSubset\duplicate(), getOwner(), and setOwner().
|
protected |
Definition at line 163 of file class.assQuestion.php.
Referenced by __get(), copyPageOfQuestion(), deletePageOfQuestion(), and getPageOfQuestion().
|
protected |
Definition at line 85 of file class.assQuestion.php.
Referenced by _getMaximumPoints(), _getReachedPoints(), _isWorkedThrough(), _setReachedPoints(), assSingleChoice\addAnswer(), assImagemapQuestion\addAnswer(), assMultipleChoice\addAnswer(), assTextQuestion\addAnswer(), assTextSubset\addAnswer(), assErrorText\addErrorData(), assMatchingQuestion\addMatchingPair(), adjustReachedPointsByScoringOptions(), assClozeTest\calculateCombinationResult(), assErrorText\calculateReachedPoints(), assFileUpload\calculateReachedPoints(), assFlashQuestion\calculateReachedPoints(), assFormulaQuestion\calculateReachedPoints(), assImagemapQuestion\calculateReachedPoints(), assJavaApplet\calculateReachedPoints(), assKprimChoice\calculateReachedPoints(), assLongMenu\calculateReachedPoints(), assMatchingQuestion\calculateReachedPoints(), assMultipleChoice\calculateReachedPoints(), assOrderingHorizontal\calculateReachedPoints(), assSingleChoice\calculateReachedPoints(), assTextQuestion\calculateReachedPoints(), assTextSubset\calculateReachedPoints(), assTextSubset\calculateReachedPointsForSolution(), assImagemapQuestion\calculateReachedPointsForSolution(), assMatchingQuestion\calculateReachedPointsForSolution(), assKprimChoice\calculateReachedPointsForSolution(), assLongMenu\calculateReachedPointsForSolution(), assMultipleChoice\calculateReachedPointsForSolution(), assTextQuestion\calculateReachedPointsForSolution(), assClozeTest\calculateReachedPointsForSolution(), assOrderingHorizontal\calculateReachedPointsForSolution(), assFlashQuestion\calculateReachedPointsFromPreviewSession(), assFormulaQuestion\calculateReachedPointsFromPreviewSession(), assJavaApplet\calculateReachedPointsFromPreviewSession(), assNumeric\calculateReachedPointsFromPreviewSession(), assSingleChoice\calculateReachedPointsFromPreviewSession(), assLongMenu\checkQuestionCustomPart(), ensureNonNegativePoints(), assErrorText\getBestSelection(), assClozeTest\getMaximumGapPoints(), assClozeTest\getMaximumPoints(), assFlashQuestion\getMaximumPoints(), assFormulaQuestion\getMaximumPoints(), assImagemapQuestion\getMaximumPoints(), assLongMenu\getMaximumPoints(), assMatchingQuestion\getMaximumPoints(), assMultipleChoice\getMaximumPoints(), getMaximumPoints(), assSingleChoice\getMaximumPoints(), assTextQuestion\getMaximumPoints(), assTextSubset\getMaximumPoints(), assTextQuestion\getMinimumPoints(), getPoints(), assLongMenu\getPointsForGap(), assErrorText\getPointsForSelectedPositions(), assJavaApplet\getUserQuestionResult(), assLongMenu\getUserQuestionResult(), assFileUpload\handleSubmission(), assMatchingQuestion\insertMatchingPair(), assLongMenu\saveAnswerSpecificDataToDb(), assErrorText\setErrorData(), assClozeTest\setGapAnswerPoints(), and assTextQuestion\setReachedPoints().
| assQuestion::$prevent_rte_usage = false |
Definition at line 215 of file class.assQuestion.php.
Referenced by getPreventRteUsage().
|
protected |
Definition at line 239 of file class.assQuestion.php.
Referenced by _updateTestResultCache(), getProcessLocker(), and setProcessLocker().
|
protected |
Definition at line 78 of file class.assQuestion.php.
Referenced by assClozeTest\__construct(), assFileUpload\__construct(), assFlashQuestion\__construct(), assFormulaQuestion\__construct(), assLongMenu\__construct(), assNumeric\__construct(), assOrderingHorizontal\__construct(), __construct(), assTextQuestion\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assJavaApplet\__construct(), assMatchingQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), _getSuggestedSolutionOutput(), _instantiateQuestion(), assKprimChoice\beforeSyncWithOriginal(), getQuestion(), and setQuestion().
| assQuestion::$questionActionCmd = 'handleQuestionAction' |
Definition at line 241 of file class.assQuestion.php.
|
protected |
Definition at line 234 of file class.assQuestion.php.
Referenced by getQuestionChangeListeners().
|
staticprivate |
Definition at line 246 of file class.assQuestion.php.
Referenced by getResultGateway(), and setResultGateway().
| assQuestion::$selfassessmenteditingmode = false |
Definition at line 222 of file class.assQuestion.php.
Referenced by getSelfAssessmentEditingMode().
|
protected |
Definition at line 99 of file class.assQuestion.php.
Referenced by getShuffle(), assMultipleChoice\loadFromDb(), assSingleChoice\loadFromDb(), assClozeTest\setGapShuffle(), assMatchingQuestion\setShuffle(), and setShuffle().
|
protected |
Definition at line 258 of file class.assQuestion.php.
Referenced by getShuffler(), and setShuffler().
|
protected |
Definition at line 251 of file class.assQuestion.php.
|
protected |
Definition at line 149 of file class.assQuestion.php.
Referenced by getSuggestedSolutions().
|
protected |
Definition at line 106 of file class.assQuestion.php.
Referenced by _questionExistsInTest(), assFileUpload\deleteUploadedFiles(), assFileUpload\deliverFileUploadZIPFile(), getTestId(), assFileUpload\getUploadedFilesForWeb(), assFileUpload\hasFileUploads(), assFileUpload\removeIntermediateSolution(), and assFileUpload\saveWorkingData().
|
protected |
Definition at line 269 of file class.assQuestion.php.
|
private |
Definition at line 5318 of file class.assQuestion.php.
Referenced by getTestPresentationConfig().
|
protected |
Definition at line 50 of file class.assQuestion.php.
Referenced by assClozeTest\__construct(), assFileUpload\__construct(), assFlashQuestion\__construct(), assFormulaQuestion\__construct(), assLongMenu\__construct(), assNumeric\__construct(), assOrderingHorizontal\__construct(), __construct(), assTextQuestion\__construct(), assTextSubset\__construct(), assImagemapQuestion\__construct(), assJavaApplet\__construct(), assMatchingQuestion\__construct(), assOrderingQuestion\__construct(), assMultipleChoice\__construct(), assSingleChoice\__construct(), assErrorText\__construct(), assKprimChoice\__construct(), assClozeTest\copyObject(), assErrorText\copyObject(), assFileUpload\copyObject(), assFlashQuestion\copyObject(), assFormulaQuestion\copyObject(), assImagemapQuestion\copyObject(), assJavaApplet\copyObject(), assKprimChoice\copyObject(), assLongMenu\copyObject(), assMatchingQuestion\copyObject(), assMultipleChoice\copyObject(), assNumeric\copyObject(), assOrderingHorizontal\copyObject(), assOrderingQuestion\copyObject(), assSingleChoice\copyObject(), assTextQuestion\copyObject(), assTextSubset\copyObject(), assClozeTest\duplicate(), assErrorText\duplicate(), assFileUpload\duplicate(), assFlashQuestion\duplicate(), assFormulaQuestion\duplicate(), assImagemapQuestion\duplicate(), assJavaApplet\duplicate(), assKprimChoice\duplicate(), assLongMenu\duplicate(), assMatchingQuestion\duplicate(), assMultipleChoice\duplicate(), assNumeric\duplicate(), assOrderingHorizontal\duplicate(), assOrderingQuestion\duplicate(), assSingleChoice\duplicate(), assTextQuestion\duplicate(), assTextSubset\duplicate(), getSuggestedSolutionTitle(), getTitle(), questionTitleExists(), and setTitle().
|
protected |
Definition at line 125 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 189 of file class.assQuestion.php.
Referenced by assClozeTestGUI\addBasicQuestionFormProperties(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilObjQuestionPoolGUI\createQuestionForTestObject(), ilObjTestGUI\createQuestionObject(), ilObjQuestionPoolGUI\createQuestionObject(), ilPCQuestionGUI\edit(), assQuestionImport\fetchAdditionalContentEditingModeInformation(), ilTestExpressPageObjectGUI\handleToolbarCommand(), ilPCQuestionGUI\insert(), assClozeTestGUI\populateQuestionSpecificFormPart(), and assLongMenuGUI\populateQuestionSpecificFormPart().
| const assQuestion::ADDITIONAL_CONTENT_EDITING_MODE_PAGE_OBJECT = 'pageobject' |
constant for additional content editing mode "pageobject"
Definition at line 194 of file class.assQuestion.php.
Referenced by assQuestionGUI\addBasicQuestionFormProperties(), ilTestExpressPageObjectGUI\addQuestion(), ilObjTestGUI\addQuestionObject(), ilObjQuestionPoolGUI\buildCreateQuestionForm(), ilObjTestGUI\createQuestionObject(), ilPCQuestionGUI\insert(), and isAdditionalContentEditingModePageObject().
| const assQuestion::IMG_MIME_TYPE_GIF = 'image/gif' |
Definition at line 24 of file class.assQuestion.php.
| const assQuestion::IMG_MIME_TYPE_JPG = 'image/jpeg' |
Definition at line 22 of file class.assQuestion.php.
| const assQuestion::IMG_MIME_TYPE_PNG = 'image/png' |
Definition at line 23 of file class.assQuestion.php.
| const assQuestion::KEY_VALUES_IMPLOSION_SEPARATOR = ':' |
Definition at line 4870 of file class.assQuestion.php.
Referenced by getKeyValuesImplosionSeparator().