ILIAS
eassessment Revision 61809
|
Public Member Functions | |
ilObjTest ($a_id=0, $a_call_by_reference=true) | |
Constructor public. | |
create ($a_upload=false) | |
create test object | |
update () | |
update object data | |
createReference () | |
Creates a database reference id for the object (saves the object to the database and creates a reference id in the database) | |
read ($a_force_db=false) | |
read object data from db into object | |
delete () | |
delete object and all related data | |
deleteTest () | |
Deletes the test and all related objects, files and database entries. | |
initDefaultRoles () | |
init default roles settings | |
notify ($a_event, $a_ref_id, $a_parent_non_rbac_id, $a_node_id, $a_params=0) | |
notifys an object about an event occured Based on the event happend, each object may decide how it reacts. | |
createExportDirectory () | |
creates data directory for export files (data_dir/tst_data/tst_<id>/export, depending on data directory that is set in ILIAS setup/ini) | |
getExportDirectory () | |
Get the location of the export directory for the test. | |
getExportFiles ($dir) | |
Get a list of the already exported files in the export directory. | |
_createImportDirectory () | |
creates data directory for import files (data_dir/tst_data/tst_<id>/import, depending on data directory that is set in ILIAS setup/ini) | |
_setImportDirectory ($a_import_dir=null) | |
set import directory | |
_getImportDirectory () | |
Get the import directory location of the test. | |
createImportDirectory () | |
creates data directory for import files (data_dir/tst_data/tst_<id>/import, depending on data directory that is set in ILIAS setup/ini) | |
getImportDirectory () | |
Get the import directory location of the test. | |
setImportDirectory ($a_import_dir) | |
Set import directory. | |
hasSingleChoiceQuestions () | |
Returns TRUE if the test contains single choice results. | |
isSingleChoiceTest () | |
Returns TRUE if the test contains single choice results only. | |
isSingleChoiceTestWithoutShuffle () | |
Returns TRUE if the test contains single choice results and no shuffle only. | |
isComplete () | |
Returns 1 (true), if a test is complete for use. | |
_isComplete ($obj_id) | |
Returns true, if a test is complete for use. | |
saveECTSStatus ($ects_output=0, $fx_support="", $ects_a=90, $ects_b=65, $ects_c=35, $ects_d=10, $ects_e=0) | |
Saves the ECTS status (output of ECTS grades in a test) to the database. | |
saveCompleteStatus () | |
Checks if the test is complete and saves the status in the database. | |
getAllRTEContent () | |
Returns the content of all RTE enabled text areas in the test. | |
cleanupMediaobjectUsage () | |
Cleans up the media objects for all text fields in a test which are using an RTE field. | |
saveToDb ($properties_only=FALSE) | |
Saves a ilObjTest object to a database. | |
saveQuestionsToDb () | |
Saves the test questions to the database. | |
saveRandomQuestion ($active_id, $question_id, $pass=NULL, $maxcount) | |
Saves a random question to the database. | |
getRandomQuestionDuplicate ($question_id, $active_id) | |
Returns the question id of the duplicate of a question which is already in use in a random test. | |
getNrOfResultsForPass ($active_id, $pass) | |
Calculates the number of user results for a specific test pass. | |
hasRandomQuestionsForPass ($active_id, $pass) | |
Checkes whether a random test has already created questions for a given pass or not. | |
generateRandomQuestions ($active_id, $pass=NULL) | |
Generates new random questions for the active user. | |
saveRandomQuestionCount ($total_questions=NULL) | |
Saves the total amount of a tests random questions to the database. | |
& | getRandomQuestionpools () |
Returns an array containing the random questionpools saved to the database. | |
saveRandomQuestionpools () | |
Saves the question pools used for a random test. | |
getUsedRandomQuestionpools () | |
Creates an array with title and question count of used random questionpools. | |
addRandomQuestionpoolData ($count=0, $qpl=0, $position) | |
removeRandomQuestionpoolData ($position) | |
setRandomQuestionpoolData ($a_data) | |
& | getRandomQuestionpoolData () |
Returns an array containing ilRandomTestData objects containing the random test selection. | |
loadFromDb () | |
Loads a ilObjTest object from a database. | |
loadQuestions ($active_id="", $pass=NULL) | |
Load the test question id's from the database. | |
setIntroduction ($introduction="") | |
Sets the introduction text of the ilObjTest object. | |
setFinalStatement ($a_statement="") | |
Sets the final statement text of the ilObjTest object. | |
setRedirectAfterExam ($a_url="") | |
Sets the redirect after exam URL. | |
setRedirectOnlyKioskMode ($a_int=1) | |
Sets "redirection only in kiosk mode" setting. | |
setExamPdf ($a_int=0) | |
Sets "save exam pdf" setting. | |
setShowInfo ($a_info=1) | |
Set whether the complete information page is shown or the required data only. | |
setForceJS ($a_js=1) | |
Set whether JavaScript should be forced for tests. | |
setCustomStyle ($a_customStyle=NULL) | |
Set the custom style. | |
getCustomStyle () | |
Get the custom style. | |
getCustomStyles () | |
Return the available custom styles. | |
getTestStyleLocation ($mode="output") | |
get full style sheet file name (path inclusive) of current user | |
setShowFinalStatement ($show=0) | |
Sets whether the final statement should be shown or not. | |
isRandomTest () | |
Gets the status of the $random_test attribute. | |
getRandomQuestionCount () | |
Gets the number of random questions used for a random test. | |
getIntroduction () | |
Gets the introduction text of the ilObjTest object. | |
getFinalStatement () | |
Gets the final statement. | |
getRedirectAfterExam () | |
Gets redirect after exam URL. | |
getRedirectOnlyKioskMode () | |
Gets the "redirect only in kiosk mode" setting. | |
getExamPdf () | |
Gets the "save exam pdf" setting. | |
getShowInfo () | |
Gets whether the complete information page is shown or the required data only. | |
getForceJS () | |
Gets whether JavaScript should be forced for tests. | |
getShowFinalStatement () | |
Returns whether the final statement should be shown or not. | |
getTestId () | |
Gets the database id of the additional test data. | |
getECTSOutput () | |
Indicates if ECTS grades output is presented in this test. | |
setECTSOutput ($a_ects_output) | |
Enables/Disables ECTS grades output for this test. | |
getECTSFX () | |
Returns the ECTS FX grade. | |
setECTSFX ($a_ects_fx) | |
Sets the ECTS FX grade. | |
& | getECTSGrades () |
Returns the ECTS grades. | |
setECTSGrades ($a_ects_grades) | |
Sets the ECTS grades. | |
setSequenceSettings ($sequence_settings=0) | |
Sets the sequence settings of the ilObjTest object. | |
setScoreReporting ($score_reporting=0) | |
Sets the score reporting of the ilObjTest object. | |
setInstantFeedbackSolution ($instant_feedback=0) | |
Sets the instant feedback for the solution. | |
setAnswerFeedback ($answer_feedback=0) | |
Sets the answer specific feedback for the test. | |
setAnswerFeedbackPoints ($answer_feedback_points=0) | |
Sets the answer specific feedback of reached points for the test. | |
setRandomTest ($a_random_test=0) | |
Sets the random test indicator. | |
setRandomQuestionCount ($a_random_question_count="") | |
Sets the random question count. | |
setReportingDate ($reporting_date) | |
Sets the reporting date of the ilObjTest object. | |
getSequenceSettings () | |
Gets the sequence settings of the ilObjTest object. | |
getScoreReporting () | |
Gets the score reporting of the ilObjTest object. | |
getInstantFeedbackSolution () | |
Returns 1 if the correct solution will be shown after answering a question. | |
getAnswerFeedback () | |
Returns 1 if answer specific feedback is activated. | |
getAnswerFeedbackPoints () | |
Returns 1 if answer specific feedback as reached points is activated. | |
getCountSystem () | |
Gets the count system for the calculation of points. | |
_getCountSystem ($active_id) | |
Gets the count system for the calculation of points. | |
getMCScoring () | |
Gets the scoring type for multiple choice questions. | |
getScoreCutting () | |
Determines if the score of a question should be cut at 0 points or the score of the whole test. | |
getPassword () | |
Returns the password for test access. | |
getPassScoring () | |
Gets the pass scoring type. | |
_getPassScoring ($active_id) | |
Gets the pass scoring type. | |
_getMCScoring ($active_id) | |
Gets the scoring type for multiple choice questions. | |
_getScoreCutting ($active_id) | |
Determines if the score of a question should be cut at 0 points or the score of the whole test. | |
getReportingDate () | |
Gets the reporting date of the ilObjTest object. | |
getNrOfTries () | |
Returns the nr of tries for the test. | |
getKiosk () | |
Returns the kiosk mode. | |
setKiosk ($kiosk=0) | |
Sets the kiosk mode for the test. | |
getKioskMode () | |
Returns the kiosk mode. | |
setKioskMode ($a_kiosk=FALSE) | |
Sets the kiosk mode for the test. | |
getShowKioskModeTitle () | |
Returns the status of the kiosk mode title. | |
setShowKioskModeTitle ($a_title=FALSE) | |
Set to true, if the full test title should be shown in kiosk mode. | |
getShowKioskModeParticipant () | |
Returns the status of the kiosk mode participant. | |
setShowKioskModeParticipant ($a_participant=FALSE) | |
Set to true, if the participant's name should be shown in kiosk mode. | |
getUsePreviousAnswers () | |
Returns if the previous answers should be shown for a learner. | |
getTitleOutput () | |
Returns the value of the title_output status. | |
_getTitleOutput ($active_id) | |
Returns the value of the title_output status. | |
_getUsePreviousAnswers ($active_id, $user_active_user_setting=false) | |
Returns if the previous results should be hidden for a learner. | |
getProcessingTime () | |
Returns the processing time for the test. | |
getProcessingTimeAsArray () | |
Returns the processing time for the test. | |
getProcessingTimeInSeconds ($active_id="") | |
Returns the processing time for the test in seconds. | |
getSecondsUntilEndingTime () | |
Returns the seconds left from the actual time until the ending time. | |
getEnableProcessingTime () | |
Returns the state of the processing time (enabled/disabled) | |
getResetProcessingTime () | |
Returns whether the processing time should be reset or not. | |
getStartingTime () | |
Returns the starting time of the test. | |
getEndingTime () | |
Returns the ending time of the test. | |
setNrOfTries ($nr_of_tries=0) | |
Sets the nr of tries for the test. | |
setUsePreviousAnswers ($use_previous_answers=1) | |
Sets the status of the visibility of previous learner answers. | |
setTitleOutput ($title_output=0) | |
Sets the status of the title output. | |
setProcessingTime ($processing_time="00:00:00") | |
Sets the processing time for the test. | |
setEnableProcessingTime ($enable=0) | |
Sets the processing time enabled or disabled. | |
setResetProcessingTime ($reset=0) | |
Sets whether the processing time should be reset or not. | |
setStartingTime ($starting_time=NULL) | |
Sets the starting time in database timestamp format for the test. | |
setEndingTime ($ending_time=NULL) | |
Sets the ending time in database timestamp format for the test. | |
setCountSystem ($a_count_system=COUNT_PARTIAL_SOLUTIONS) | |
Sets the count system for the calculation of points. | |
setPassword ($a_password=NULL) | |
Sets the password for test access. | |
setScoreCutting ($a_score_cutting=SCORE_CUT_QUESTION) | |
Sets the type of score cutting. | |
setMCScoring ($a_mc_scoring=SCORE_ZERO_POINTS_WHEN_UNANSWERED) | |
Sets the multiple choice scoring. | |
setPassScoring ($a_pass_scoring=SCORE_LAST_PASS) | |
Sets the pass scoring. | |
removeQuestion ($question_id) | |
Removes a question from the test object. | |
removeAllTestEditings ($question_id="") | |
Removes all references to the question in executed tests in case the question has been changed. | |
removeSelectedTestResults ($active_ids) | |
removeTestResultsForUser ($user_id) | |
questionMoveUp ($question_id) | |
Moves a question up in order. | |
questionMoveDown ($question_id) | |
Moves a question down in order. | |
duplicateQuestionForTest ($question_id) | |
Takes a question and creates a copy of the question for use in the test. | |
insertQuestion ($question_id) | |
Insert a question in the list of questions. | |
& | getQuestionTitles () |
Returns the titles of the test questions in question sequence. | |
& | getQuestionTitlesAndIndexes () |
Returns the titles of the test questions in question sequence. | |
& | getQuestionOIDsByAID () |
getQuestionTitle ($title) | |
Returns the title of a test question and checks if the title output is allowed. | |
getQuestionDataset ($question_id) | |
Returns the dataset for a given question id. | |
& | getExistingQuestions ($pass=NULL) |
Get the id's of the questions which are already part of the test. | |
getQuestionType ($question_id) | |
Returns the question type of a question with a given id. | |
startWorkingTime ($active_id, $question_id, $pass) | |
Write the initial entry for the tests working time to the database. | |
updateWorkingTime ($times_id) | |
Update the working time of a test when a question is answered. | |
& | getWorkedQuestions ($active_id, $pass=NULL) |
Gets the id's of all questions a user already worked through. | |
isTestFinishedToViewResults ($active_id, $currentpass) | |
Returns true if an active user completed a test pass and did not start a new pass. | |
& | getAllQuestions ($pass=NULL) |
Returns all questions of a test in test order. | |
getActiveIdOfUser ($user_id="", $anonymous_id="") | |
Gets the active id of a given user. | |
_getActiveIdOfUser ($user_id="", $test_id="") | |
Gets the active id of the tst_active table for the active user. | |
pcArrayShuffle ($array) | |
Shuffles the values of a given array. | |
& | getTestResult ($active_id, $pass=NULL, $ordered_sequence=FALSE) |
Calculates the results of a test for a given user and returns an array with all test results. | |
evalTotalPersons () | |
Returns the number of persons who started the test. | |
getCompleteWorkingTime ($user_id) | |
Returns the complete working time in seconds a user worked on the test. | |
& | getCompleteWorkingTimeOfParticipants () |
Returns the complete working time in seconds for all test participants. | |
& | _getCompleteWorkingTimeOfParticipants ($test_id) |
Returns the complete working time in seconds for all test participants. | |
getCompleteWorkingTimeOfParticipant ($active_id) | |
Returns the complete working time in seconds for a test participant. | |
_getWorkingTimeOfParticipantForPass ($active_id, $pass) | |
Returns the complete working time in seconds for a test participant. | |
getVisitTimeOfParticipant ($active_id) | |
Returns the first and last visit of a participant. | |
_getVisitTimeOfParticipant ($test_id, $active_id) | |
Returns the first and last visit of a participant. | |
& | evalStatistical ($active_id) |
Returns the statistical evaluation of the test for a specified user. | |
& | getTotalPointsPassedArray () |
Returns an array with the total points of all users who passed the test This array could be used for statistics. | |
& | getParticipants () |
Returns all persons who started the test. | |
& | evalTotalPersonsArray ($name_sort_order="asc") |
Returns all persons who started the test. | |
& | evalTotalParticipantsArray ($name_sort_order="asc") |
Returns all participants who started the test. | |
evalTotalFinished () | |
Returns the number of total finished tests. | |
& | getQuestionsOfTest ($active_id) |
Retrieves all the assigned questions for all test passes of a test participant. | |
& | getQuestionsOfPass ($active_id, $pass) |
Retrieves all the assigned questions for a test participant in a given test pass. | |
getUnfilteredEvaluationData () | |
_getQuestionCountAndPointsForPassOfParticipant ($active_id, $pass) | |
& | getCompleteEvaluationData ($withStatistics=TRUE, $filterby="", $filtertext="") |
& | evalResultsOverview () |
Creates an associated array with the results of all participants of a test. | |
& | _evalResultsOverview ($test_id) |
Creates an associated array with the results of all participants of a test. | |
& | evalResultsOverviewOfParticipant ($active_id) |
Creates an associated array with the results for a given participant of a test. | |
buildName ($user_id, $firstname, $lastname, $title) | |
Builds a user name for the output depending on test type and existence of the user. | |
_buildName ($is_anonymous, $user_id, $firstname, $lastname, $title) | |
Builds a user name for the output depending on test type and existence of the user. | |
evalTotalStartedAverageTime () | |
Returns the average processing time for all started tests. | |
& | getAvailableQuestionpools ($use_object_id=false, $equal_points=false, $could_be_offline=false, $show_path=FALSE, $with_questioncount=FALSE, $permission="read") |
Returns the available question pools for the active user. | |
getEstimatedWorkingTime () | |
Returns the estimated working time for the test calculated from the working time of the contained questions. | |
generateRandomPass ($nr, $qpls, $pass=NULL) | |
Generates a random test pass for a random test. | |
randomSelectQuestions ($nr_of_questions, $questionpool, $use_obj_id=0, $qpls="", $pass=NULL) | |
Returns a random selection of questions. | |
getImagePath () | |
Returns the image path for web accessable images of a test The image path is under the CLIENT_WEB_DIR in assessment/REFERENCE_ID_OF_TEST/images. | |
getImagePathWeb () | |
Returns the web image path for web accessable images of a test The image path is under the web accessable data dir in assessment/REFERENCE_ID_OF_TEST/images. | |
& | createQuestionGUI ($question_type, $question_id=-1) |
Creates a question GUI instance of a given question type. | |
& | _instanciateQuestion ($question_id) |
Creates an instance of a question with a given question id. | |
moveQuestions ($move_questions, $target_index, $insert_mode) | |
Move questions to another position. | |
startingTimeReached () | |
Returns true if the starting time of a test is reached A starting time is not available for self assessment tests. | |
endingTimeReached () | |
Returns true if the ending time of a test is reached An ending time is not available for self assessment tests. | |
getAvailableQuestions ($arrFilter, $completeonly=0) | |
Calculates the available questions for a test. | |
& | getQuestionTypeTranslations () |
fromXML (&$assessment) | |
Receives parameters from a QTI parser and creates a valid ILIAS test object. | |
exportPagesXML (&$a_xml_writer, $a_inst, $a_target_dir, &$expLog) | |
export pages of test to xml (see ilias_co.dtd) | |
exportXMLMetaData (&$a_xml_writer) | |
export content objects meta data to xml (see ilias_co.dtd) | |
modifyExportIdentifier ($a_tag, $a_param, $a_value) | |
Returns the installation id for a given identifier. | |
exportXMLPageObjects (&$a_xml_writer, $a_inst, &$expLog) | |
export page objects to xml (see ilias_co.dtd) | |
exportXMLMediaObjects (&$a_xml_writer, $a_inst, $a_target_dir, &$expLog) | |
export media objects to xml (see ilias_co.dtd) | |
exportFileItems ($a_target_dir, &$expLog) | |
export files of file itmes | |
getImportMapping () | |
get array of (two) new created questions for import id | |
getECTSGrade ($passed_array, $reached_points, $max_points) | |
Returns the ECTS grade for a number of reached points. | |
_getECTSGrade ($points_passed, $reached_points, $max_points, $a, $b, $c, $d, $e, $fx) | |
Returns the ECTS grade for a number of reached points. | |
checkMarks () | |
getMarkSchema () | |
setAuthor ($author="") | |
Sets the authors name of the ilObjTest object. | |
saveAuthorToMetadata ($a_author="") | |
Saves an authors name into the lifecycle metadata if no lifecycle metadata exists This will only be called for conversion of "old" tests where the author hasn't been stored in the lifecycle metadata. | |
createMetaData () | |
Create meta data entry. | |
getAuthor () | |
Gets the authors name of the ilObjTest object. | |
_lookupAuthor ($obj_id) | |
Gets the authors name of the ilObjTest object. | |
& | _getAvailableTests ($use_object_id=FALSE) |
Returns the available tests for the active user. | |
cloneRandomQuestions ($new_id) | |
Duplicates the source random questionpools for another test. | |
cloneObject ($a_target_id, $a_copy_id=0) | |
Clone object. | |
getQuestionCount () | |
Returns the number of questions in the test. | |
_getQuestionCount ($test_id) | |
Returns the number of questions in the test for a given user. | |
removeNonRandomTestData () | |
Removes all test data of a non random test when a test was set to random test. | |
removeRandomTestData () | |
Removes all test data of a random test when a test was set to non random test. | |
logAction ($logtext="", $question_id="") | |
Logs an action into the Test&Assessment log. | |
_getObjectIDFromTestID ($test_id) | |
Returns the ILIAS test object id for a given test id. | |
_getObjectIDFromActiveID ($active_id) | |
Returns the ILIAS test object id for a given active id. | |
_getTestIDFromObjectID ($object_id) | |
Returns the ILIAS test id for a given object id. | |
getTextAnswer ($active_id, $question_id, $pass=NULL) | |
Returns the text answer of a given user for a given question. | |
getQuestiontext ($question_id) | |
Returns the question text for a given question. | |
& | getInvitedUsers ($user_id="", $order="login, lastname, firstname") |
Returns a list of all invited users in a test. | |
& | getTestParticipants () |
Returns a list of all participants in a test. | |
getTestParticipantsForManualScoring ($filter=NULL) | |
& | getUserData ($ids) |
Returns a data of all users specified by id list. | |
& | getGroupData ($ids) |
& | getRoleData ($ids) |
inviteGroup ($group_id) | |
Invites all users of a group to a test. | |
inviteRole ($role_id) | |
Invites all users of a role to a test. | |
disinviteUser ($user_id) | |
Disinvites a user from a test. | |
inviteUser ($user_id, $client_ip="") | |
Invites a user to a test. | |
setClientIP ($user_id, $client_ip) | |
_getSolvedQuestions ($active_id, $question_fi=null) | |
get solved questions | |
setQuestionSetSolved ($value, $question_id, $user_id) | |
sets question solved state to value for given user_id | |
setActiveTestSubmitted ($user_id) | |
submits active test for user user_id | |
isTestFinished ($active_id) | |
returns if the active for user_id has been submitted | |
isActiveTestSubmitted ($user_id=null) | |
returns if the active for user_id has been submitted | |
hasNrOfTriesRestriction () | |
returns if the numbers of tries have to be checked | |
isNrOfTriesReached ($tries) | |
returns if number of tries are reached | |
getAllTestResults ($participants, $prepareForCSV=true) | |
returns all test results for all participants | |
& | processCSVRow ($row, $quoteAll=FALSE, $separator=";") |
Processes an array as a CSV row and converts the array values to correct CSV values. | |
_getPass ($active_id) | |
Retrieves the actual pass of a given user for a given test. | |
_getMaxPass ($active_id) | |
Retrieves the maximum pass of a given user for a given test in which the user answered at least one question. | |
_getBestPass ($active_id) | |
Retrieves the best pass of a given user for a given test. | |
_getResultPass ($active_id) | |
Retrieves the pass number that should be counted for a given user. | |
getAnsweredQuestionCount ($active_id, $pass=NULL) | |
Retrieves the number of answered questions for a given user in a given test. | |
getPassFinishDate ($active_id, $pass) | |
Retrieves the number of answered questions for a given user in a given test. | |
isExecutable ($user_id, $allowPassIncrease=FALSE) | |
Checks if the test is executable by the given user. | |
canViewResults () | |
Returns true, if the test results can be viewed. | |
canShowTestResults ($user_id) | |
canEditMarks () | |
getStartingTimeOfParticipants () | |
getTimeExtensionsOfParticipants () | |
getStartingTimeOfUser ($active_id) | |
Returns the unix timestamp of the time a user started a test. | |
isMaxProcessingTimeReached ($starting_time, $active_id) | |
Returns whether the maximum processing time for a test is reached or not. | |
& | getTestQuestions () |
getShuffleQuestions () | |
Returns the status of the shuffle_questions variable. | |
setShuffleQuestions ($a_shuffle) | |
Sets the status of the shuffle_questions variable. | |
getListOfQuestionsSettings () | |
Returns the settings for the list of questions options in the test properties This could contain one of the following values: 0 = No list of questions offered 1 = A list of questions is offered 3 = A list of questions is offered and the list of questions is shown as first page of the test 5 = A list of questions is offered and the list of questions is shown as last page of the test 7 = A list of questions is offered and the list of questions is shown as first and last page of the test. | |
setListOfQuestionsSettings ($a_value=0) | |
Sets the settings for the list of questions options in the test properties This could contain one of the following values: 0 = No list of questions offered 1 = A list of questions is offered 3 = A list of questions is offered and the list of questions is shown as first page of the test 5 = A list of questions is offered and the list of questions is shown as last page of the test 7 = A list of questions is offered and the list of questions is shown as first and last page of the test. | |
getListOfQuestions () | |
Returns if the list of questions should be presented to the user or not. | |
setListOfQuestions ($a_value=TRUE) | |
Sets if the the list of questions should be presented to the user or not. | |
getListOfQuestionsStart () | |
Returns if the list of questions should be presented as the first page of the test. | |
setListOfQuestionsStart ($a_value=TRUE) | |
Sets if the the list of questions as the start page of the test. | |
getListOfQuestionsEnd () | |
Returns if the list of questions should be presented as the last page of the test. | |
setListOfQuestionsEnd ($a_value=TRUE) | |
Sets if the the list of questions as the end page of the test. | |
getListOfQuestionsDescription () | |
Returns TRUE if the list of questions should be presented with the question descriptions. | |
setListOfQuestionsDescription ($a_value=TRUE) | |
Sets the show_summary attribute to TRUE if the list of questions should be presented with the question descriptions. | |
getResultsPresentation () | |
Returns the combined results presentation value. | |
getShowPassDetails () | |
Returns if the pass details should be shown when a test is not finished. | |
getShowSolutionDetails () | |
Returns if the solution details should be presented to the user or not. | |
getShowSolutionPrintview () | |
Returns if the solution printview should be presented to the user or not. | |
getShowSolutionFeedback () | |
Returns if the feedback should be presented to the solution or not. | |
getShowSolutionAnswersOnly () | |
Returns if the full solution (including ILIAS content) should be presented to the solution or not. | |
getShowSolutionSignature () | |
Returns if the signature field should be shown in the test results. | |
getShowSolutionSuggested () | |
getShowSolutionListComparison () | |
getShowSolutionAnwersBeforeFinish () | |
setResultsPresentation ($a_results_presentation=3) | |
Sets the combined results presentation value. | |
setShowPassDetails ($a_details=1) | |
Sets if the pass details should be shown when a test is not finished. | |
setShowSolutionDetails ($a_details=1) | |
Sets if the the solution details should be presented to the user or not. | |
setShowSolutionPrintview ($a_printview=1) | |
Sets if the the solution printview should be presented to the user or not. | |
setShowSolutionFeedback ($a_feedback=TRUE) | |
Sets if the the feedback should be presented to the user in the solution or not. | |
setShowSolutionAnswersOnly ($a_full=TRUE) | |
Set to true, if the full solution (including the ILIAS content pages) should be shown in the solution output. | |
setShowSolutionSignature ($a_signature=FALSE) | |
Set to TRUE, if the signature field should be shown in the solution. | |
setShowSolutionSuggested ($a_solution=FALSE) | |
Set to TRUE, if the suggested solution should be shown in the solution. | |
setShowSolutionListComparison ($a_comparison=FALSE) | |
Set to TRUE, if the results should be compared with the correct results in the list of answers. | |
setShowSolutionAnwersBeforeFinish ($a_value=FALSE) | |
Set to TRUE, if the list of answers should be shown prior to finish the test. | |
createNewAccessCode () | |
Returns a new, unused test access code. | |
isAccessCodeUsed ($code) | |
getAccessCodeSession () | |
setAccessCodeSession ($access_code) | |
unsetAccessCodeSession () | |
getAllowedUsers () | |
setAllowedUsers ($a_allowed_users) | |
getAllowedUsersTimeGap () | |
setAllowedUsersTimeGap ($a_allowed_users_time_gap) | |
checkMaximumAllowedUsers () | |
_getLastAccess ($active_id) | |
isHTML ($a_text) | |
Checks if a given string contains HTML or not. | |
QTIMaterialToString ($a_material) | |
Reads an QTI material tag an creates a text string. | |
prepareTextareaOutput ($txt_output, $prepare_for_latex_output=FALSE) | |
Prepares a string for a text area output in tests. | |
saveCertificateVisibility ($a_value) | |
Saves the visibility settings of the certificate. | |
getCertificateVisibility () | |
Returns the visibility settings of the certificate. | |
setCertificateVisibility ($a_value) | |
Sets the visibility settings of the certificate. | |
getAnonymity () | |
Returns the anonymity status of the test. | |
setAnonymity ($a_value=0) | |
Sets the anonymity status of the test. | |
getShowCancel () | |
Returns whether the cancel test button is shown or not. | |
setShowCancel ($a_value=1) | |
Sets the cancel test button status. | |
getAutosave () | |
Returns if autosave is enabled. | |
setAutosave ($a_value=1) | |
Sets autosave. | |
getShowMarker () | |
Returns whether the marker button is shown or not. | |
setShowMarker ($a_value=1) | |
Sets the marker button status. | |
getFixedParticipants () | |
Returns the fixed participants status. | |
setFixedParticipants ($a_value=1) | |
Sets the fixed participants status. | |
_lookupAnonymity ($a_obj_id) | |
Returns the anonymity status of a test with a given object id. | |
_lookupRandomTestFromActiveId ($active_id) | |
Returns the random status of a test with a given object id. | |
userLookupFullName ($user_id, $overwrite_anonymity=FALSE, $sorted_order=FALSE, $suffix="") | |
Returns the full name of a test user according to the anonymity status. | |
getStartTestLabel ($active_id) | |
Returns the "Start the Test" label for the Info page. | |
& | getAvailableDefaults ($sortby="name", $sortorder="asc") |
Returns the available test defaults for the active user. | |
& | getTestDefaults ($test_defaults_id) |
Returns the test defaults for a given id. | |
deleteDefaults ($test_default_id) | |
Deletes the defaults for a test. | |
addDefaults ($a_name) | |
Adds the defaults of this test to the test defaults. | |
applyDefaults ($test_defaults_id) | |
Applies given test defaults to this test. | |
deliverPDFFromHTML ($content, $title=NULL, $filename=NULL) | |
Delivers a PDF file from XHTML. | |
saveManualFeedback ($active_id, $question_id, $pass, $feedback) | |
Saves the manual feedback for a question in a test. | |
getJavaScriptOutput () | |
Returns if Javascript should be chosen for drag & drop actions for the active user. | |
& | createTestSession () |
Creates the test session data for the active user. | |
setTestId ($a_id) | |
Sets the test ID. | |
& | setTestSession ($active_id="") |
Sets the test session data for the active user. | |
& | getTestSession ($active_id="") |
Returns the test session data for the active user. | |
& | createTestSequence ($active_id, $pass, $shuffle) |
& | getTestSequence ($active_id="", $pass="") |
hideCorrectAnsweredQuestions () | |
getDetailedTestResults ($participants) | |
returns all test results for all participants | |
_lookupTestObjIdForQuestionId ($a_q_id) | |
Get test Object ID for question ID. | |
isPluginActive ($a_pname) | |
Checks whether or not a question plugin with a given name is active. | |
setEvaluationAdditionalFields ($fields) | |
Sets additional user fields that should be shown in the user evaluation. | |
getEvaluationAdditionalFields () | |
Gets additional user fields that should be shown in the user evaluation. | |
canShowCertificate ($user_id, $active_id) | |
Checks whether the certificate button could be shown on the info page or not. | |
getParticipantsForTestAndQuestion ($test_id, $question_id) | |
Creates an associated array with all active id's for a given test and original question id. | |
getAggregatedResultsData () | |
Returns the aggregated test results. | |
getXMLZip () | |
Get zipped xml file for test. | |
getMailNotification () | |
Get mail notification settings. | |
setMailNotification ($a_notification) | |
Set mail notification settings. | |
sendSimpleNotification ($active_id) | |
sendAdvancedNotification ($active_id) | |
createRandomSolutions ($number) | |
getResultsForActiveId ($active_id) | |
getRunDates () | |
Returns an array of YYYY-MM-DD date strings for days that have archived runs of this test. | |
getRunPackageDates () | |
Like getRunDates(), yet only return dates for runs that have packaged archives in the course folder. | |
hasRun ($date) | |
Returns TRUE if this test has an archived run for the date designated by YYYY-MM-DD string $date. | |
hasRunPackage ($date) | |
Like hasRun(), but only returns TRUE if the run has been packaged; will return FALSE even if packaging is underway yet not completed. | |
packageRun ($date) | |
Triggers packaging of archived run for this test designated by YYYY-MM-DD string $date (if run exists). | |
getRunPackageFilename ($date) | |
deleteRunPackage ($date) | |
obliterateRun ($date) | |
Utterly and completely destroys all evidence of an archived run, i.e. | |
getMailNotificationType () | |
setMailNotificationType ($a_type) | |
getExportSettings () | |
setExportSettings ($a_settings) | |
getExportSettingsSingleChoiceShort () | |
setExportSettingsSingleChoiceShort ($a_settings) | |
getExportSettingsRespectShuffle () | |
setExportSettingsRespectShuffle ($a_settings) | |
getQuestions () | |
getExtraTime ($active_id) | |
addExtraTime ($active_id, $minutes) | |
recalculateSolutions () | |
getShowSerial () | |
setShowSerial ($a_value=1) | |
getSerial () | |
Public Member Functions inherited from ilObject | |
ilObject ($a_id=0, $a_reference=true) | |
Constructor public. | |
withReferences () | |
determines wehter objects are referenced or not (got ref ids or not) | |
getId () | |
get object id public | |
setId ($a_id) | |
set object id public | |
setRefId ($a_id) | |
set reference id public | |
getRefId () | |
get reference id public | |
getType () | |
get object type public | |
setType ($a_type) | |
set object type public | |
getPresentationTitle () | |
get presentation title Normally same as title Overwritten for sessions | |
getTitle () | |
get object title public | |
getUntranslatedTitle () | |
get untranslated object title public | |
setTitle ($a_title) | |
set object title | |
getDescription () | |
get object description | |
setDescription ($a_desc) | |
set object description | |
getLongDescription () | |
get object long description (stored in object_description) | |
getImportId () | |
get import id | |
setImportId ($a_import_id) | |
set import id | |
_lookupObjIdByImportId ($a_import_id) | |
getOwner () | |
get object owner | |
getOwnerName () | |
_lookupOwnerName ($a_owner_id) | |
lookup owner name for owner id | |
setOwner ($a_owner) | |
set object owner | |
getCreateDate () | |
get create date public | |
getLastUpdateDate () | |
get last update date public | |
getDiskUsage () | |
Gets the disk usage of the object in bytes. | |
setObjDataRecord ($a_record) | |
set object_data record (note: this method should only be called from the ilObjectFactory class) | |
create () | |
create | |
MDUpdateListener ($a_element) | |
Meta data update listener. | |
updateMetaData () | |
update meta data entry | |
deleteMetaData () | |
delete meta data entry | |
updateOwner () | |
update owner of object in db | |
_getIdForImportId ($a_import_id) | |
get current object id for import id (static) | |
_lookupOwner ($a_id) | |
lookup object owner | |
_lookupDescription ($a_id) | |
lookup object description | |
_lookupLastUpdate ($a_id, $a_as_string=false) | |
lookup last update | |
_getLastUpdateOfObjects ($a_objs) | |
Get last update for a set of media objects. | |
_setDeletedDate ($a_ref_id) | |
only called in ilTree::saveSubTree | |
_resetDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_lookupDeletedDate ($a_ref_id) | |
only called in ilObjectGUI::insertSavedNodes | |
_writeTitle ($a_obj_id, $a_title) | |
write title to db (static) | |
_writeDescription ($a_obj_id, $a_desc) | |
write description to db (static) | |
_writeImportId ($a_obj_id, $a_import_id) | |
write import id to db (static) | |
_isInTrash ($a_ref_id) | |
checks wether object is in trash | |
_hasUntrashedReference ($a_obj_id) | |
checks wether an object has at least one reference that is not in trash | |
_lookupObjectId ($a_ref_id) | |
lookup object id | |
_getObjectsDataForType ($a_type, $a_omit_trash=false) | |
get all objects of a certain type | |
putInTree ($a_parent_ref) | |
maybe this method should be in tree object!? | |
setPermissions ($a_parent_ref) | |
set permissions of object | |
countReferences () | |
count references of object | |
createRoleFolder () | |
creates a local role folder | |
setRegisterMode ($a_bool) | |
isUserRegistered ($a_user_id=0) | |
requireRegistration () | |
getHTMLDirectory () | |
appendCopyInfo ($a_target_id, $a_copy_id) | |
Prepend Copy info if object with same name exists in that container. | |
cloneDependencies ($a_target_id, $a_copy_id) | |
Clone object dependencies. | |
cloneMetaData ($target_obj) | |
Copy meta data. |
Static Public Member Functions | |
static | _lookupRandomTest ($a_obj_id) |
Lookup random test. | |
static | _getUserIdFromActiveId ($active_id) |
static | getManualFeedback ($active_id, $question_id, $pass) |
Retrieves the manual feedback for a question in a test. | |
Static Public Member Functions inherited from ilObject | |
static | _getAllReferences ($a_id) |
get all reference ids of object | |
static | _lookupTitle ($a_id) |
lookup object title | |
static | _getIdsForTitle ($title, $type= '', $partialmatch=false) |
static | _lookupObjId ($a_id) |
static | _lookupType ($a_id, $a_reference=false) |
lookup object type | |
_exists ($a_id, $a_reference=false) | |
checks if an object exists in object_data | |
static | _getObjectsByType ($a_obj_type="", $a_owner="") |
Get objects by type. | |
static | _prepareCloneSelection ($a_ref_ids, $new_type) |
Prepare copy wizard object selection. | |
static | _getIcon ($a_obj_id="", $a_size="big", $a_type="", $a_offline=false) |
Get icon for repository item. | |
static | collectDeletionDependencies (&$deps, $a_ref_id, $a_obj_id, $a_type, $a_depth=0) |
Collect deletion dependencies. | |
static | getDeletionDependencies ($a_obj_id) |
Get deletion dependencies. |
Protected Member Functions | |
isNewRandomTest () | |
Checks whether the test is a new random test (using tst_rnd_cpy) or an old one. | |
removeDuplicatedQuestionpools () | |
Remove all duplicated questions from a random test. | |
duplicateQuestionpoolForTest ($questionpool_id) | |
Duplicates all valid questions of a questionpool for use in a random test. | |
getPassed ($active_id) |
Protected Attributes | |
$_kiosk | |
$mailnotification | |
$mailnottype | |
$random_questionpool_data | |
$exportsettings | |
$show_serial |
Private Attributes | |
$_showfinalstatement | |
$_finalstatement | |
$_redirect_after_exam | |
$_redirect_only_kiosk_mode | |
$_exam_pdf | |
$_showinfo | |
$_forcejs | |
$_customStyle | |
$import_dir |
Definition at line 17 of file class.ilObjTest.php.
ilObjTest::_buildName | ( | $is_anonymous, | |
$user_id, | |||
$firstname, | |||
$lastname, | |||
$title | |||
) |
Builds a user name for the output depending on test type and existence of the user.
boolean | $is_anonymous | Indicates if it is an anonymized test or not |
int | $user_id | The database ID of the user |
string | $firstname | The first name of the user |
string | $lastname | The last name of the user |
string | $title | The title of the user |
Definition at line 5328 of file class.ilObjTest.php.
References ilObject\$lng, $name, and ilObject\$title.
ilObjTest::_createImportDirectory | ( | ) |
creates data directory for import files (data_dir/tst_data/tst_<id>/import, depending on data directory that is set in ILIAS setup/ini)
Definition at line 880 of file class.ilObjTest.php.
References ilObject\$ilias, ilUtil\getDataDir(), and ilUtil\makeDir().
Referenced by ilObjTestGUI\uploadTstObject().
& ilObjTest::_evalResultsOverview | ( | $test_id | ) |
Creates an associated array with the results of all participants of a test.
Definition at line 5187 of file class.ilObjTest.php.
References $ilDB, $row, and $test_id.
Referenced by evalResultsOverview().
ilObjTest::_getActiveIdOfUser | ( | $user_id = "" , |
|
$test_id = "" |
|||
) |
Gets the active id of the tst_active table for the active user.
integer | $user_id | The database id of the user |
integer | $test_id | The database id of the test |
Definition at line 4295 of file class.ilObjTest.php.
References $ilDB, $row, and $test_id.
& ilObjTest::_getAvailableTests | ( | $use_object_id = FALSE | ) |
Returns the available tests for the active user.
Definition at line 6537 of file class.ilObjTest.php.
References $ilDB, ilObject\$ref_id, $tests, ilUtil\_getObjectsByOperations(), ilObject\_lookupObjId(), and ilObject\_prepareCloneSelection().
Referenced by ilObjAssessmentFolderGUI\exportLogObject(), ilObjAssessmentFolderGUI\logAdminObject(), and ilObjAssessmentFolderGUI\logsObject().
ilObjTest::_getBestPass | ( | $active_id | ) |
Retrieves the best pass of a given user for a given test.
integer | $user_id | The user id |
integer | $test_id | The test id |
Definition at line 7644 of file class.ilObjTest.php.
Referenced by _getResultPass().
& ilObjTest::_getCompleteWorkingTimeOfParticipants | ( | $test_id | ) |
Returns the complete working time in seconds for all test participants.
integer | $test_id | The database ID of the test |
Definition at line 4505 of file class.ilObjTest.php.
References $ilDB, $row, and $test_id.
Referenced by getCompleteWorkingTimeOfParticipants().
ilObjTest::_getCountSystem | ( | $active_id | ) |
Gets the count system for the calculation of points.
Definition at line 2841 of file class.ilObjTest.php.
Referenced by assQuestion\calculateReachedPoints().
ilObjTest::_getECTSGrade | ( | $points_passed, | |
$reached_points, | |||
$max_points, | |||
$a, | |||
$b, | |||
$c, | |||
$d, | |||
$e, | |||
$fx | |||
) |
Returns the ECTS grade for a number of reached points.
double | $reached_points | The points reached in the test |
double | $max_points | The maximum number of points for the test |
Definition at line 6340 of file class.ilObjTest.php.
References $d.
Referenced by getECTSGrade().
ilObjTest::_getImportDirectory | ( | ) |
Get the import directory location of the test.
Definition at line 925 of file class.ilObjTest.php.
References $_SESSION.
Referenced by assErrorTextImport\fromXML(), assFileUploadImport\fromXML(), assFlashQuestionImport\fromXML(), assSingleChoiceImport\fromXML(), assOrderingQuestionImport\fromXML(), assJavaAppletImport\fromXML(), assNumericImport\fromXML(), assMultipleChoiceImport\fromXML(), assTextSubsetImport\fromXML(), assClozeTestImport\fromXML(), assImagemapQuestionImport\fromXML(), assOrderingHorizontalImport\fromXML(), assTextQuestionImport\fromXML(), assMatchingQuestionImport\fromXML(), ilObjTestGUI\importVerifiedFileObject(), and ilObjTestGUI\uploadTstObject().
ilObjTest::_getLastAccess | ( | $active_id | ) |
Definition at line 8729 of file class.ilObjTest.php.
ilObjTest::_getMaxPass | ( | $active_id | ) |
Retrieves the maximum pass of a given user for a given test in which the user answered at least one question.
integer | $user_id | The user id |
integer | $test_id | The test id |
Definition at line 7617 of file class.ilObjTest.php.
Referenced by _getResultPass().
ilObjTest::_getMCScoring | ( | $active_id | ) |
Gets the scoring type for multiple choice questions.
Definition at line 2933 of file class.ilObjTest.php.
Referenced by assMultipleChoice\calculateReachedPoints().
ilObjTest::_getObjectIDFromActiveID | ( | $active_id | ) |
Returns the ILIAS test object id for a given active id.
integer | $active_id | The active id |
Definition at line 6907 of file class.ilObjTest.php.
Referenced by assQuestion\_logAction(), and assQuestion\logAction().
ilObjTest::_getObjectIDFromTestID | ( | $test_id | ) |
Returns the ILIAS test object id for a given test id.
integer | $test_id | The test id |
Definition at line 6884 of file class.ilObjTest.php.
References $ilDB, $row, and $test_id.
Referenced by assJavaAppletGUI\getSolutionOutput(), assJavaAppletGUI\getTestOutput(), and ASS_MarkSchema\logAction().
ilObjTest::_getPass | ( | $active_id | ) |
Retrieves the actual pass of a given user for a given test.
integer | $user_id | The user id |
integer | $test_id | The test id |
Definition at line 7590 of file class.ilObjTest.php.
Referenced by assQuestion\calculateResultsFromSolution(), getAllQuestions(), assFileUploadGUI\getSolutionOutput(), assFlashQuestionGUI\getSolutionOutput(), assJavaAppletGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), getStartingTimeOfUser(), getStartTestLabel(), assFileUploadGUI\getTestOutput(), assErrorTextGUI\getTestOutput(), assOrderingHorizontalGUI\getTestOutput(), assNumericGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assTextSubsetGUI\getTestOutput(), assFlashQuestionGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assJavaAppletGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutputJS(), isExecutable(), loadQuestions(), assOrderingHorizontal\moveRight(), assImagemapQuestionGUI\outQuestionForTest(), assOrderingHorizontal\saveWorkingData(), assErrorText\saveWorkingData(), assNumeric\saveWorkingData(), assTextQuestion\saveWorkingData(), assFileUpload\saveWorkingData(), assSingleChoice\saveWorkingData(), assMultipleChoice\saveWorkingData(), assTextSubset\saveWorkingData(), assImagemapQuestion\saveWorkingData(), assOrderingQuestion\saveWorkingData(), assMatchingQuestion\saveWorkingData(), assClozeTest\saveWorkingData(), and assErrorText\toggleSelection().
ilObjTest::_getPassScoring | ( | $active_id | ) |
Gets the pass scoring type.
Definition at line 2911 of file class.ilObjTest.php.
Referenced by _getResultPass().
ilObjTest::_getQuestionCount | ( | $test_id | ) |
Returns the number of questions in the test for a given user.
Definition at line 6746 of file class.ilObjTest.php.
References $data, $ilDB, $row, $test, and $test_id.
ilObjTest::_getQuestionCountAndPointsForPassOfParticipant | ( | $active_id, | |
$pass | |||
) |
Definition at line 5120 of file class.ilObjTest.php.
References $ilDB, $pass, $row, and _lookupRandomTestFromActiveId().
Referenced by assQuestion\_updateTestPassResults(), and ilTestEvaluationData\generateOverview().
ilObjTest::_getResultPass | ( | $active_id | ) |
Retrieves the pass number that should be counted for a given user.
integer | $user_id | The user id |
integer | $test_id | The test id |
Definition at line 7687 of file class.ilObjTest.php.
References _getBestPass(), _getMaxPass(), _getPassScoring(), and SCORE_BEST_PASS.
Referenced by assQuestion\_updateTestResultCache(), ilTestNewScoring\calcReachedPoints(), evalStatistical(), getPassed(), ilTestEvaluationGUI\outCertificate(), and ilTestEvaluationGUI\outParticipantsResultsOverview().
ilObjTest::_getScoreCutting | ( | $active_id | ) |
Determines if the score of a question should be cut at 0 points or the score of the whole test.
Definition at line 2955 of file class.ilObjTest.php.
Referenced by assQuestion\calculateReachedPoints().
ilObjTest::_getSolvedQuestions | ( | $active_id, | |
$question_fi = null |
|||
) |
get solved questions
Definition at line 7344 of file class.ilObjTest.php.
Referenced by ilTestSequence\getSequenceSummary(), ilTestOutputGUI\outQuestionSummary(), and ilTestOutputGUI\outWorkingForm().
ilObjTest::_getTestIDFromObjectID | ( | $object_id | ) |
Returns the ILIAS test id for a given object id.
integer | $object_id | The object id |
Definition at line 6930 of file class.ilObjTest.php.
ilObjTest::_getTitleOutput | ( | $active_id | ) |
Returns the value of the title_output status.
integer | $active_id | The active id of a user |
Definition at line 3172 of file class.ilObjTest.php.
Referenced by assQuestionGUI\outQuestionPage().
ilObjTest::_getUsePreviousAnswers | ( | $active_id, | |
$user_active_user_setting = false |
|||
) |
Returns if the previous results should be hidden for a learner.
integer | $test_id | The test id |
boolean | $use_active_user_setting | If true, the tst_use_previous_answers- of the active user should be used as well |
Definition at line 3197 of file class.ilObjTest.php.
References $ilDB, $res, $row, and $use_previous_answers.
Referenced by assFileUploadGUI\getSolutionOutput(), assImagemapQuestionGUI\getSolutionOutput(), assFileUploadGUI\getTestOutput(), assErrorTextGUI\getTestOutput(), assOrderingHorizontalGUI\getTestOutput(), assNumericGUI\getTestOutput(), assTextQuestionGUI\getTestOutput(), assTextSubsetGUI\getTestOutput(), assSingleChoiceGUI\getTestOutput(), assJavaAppletGUI\getTestOutput(), assMultipleChoiceGUI\getTestOutput(), assImagemapQuestionGUI\getTestOutput(), assClozeTestGUI\getTestOutput(), assOrderingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutput(), assMatchingQuestionGUI\getTestOutputJS(), and assImagemapQuestionGUI\outQuestionForTest().
|
static |
Definition at line 8630 of file class.ilObjTest.php.
Referenced by assQuestion\_setReachedPoints(), deliverPDFFromHTML(), removeSelectedTestResults(), removeTestResultsForUser(), sendAdvancedNotification(), and sendSimpleNotification().
ilObjTest::_getVisitTimeOfParticipant | ( | $test_id, | |
$active_id | |||
) |
Returns the first and last visit of a participant.
integer | $test_id | The database ID of the test |
integer | $active_id | The active ID of the participant |
Definition at line 4602 of file class.ilObjTest.php.
References $ilDB, $row, and $test_id.
Referenced by getVisitTimeOfParticipant().
ilObjTest::_getWorkingTimeOfParticipantForPass | ( | $active_id, | |
$pass | |||
) |
Returns the complete working time in seconds for a test participant.
Definition at line 4562 of file class.ilObjTest.php.
References $ilDB, $pass, and $row.
Referenced by assQuestion\_updateTestPassResults().
& ilObjTest::_instanciateQuestion | ( | $question_id | ) |
Creates an instance of a question with a given question id.
integer | $question_id | The question id |
Definition at line 5635 of file class.ilObjTest.php.
Referenced by ilCourseObjectiveQuestion\__read(), cloneObject(), createRandomSolutions(), ilObjQuestionPool\deleteQuestion(), duplicateQuestionForTest(), duplicateQuestionpoolForTest(), ilTestEvaluationGUI\exportFileUploadsForAllParticipants(), getAllTestResults(), getDetailedTestResults(), getEstimatedWorkingTime(), ilCourseObjectiveQuestion\getMaxPointsByObjective(), ilCourseObjectiveQuestion\getMaxPointsByTest(), ilTestSequence\getSequenceSummary(), ilCourseObjectiveQuestionAssignmentTableGUI\parse(), removeDuplicatedQuestionpools(), removeQuestion(), ilTestEvaluationGUI\singleResults(), and ilTestExportQTI\toXML().
ilObjTest::_isComplete | ( | $obj_id | ) |
Returns true, if a test is complete for use.
Definition at line 1116 of file class.ilObjTest.php.
References $test, and ilObjTest().
ilObjTest::_lookupAnonymity | ( | $a_obj_id | ) |
Returns the anonymity status of a test with a given object id.
int | $a_obj_id | The object id of the test object |
Definition at line 9004 of file class.ilObjTest.php.
Referenced by ilLPListOfSettingsGUI\__checkItemAnonymized(), ilLPCollections\__read(), ilLPCollections\_getItems(), ilObjTestAccess\_getParticipantData(), ilTrObjectUsersPropsTableGUI\getSelectableColumns(), assJavaAppletGUI\getSolutionOutput(), assJavaAppletGUI\getTestOutput(), ilLearningProgressBaseGUI\isObjectAnonymized(), and ilLPFilter\searchFilterListener().
ilObjTest::_lookupAuthor | ( | $obj_id | ) |
Gets the authors name of the ilObjTest object.
Definition at line 6505 of file class.ilObjTest.php.
References $author, and ilObject\$id.
Referenced by assQuestion\getInstances().
|
static |
Lookup random test.
int | $a_obj_id |
Definition at line 2427 of file class.ilObjTest.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilCourseObjectiveQuestionAssignmentTableGUI\parse().
ilObjTest::_lookupRandomTestFromActiveId | ( | $active_id | ) |
Returns the random status of a test with a given object id.
int | $a_obj_id | The object id of the test object |
Definition at line 9026 of file class.ilObjTest.php.
Referenced by _getQuestionCountAndPointsForPassOfParticipant().
ilObjTest::_lookupTestObjIdForQuestionId | ( | $a_q_id | ) |
Get test Object ID for question ID.
Definition at line 9659 of file class.ilObjTest.php.
References $ilDB.
Referenced by ilObjMediaObject\getParentObjectIdForUsage().
ilObjTest::_setImportDirectory | ( | $a_import_dir = null | ) |
set import directory
Definition at line 907 of file class.ilObjTest.php.
References $_SESSION.
Referenced by ilObjTestGUI\uploadTstObject().
ilObjTest::addDefaults | ( | $a_name | ) |
Adds the defaults of this test to the test defaults.
string | $a_name | The name of the test defaults public |
Definition at line 9177 of file class.ilObjTest.php.
References $ilDB, getAnonymity(), getAnswerFeedback(), getAnswerFeedbackPoints(), getAutosave(), getCountSystem(), getCustomStyle(), getECTSFX(), getECTSGrades(), getECTSOutput(), getEnableProcessingTime(), getEndingTime(), getExamPdf(), getExportSettings(), getFinalStatement(), getForceJS(), getInstantFeedbackSolution(), getIntroduction(), getKiosk(), getListOfQuestionsSettings(), getMailNotification(), getMailNotificationType(), getMCScoring(), getNrOfTries(), getPassScoring(), getProcessingTime(), getRandomQuestionCount(), getRedirectAfterExam(), getRedirectOnlyKioskMode(), getReportingDate(), getResetProcessingTime(), getResultsPresentation(), getScoreReporting(), getSequenceSettings(), getShowCancel(), getShowFinalStatement(), getShowInfo(), getShowMarker(), getShowSerial(), getShuffleQuestions(), getStartingTime(), getTitleOutput(), getUsePreviousAnswers(), and isRandomTest().
ilObjTest::addExtraTime | ( | $active_id, | |
$minutes | |||
) |
Definition at line 10616 of file class.ilObjTest.php.
References $ilDB, $row, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), getTestId(), and logAction().
ilObjTest::addRandomQuestionpoolData | ( | $count = 0 , |
|
$qpl = 0 , |
|||
$position | |||
) |
Definition at line 2012 of file class.ilObjTest.php.
ilObjTest::applyDefaults | ( | $test_defaults_id | ) |
Applies given test defaults to this test.
integer | $test_defaults_id | The database id of the test defaults |
Definition at line 9243 of file class.ilObjTest.php.
References $total, evalTotalPersons(), getQuestionCount(), getTestDefaults(), saveToDb(), setAnonymity(), setAnswerFeedback(), setAnswerFeedbackPoints(), setAutosave(), setCountSystem(), setCustomStyle(), setECTSFX(), setECTSGrades(), setECTSOutput(), setEnableProcessingTime(), setEndingTime(), setExamPdf(), setExportSettings(), setFinalStatement(), setForceJS(), setInstantFeedbackSolution(), setIntroduction(), setKiosk(), setListOfQuestionsSettings(), setMailNotification(), setMailNotificationType(), setMCScoring(), setNrOfTries(), setPassScoring(), setProcessingTime(), setRandomQuestionCount(), setRandomTest(), setRedirectAfterExam(), setRedirectOnlyKioskMode(), setReportingDate(), setResetProcessingTime(), setResultsPresentation(), setScoreReporting(), setSequenceSettings(), setShowCancel(), setShowFinalStatement(), setShowInfo(), setShowMarker(), setShowSerial(), setShuffleQuestions(), setStartingTime(), setTitleOutput(), and setUsePreviousAnswers().
ilObjTest::buildName | ( | $user_id, | |
$firstname, | |||
$lastname, | |||
$title | |||
) |
Builds a user name for the output depending on test type and existence of the user.
int | $user_id | The database ID of the user |
string | $firstname | The first name of the user |
string | $lastname | The last name of the user |
string | $title | The title of the user |
Definition at line 5289 of file class.ilObjTest.php.
References ilObject\$lng, $name, ilObject\$title, and getAnonymity().
ilObjTest::canEditMarks | ( | ) |
Definition at line 7884 of file class.ilObjTest.php.
References $total, evalTotalPersons(), and getReportingDate().
ilObjTest::canShowCertificate | ( | $user_id, | |
$active_id | |||
) |
Checks whether the certificate button could be shown on the info page or not.
public
Definition at line 9740 of file class.ilObjTest.php.
References canShowTestResults(), getCertificateVisibility(), and getPassed().
ilObjTest::canShowTestResults | ( | $user_id | ) |
Definition at line 7859 of file class.ilObjTest.php.
References $starting_time, canViewResults(), endingTimeReached(), getActiveIdOfUser(), getScoreReporting(), getStartingTimeOfUser(), getTestSession(), isMaxProcessingTimeReached(), isTestFinishedToViewResults(), and REPORT_AFTER_TEST.
Referenced by canShowCertificate().
ilObjTest::canViewResults | ( | ) |
Returns true, if the test results can be viewed.
Definition at line 7840 of file class.ilObjTest.php.
References getReportingDate(), and getScoreReporting().
Referenced by canShowTestResults().
ilObjTest::checkMarks | ( | ) |
Definition at line 6400 of file class.ilObjTest.php.
ilObjTest::checkMaximumAllowedUsers | ( | ) |
Definition at line 8697 of file class.ilObjTest.php.
References $ilDB, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), getAllowedUsers(), getAllowedUsersTimeGap(), getTestId(), and logAction().
ilObjTest::cleanupMediaobjectUsage | ( | ) |
Cleans up the media objects for all text fields in a test which are using an RTE field.
private
Definition at line 1192 of file class.ilObjTest.php.
References ilRTE\_cleanupMediaObjectUsage(), getAllRTEContent(), ilObject\getId(), and ilObject\getType().
Referenced by saveToDb().
ilObjTest::cloneObject | ( | $a_target_id, | |
$a_copy_id = 0 |
|||
) |
Clone object.
public
int | ref id of parent container |
int | copy id |
Reimplemented from ilObject.
Definition at line 6602 of file class.ilObjTest.php.
References $ilDB, $ilLog, $mark_schema, ilCopyWizardOptions\_getInstance(), assQuestion\_getOriginalId(), _instanciateQuestion(), ilObject\cloneMetaData(), cloneRandomQuestions(), getAnonymity(), getAnswerFeedback(), getAnswerFeedbackPoints(), getAuthor(), getAutosave(), getCertificateVisibility(), getCountSystem(), getCustomStyle(), getECTSFX(), getECTSGrades(), getECTSOutput(), getEnableProcessingTime(), getEndingTime(), getExamPdf(), getFinalStatement(), getFixedParticipants(), getForceJS(), getInstantFeedbackSolution(), getIntroduction(), getKiosk(), getListOfQuestionsSettings(), getMailNotification(), getMailNotificationType(), getMCScoring(), getNrOfTries(), getPassScoring(), getPassword(), getProcessingTime(), getRandomQuestionCount(), getRedirectAfterExam(), getRedirectOnlyKioskMode(), ilObject\getRefId(), getReportingDate(), getResetProcessingTime(), getResultsPresentation(), getScoreCutting(), getScoreReporting(), getSequenceSettings(), getShowCancel(), getShowFinalStatement(), getShowInfo(), getShowMarker(), getShuffleQuestions(), getStartingTime(), getTitleOutput(), getUsePreviousAnswers(), isRandomTest(), and loadFromDb().
ilObjTest::cloneRandomQuestions | ( | $new_id | ) |
Duplicates the source random questionpools for another test.
integer | $new_id | Test id of the new test which should take the random questionpools public |
Definition at line 6569 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
Referenced by cloneObject().
ilObjTest::create | ( | $a_upload = false | ) |
create test object
Definition at line 514 of file class.ilObjTest.php.
References ilObject\create(), and createMetaData().
ilObjTest::createExportDirectory | ( | ) |
creates data directory for export files (data_dir/tst_data/tst_<id>/export, depending on data directory that is set in ILIAS setup/ini)
Definition at line 792 of file class.ilObjTest.php.
References ilUtil\getDataDir(), ilObject\getId(), and ilUtil\makeDir().
ilObjTest::createImportDirectory | ( | ) |
creates data directory for import files (data_dir/tst_data/tst_<id>/import, depending on data directory that is set in ILIAS setup/ini)
Definition at line 939 of file class.ilObjTest.php.
References ilObject\$ilias, ilUtil\getDataDir(), and ilUtil\makeDir().
ilObjTest::createMetaData | ( | ) |
Create meta data entry.
public
Reimplemented from ilObject.
Definition at line 6459 of file class.ilObjTest.php.
References saveAuthorToMetadata().
Referenced by create().
ilObjTest::createNewAccessCode | ( | ) |
Returns a new, unused test access code.
Definition at line 8600 of file class.ilObjTest.php.
References isAccessCodeUsed().
& ilObjTest::createQuestionGUI | ( | $question_type, | |
$question_id = -1 |
|||
) |
Creates a question GUI instance of a given question type.
integer | $question_type | The question type of the question |
integer | $question_id | The question id of the question, if available |
Definition at line 5610 of file class.ilObjTest.php.
References assQuestion\_includeClass(), and getQuestionType().
Referenced by packageRun(), and recalculateSolutions().
ilObjTest::createRandomSolutions | ( | $number | ) |
Definition at line 9995 of file class.ilObjTest.php.
References $data, $ilDB, $pass, $query, $testSequence, $testSession, _instanciateQuestion(), getNrOfTries(), getQuestionCount(), ilObject\getRefId(), getTestId(), isRandomTest(), and setActiveTestSubmitted().
ilObjTest::createReference | ( | ) |
Creates a database reference id for the object (saves the object to the database and creates a reference id in the database)
public
Reimplemented from ilObject.
Definition at line 550 of file class.ilObjTest.php.
References saveToDb().
& ilObjTest::createTestSequence | ( | $active_id, | |
$pass, | |||
$shuffle | |||
) |
Definition at line 9550 of file class.ilObjTest.php.
References $pass, getQuestionCount(), and isRandomTest().
& ilObjTest::createTestSession | ( | ) |
Creates the test session data for the active user.
Definition at line 9482 of file class.ilObjTest.php.
References $_SESSION, $testSession, ilObject\getRefId(), and getTestId().
ilObjTest::delete | ( | ) |
delete object and all related data
public
Reimplemented from ilObject.
Definition at line 574 of file class.ilObjTest.php.
References ilObject\deleteMetaData(), and deleteTest().
ilObjTest::deleteDefaults | ( | $test_default_id | ) |
Deletes the defaults for a test.
integer | $test_default_id | The database ID of the test defaults public |
Definition at line 9162 of file class.ilObjTest.php.
References $ilDB.
ilObjTest::deleteRunPackage | ( | $date | ) |
Definition at line 10409 of file class.ilObjTest.php.
References $file, and getRunPackageFilename().
Referenced by obliterateRun().
ilObjTest::deleteTest | ( | ) |
Deletes the test and all related objects, files and database entries.
public
Definition at line 596 of file class.ilObjTest.php.
References $ilDB, $mobs, $row, ilObjMediaObject\_exists(), ilObjMediaObject\_getMobsOfObject(), ilObjMediaObject\_removeUsage(), ilUtil\delDir(), ilUtil\getDataDir(), ilObject\getId(), getTestId(), isRandomTest(), removeAllTestEditings(), removeDuplicatedQuestionpools(), and removeQuestion().
Referenced by delete().
ilObjTest::deliverPDFFromHTML | ( | $content, | |
$title = NULL , |
|||
$filename = NULL |
|||
) |
Delivers a PDF file from XHTML.
string | $html | The XHTML string public |
Definition at line 9312 of file class.ilObjTest.php.
References $_GET, $config, $filename, $ilLog, $tidy, ilObject\$title, _getUserIdFromActiveId(), ilObjUser\_lookupName(), ilUtil\getStyleSheetLocation(), getTestStyleLocation(), ilObject\getTitle(), and ilUtil\prepareFormOutput().
Referenced by packageRun().
ilObjTest::disinviteUser | ( | $user_id | ) |
Disinvites a user from a test.
integer | $user_id | The database id of the disinvited user public |
Definition at line 7298 of file class.ilObjTest.php.
References $ilDB, and getTestId().
ilObjTest::duplicateQuestionForTest | ( | $question_id | ) |
Takes a question and creates a copy of the question for use in the test.
integer | $question_id | The database id of the question |
Definition at line 3892 of file class.ilObjTest.php.
References _instanciateQuestion().
Referenced by insertQuestion(), and saveRandomQuestion().
|
protected |
Duplicates all valid questions of a questionpool for use in a random test.
Definition at line 1980 of file class.ilObjTest.php.
References $ilDB, $row, _instanciateQuestion(), ilObject\_lookupTitle(), and getTestId().
Referenced by saveRandomQuestionpools().
ilObjTest::endingTimeReached | ( | ) |
Returns true if the ending time of a test is reached An ending time is not available for self assessment tests.
Definition at line 5723 of file class.ilObjTest.php.
References getEndingTime().
Referenced by canShowTestResults(), and isExecutable().
& ilObjTest::evalResultsOverview | ( | ) |
Creates an associated array with the results of all participants of a test.
Definition at line 5176 of file class.ilObjTest.php.
References _evalResultsOverview(), and getTestId().
& ilObjTest::evalResultsOverviewOfParticipant | ( | $active_id | ) |
Creates an associated array with the results for a given participant of a test.
integer | $active_id | The active id of the participant |
Definition at line 5236 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
& ilObjTest::evalStatistical | ( | $active_id | ) |
Returns the statistical evaluation of the test for a specified user.
Definition at line 4630 of file class.ilObjTest.php.
References $ilDB, $pass, $row, _getResultPass(), and getTestResult().
ilObjTest::evalTotalFinished | ( | ) |
Returns the number of total finished tests.
Definition at line 4908 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
Referenced by getAggregatedResultsData().
& ilObjTest::evalTotalParticipantsArray | ( | $name_sort_order = "asc" | ) |
Returns all participants who started the test.
Definition at line 4866 of file class.ilObjTest.php.
References $ilDB, $row, getAnonymity(), and getTestId().
Referenced by getTotalPointsPassedArray().
ilObjTest::evalTotalPersons | ( | ) |
Returns the number of persons who started the test.
Definition at line 4449 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
Referenced by applyDefaults(), canEditMarks(), and saveToDb().
& ilObjTest::evalTotalPersonsArray | ( | $name_sort_order = "asc" | ) |
Returns all persons who started the test.
Definition at line 4824 of file class.ilObjTest.php.
References $ilDB, $row, getAnonymity(), and getTestId().
ilObjTest::evalTotalStartedAverageTime | ( | ) |
Returns the average processing time for all started tests.
Definition at line 5360 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
Referenced by getAggregatedResultsData().
ilObjTest::exportFileItems | ( | $a_target_dir, | |
& | $expLog | ||
) |
export files of file itmes
Definition at line 6289 of file class.ilObjTest.php.
Referenced by exportPagesXML().
ilObjTest::exportPagesXML | ( | & | $a_xml_writer, |
$a_inst, | |||
$a_target_dir, | |||
& | $expLog | ||
) |
export pages of test to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 6129 of file class.ilObjTest.php.
References $ilBench, exportFileItems(), exportXMLMediaObjects(), exportXMLMetaData(), and exportXMLPageObjects().
ilObjTest::exportXMLMediaObjects | ( | & | $a_xml_writer, |
$a_inst, | |||
$a_target_dir, | |||
& | $expLog | ||
) |
export media objects to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 6268 of file class.ilObjTest.php.
References ilObjMediaObject\_exists().
Referenced by exportPagesXML().
ilObjTest::exportXMLMetaData | ( | & | $a_xml_writer | ) |
export content objects meta data to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 6173 of file class.ilObjTest.php.
References ilObject\getId(), and ilObject\getType().
Referenced by exportPagesXML().
ilObjTest::exportXMLPageObjects | ( | & | $a_xml_writer, |
$a_inst, | |||
& | $expLog | ||
) |
export page objects to xml (see ilias_co.dtd)
object | $a_xml_writer | ilXmlWriter object that receives the xml data |
Definition at line 6205 of file class.ilObjTest.php.
References $ilBench.
Referenced by exportPagesXML().
ilObjTest::fromXML | ( | & | $assessment | ) |
Receives parameters from a QTI parser and creates a valid ILIAS test object.
object | $assessment | The QTI assessment object public |
Definition at line 5866 of file class.ilObjTest.php.
References $_SESSION, $ilLog, $metadata, ilObject\$type, ilRTE\_replaceMediaObjectImageSrc(), ilObjMediaObject\_saveTempFileAsMediaObject(), ilObjMediaObject\_saveUsage(), getFinalStatement(), ilObject\getId(), getImportDirectory(), getIntroduction(), QTIMaterialToString(), saveToDb(), setAllowedUsers(), setAllowedUsersTimeGap(), setAnonymity(), setAnswerFeedback(), setAnswerFeedbackPoints(), setAuthor(), setAutosave(), setCountSystem(), setCustomStyle(), ilObject\setDescription(), setEnableProcessingTime(), setEndingTime(), setExamPdf(), setExportSettings(), setFinalStatement(), setFixedParticipants(), setForceJS(), setInstantFeedbackSolution(), setIntroduction(), setKiosk(), setListOfQuestionsSettings(), setMailNotification(), setMailNotificationType(), setMCScoring(), setNrOfTries(), setPassScoring(), setPassword(), setProcessingTime(), setRandomQuestionCount(), setRandomTest(), setRedirectAfterExam(), setRedirectOnlyKioskMode(), setReportingDate(), setResetProcessingTime(), setResultsPresentation(), setScoreCutting(), setScoreReporting(), setSequenceSettings(), setShowCancel(), setShowFinalStatement(), setShowInfo(), setShowMarker(), setShowSerial(), setShowSolutionPrintview(), setShuffleQuestions(), setStartingTime(), ilObject\setTitle(), setTitleOutput(), and setUsePreviousAnswers().
ilObjTest::generateRandomPass | ( | $nr, | |
$qpls, | |||
$pass = NULL |
|||
) |
Generates a random test pass for a random test.
integer | $nr | Number of questions to return |
array | $qpls | Array of questionpools |
integer | $pass | Test pass |
Definition at line 5438 of file class.ilObjTest.php.
References $ilDB, $pass, $row, getTestId(), and randomSelectQuestions().
Referenced by generateRandomQuestions().
ilObjTest::generateRandomQuestions | ( | $active_id, | |
$pass = NULL |
|||
) |
Generates new random questions for the active user.
private
Definition at line 1701 of file class.ilObjTest.php.
References $data, $ilDB, $ilErr, ilObject\$ilias, $pass, generateRandomPass(), getNrOfResultsForPass(), getRandomQuestionCount(), getRandomQuestionpools(), getShuffleQuestions(), getTestId(), hasRandomQuestionsForPass(), and saveRandomQuestion().
ilObjTest::getAccessCodeSession | ( | ) |
Definition at line 8648 of file class.ilObjTest.php.
References $_SESSION, ilObject\$id, and getTestId().
ilObjTest::getActiveIdOfUser | ( | $user_id = "" , |
|
$anonymous_id = "" |
|||
) |
Gets the active id of a given user.
integer | $user_id | The database id of the user |
string | $anonymous_id | The anonymous id if the test is an anonymized test |
Definition at line 4245 of file class.ilObjTest.php.
References $_SESSION, $ilDB, $row, and getTestId().
Referenced by canShowTestResults(), getAllQuestions(), getExistingQuestions(), isExecutable(), loadQuestions(), removeTestResultsForUser(), and setQuestionSetSolved().
ilObjTest::getAggregatedResultsData | ( | ) |
Returns the aggregated test results.
public
Definition at line 9819 of file class.ilObjTest.php.
References $data, $results, evalTotalFinished(), evalTotalStartedAverageTime(), and getCompleteEvaluationData().
ilObjTest::getAllowedUsers | ( | ) |
Definition at line 8677 of file class.ilObjTest.php.
Referenced by checkMaximumAllowedUsers(), and saveToDb().
ilObjTest::getAllowedUsersTimeGap | ( | ) |
Definition at line 8687 of file class.ilObjTest.php.
Referenced by checkMaximumAllowedUsers(), and saveToDb().
& ilObjTest::getAllQuestions | ( | $pass = NULL | ) |
Returns all questions of a test in test order.
Definition at line 4205 of file class.ilObjTest.php.
References $ilDB, $pass, $row, _getPass(), getActiveIdOfUser(), isRandomTest(), and loadQuestions().
ilObjTest::getAllRTEContent | ( | ) |
Returns the content of all RTE enabled text areas in the test.
private
Definition at line 1179 of file class.ilObjTest.php.
References getFinalStatement(), and getIntroduction().
Referenced by cleanupMediaobjectUsage().
ilObjTest::getAllTestResults | ( | $participants, | |
$prepareForCSV = true |
|||
) |
returns all test results for all participants
array | $partipants | array of user ids |
boolean | if true, the result will be prepared for csv output (see processCSVRow) |
Definition at line 7462 of file class.ilObjTest.php.
References ilObject\$lng, $results, $row, _instanciateQuestion(), getAnonymity(), getECTSGrade(), getTotalPointsPassedArray(), and processCSVRow().
ilObjTest::getAnonymity | ( | ) |
Returns the anonymity status of the test.
Definition at line 8853 of file class.ilObjTest.php.
Referenced by addDefaults(), buildName(), cloneObject(), evalTotalParticipantsArray(), evalTotalPersonsArray(), getAllTestResults(), getDetailedTestResults(), getInvitedUsers(), getParticipants(), getTestParticipants(), getUserData(), saveToDb(), and userLookupFullName().
ilObjTest::getAnsweredQuestionCount | ( | $active_id, | |
$pass = NULL |
|||
) |
Retrieves the number of answered questions for a given user in a given test.
integer | $user_id | The user id |
integer | $test_id | The test id |
integer | $pass | The pass of the test (optional) |
Definition at line 7710 of file class.ilObjTest.php.
References $pass, assQuestion\_isWorkedThrough(), isRandomTest(), and loadQuestions().
ilObjTest::getAnswerFeedback | ( | ) |
Returns 1 if answer specific feedback is activated.
Definition at line 2805 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getAnswerFeedbackPoints | ( | ) |
Returns 1 if answer specific feedback as reached points is activated.
Definition at line 2817 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getAuthor | ( | ) |
Gets the authors name of the ilObjTest object.
Definition at line 6472 of file class.ilObjTest.php.
References $author, ilObject\$id, ilObject\getId(), and ilObject\getType().
Referenced by cloneObject(), loadFromDb(), and saveToDb().
ilObjTest::getAutosave | ( | ) |
Returns if autosave is enabled.
Definition at line 8913 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
& ilObjTest::getAvailableDefaults | ( | $sortby = "name" , |
|
$sortorder = "asc" |
|||
) |
Returns the available test defaults for the active user.
string | $sortby | Sort field for the database query |
string | $sortorder | Sort order for the database query |
Definition at line 9113 of file class.ilObjTest.php.
& ilObjTest::getAvailableQuestionpools | ( | $use_object_id = false , |
|
$equal_points = false , |
|||
$could_be_offline = false , |
|||
$show_path = FALSE , |
|||
$with_questioncount = FALSE , |
|||
$permission = "read" |
|||
) |
Returns the available question pools for the active user.
Definition at line 5401 of file class.ilObjTest.php.
References ilObjQuestionPool\_getAvailableQuestionpools().
ilObjTest::getAvailableQuestions | ( | $arrFilter, | |
$completeonly = 0 |
|||
) |
Calculates the available questions for a test.
public
Definition at line 5746 of file class.ilObjTest.php.
References $ilDB, $row, ilObjQuestionPool\_getAvailableQuestionpools(), getExistingQuestions(), getQuestionTypeTranslations(), and isPluginActive().
ilObjTest::getCertificateVisibility | ( | ) |
Returns the visibility settings of the certificate.
Definition at line 8831 of file class.ilObjTest.php.
Referenced by canShowCertificate(), cloneObject(), and saveToDb().
& ilObjTest::getCompleteEvaluationData | ( | $withStatistics = TRUE , |
|
$filterby = "" , |
|||
$filtertext = "" |
|||
) |
Definition at line 5156 of file class.ilObjTest.php.
References $data, and getUnfilteredEvaluationData().
Referenced by getAggregatedResultsData(), and recalculateSolutions().
ilObjTest::getCompleteWorkingTime | ( | $user_id | ) |
Returns the complete working time in seconds a user worked on the test.
Definition at line 4467 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
ilObjTest::getCompleteWorkingTimeOfParticipant | ( | $active_id | ) |
Returns the complete working time in seconds for a test participant.
Definition at line 4536 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
& ilObjTest::getCompleteWorkingTimeOfParticipants | ( | ) |
Returns the complete working time in seconds for all test participants.
Definition at line 4493 of file class.ilObjTest.php.
References _getCompleteWorkingTimeOfParticipants(), and getTestId().
ilObjTest::getCountSystem | ( | ) |
Gets the count system for the calculation of points.
Definition at line 2829 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getCustomStyle | ( | ) |
Get the custom style.
Definition at line 2330 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), getTestStyleLocation(), and saveToDb().
ilObjTest::getCustomStyles | ( | ) |
Return the available custom styles.
Definition at line 2342 of file class.ilObjTest.php.
References $filename, $results, ilUtil\getStyleSheetLocation(), and ilFileUtils\recursive_dirscan().
ilObjTest::getDetailedTestResults | ( | $participants | ) |
returns all test results for all participants
array | $partipants | array of user ids |
boolean | if true, the result will be prepared for csv output (see processCSVRow) |
Definition at line 9604 of file class.ilObjTest.php.
References ilObject\$lng, $results, $row, _instanciateQuestion(), and getAnonymity().
ilObjTest::getECTSFX | ( | ) |
Returns the ECTS FX grade.
Definition at line 2590 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getECTSGrade | ( | $passed_array, | |
$reached_points, | |||
$max_points | |||
) |
Returns the ECTS grade for a number of reached points.
array | $passed_array | An array with the points of all users who passed the test |
double | $reached_points | The points reached in the test |
double | $max_points | The maximum number of points for the test |
Definition at line 6327 of file class.ilObjTest.php.
References _getECTSGrade().
Referenced by getAllTestResults(), and getUnfilteredEvaluationData().
& ilObjTest::getECTSGrades | ( | ) |
Returns the ECTS grades.
Definition at line 2614 of file class.ilObjTest.php.
References $ects_grades.
Referenced by addDefaults(), and cloneObject().
ilObjTest::getECTSOutput | ( | ) |
Indicates if ECTS grades output is presented in this test.
Definition at line 2566 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getEnableProcessingTime | ( | ) |
Returns the state of the processing time (enabled/disabled)
Definition at line 3317 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), isExecutable(), isMaxProcessingTimeReached(), and saveToDb().
ilObjTest::getEndingTime | ( | ) |
Returns the ending time of the test.
Definition at line 3353 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), endingTimeReached(), getSecondsUntilEndingTime(), isExecutable(), and saveToDb().
ilObjTest::getEstimatedWorkingTime | ( | ) |
Returns the estimated working time for the test calculated from the working time of the contained questions.
Definition at line 5413 of file class.ilObjTest.php.
References _instanciateQuestion().
Referenced by getProcessingTimeAsArray().
ilObjTest::getEvaluationAdditionalFields | ( | ) |
Gets additional user fields that should be shown in the user evaluation.
Definition at line 9706 of file class.ilObjTest.php.
ilObjTest::getExamPdf | ( | ) |
Gets the "save exam pdf" setting.
Definition at line 2506 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
& ilObjTest::getExistingQuestions | ( | $pass = NULL | ) |
Get the id's of the questions which are already part of the test.
Definition at line 4062 of file class.ilObjTest.php.
References $data, $ilDB, $pass, getActiveIdOfUser(), getTestId(), and isRandomTest().
Referenced by getAvailableQuestions().
ilObjTest::getExportDirectory | ( | ) |
Get the location of the export directory for the test.
public
Definition at line 824 of file class.ilObjTest.php.
References ilUtil\getDataDir().
ilObjTest::getExportFiles | ( | $dir | ) |
Get a list of the already exported files in the export directory.
Definition at line 837 of file class.ilObjTest.php.
ilObjTest::getExportSettings | ( | ) |
Definition at line 10517 of file class.ilObjTest.php.
References $exportsettings.
Referenced by addDefaults(), and saveToDb().
ilObjTest::getExportSettingsRespectShuffle | ( | ) |
Definition at line 10568 of file class.ilObjTest.php.
Referenced by setExportSettingsRespectShuffle().
ilObjTest::getExportSettingsSingleChoiceShort | ( | ) |
Definition at line 10541 of file class.ilObjTest.php.
Referenced by setExportSettingsSingleChoiceShort().
ilObjTest::getExtraTime | ( | $active_id | ) |
Definition at line 10600 of file class.ilObjTest.php.
Referenced by getProcessingTimeInSeconds().
ilObjTest::getFinalStatement | ( | ) |
Gets the final statement.
Definition at line 2470 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), fromXML(), getAllRTEContent(), and saveToDb().
ilObjTest::getFixedParticipants | ( | ) |
Returns the fixed participants status.
Definition at line 8973 of file class.ilObjTest.php.
Referenced by cloneObject(), and saveToDb().
ilObjTest::getForceJS | ( | ) |
Gets whether JavaScript should be forced for tests.
Definition at line 2530 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), getJavaScriptOutput(), and saveToDb().
& ilObjTest::getGroupData | ( | $ids | ) |
Definition at line 7231 of file class.ilObjTest.php.
References ilObject\$ref_id, ilObject\_lookupDescription(), ilObject\_lookupObjId(), and ilObject\_lookupTitle().
ilObjTest::getImagePath | ( | ) |
Returns the image path for web accessable images of a test The image path is under the CLIENT_WEB_DIR in assessment/REFERENCE_ID_OF_TEST/images.
public
Definition at line 5584 of file class.ilObjTest.php.
References ilObject\getId().
ilObjTest::getImagePathWeb | ( | ) |
Returns the web image path for web accessable images of a test The image path is under the web accessable data dir in assessment/REFERENCE_ID_OF_TEST/images.
public
Definition at line 5595 of file class.ilObjTest.php.
References ilObject\getId(), ILIAS_ABSOLUTE_PATH, and ilUtil\removeTrailingPathSeparators().
ilObjTest::getImportDirectory | ( | ) |
Get the import directory location of the test.
Definition at line 966 of file class.ilObjTest.php.
References $import_dir, and ilUtil\getDataDir().
Referenced by fromXML().
ilObjTest::getImportMapping | ( | ) |
get array of (two) new created questions for import id
Definition at line 6306 of file class.ilObjTest.php.
ilObjTest::getInstantFeedbackSolution | ( | ) |
Returns 1 if the correct solution will be shown after answering a question.
Definition at line 2793 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getIntroduction | ( | ) |
Gets the introduction text of the ilObjTest object.
Definition at line 2459 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), fromXML(), getAllRTEContent(), and saveToDb().
& ilObjTest::getInvitedUsers | ( | $user_id = "" , |
|
$order = "login, lastname, firstname" |
|||
) |
Returns a list of all invited users in a test.
Definition at line 7012 of file class.ilObjTest.php.
References $ilDB, $row, getAnonymity(), and getTestId().
ilObjTest::getJavaScriptOutput | ( | ) |
Returns if Javascript should be chosen for drag & drop actions for the active user.
Definition at line 9467 of file class.ilObjTest.php.
References $_GET, and getForceJS().
ilObjTest::getKiosk | ( | ) |
Returns the kiosk mode.
Definition at line 3001 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getKioskMode | ( | ) |
Returns the kiosk mode.
Definition at line 3026 of file class.ilObjTest.php.
Referenced by setKioskMode().
ilObjTest::getListOfQuestions | ( | ) |
Returns if the list of questions should be presented to the user or not.
Definition at line 8079 of file class.ilObjTest.php.
Referenced by setListOfQuestionsDescription(), setListOfQuestionsEnd(), and setListOfQuestionsStart().
ilObjTest::getListOfQuestionsDescription | ( | ) |
Returns TRUE if the list of questions should be presented with the question descriptions.
Definition at line 8193 of file class.ilObjTest.php.
Referenced by setListOfQuestionsDescription().
ilObjTest::getListOfQuestionsEnd | ( | ) |
Returns if the list of questions should be presented as the last page of the test.
Definition at line 8154 of file class.ilObjTest.php.
Referenced by setListOfQuestionsEnd().
ilObjTest::getListOfQuestionsSettings | ( | ) |
Returns the settings for the list of questions options in the test properties This could contain one of the following values: 0 = No list of questions offered 1 = A list of questions is offered 3 = A list of questions is offered and the list of questions is shown as first page of the test 5 = A list of questions is offered and the list of questions is shown as last page of the test 7 = A list of questions is offered and the list of questions is shown as first and last page of the test.
Definition at line 8051 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getListOfQuestionsStart | ( | ) |
Returns if the list of questions should be presented as the first page of the test.
Definition at line 8115 of file class.ilObjTest.php.
Referenced by setListOfQuestionsStart().
ilObjTest::getMailNotification | ( | ) |
Get mail notification settings.
Definition at line 9913 of file class.ilObjTest.php.
References $mailnotification.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getMailNotificationType | ( | ) |
Definition at line 10493 of file class.ilObjTest.php.
References $mailnottype.
Referenced by addDefaults(), cloneObject(), and saveToDb().
|
static |
Retrieves the manual feedback for a question in a test.
integer | $active_id | Active ID of the user |
integer | $question_id | Question ID |
integer | $pass | Pass number |
Definition at line 9396 of file class.ilObjTest.php.
References $ilDB, $pass, $row, and ilRTE\_replaceMediaObjectImageSrc().
Referenced by assQuestionGUI\getAnswerFeedbackOutput().
ilObjTest::getMarkSchema | ( | ) |
Definition at line 6405 of file class.ilObjTest.php.
References $mark_schema.
ilObjTest::getMCScoring | ( | ) |
Gets the scoring type for multiple choice questions.
Definition at line 2863 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getNrOfResultsForPass | ( | $active_id, | |
$pass | |||
) |
Calculates the number of user results for a specific test pass.
private
Definition at line 1666 of file class.ilObjTest.php.
Referenced by generateRandomQuestions(), and getStartTestLabel().
ilObjTest::getNrOfTries | ( | ) |
Returns the nr of tries for the test.
Definition at line 2989 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), createRandomSolutions(), hasNrOfTriesRestriction(), isExecutable(), isNrOfTriesReached(), and saveToDb().
& ilObjTest::getParticipants | ( | ) |
Returns all persons who started the test.
Definition at line 4773 of file class.ilObjTest.php.
References $ilDB, $name, $row, getAnonymity(), and getTestId().
ilObjTest::getParticipantsForTestAndQuestion | ( | $test_id, | |
$question_id | |||
) |
Creates an associated array with all active id's for a given test and original question id.
public
Definition at line 9791 of file class.ilObjTest.php.
References $ilDB, $row, and $test_id.
|
protected |
Definition at line 9714 of file class.ilObjTest.php.
References $ilDB, $row, _getResultPass(), and getTestResult().
Referenced by canShowCertificate().
ilObjTest::getPassFinishDate | ( | $active_id, | |
$pass | |||
) |
Retrieves the number of answered questions for a given user in a given test.
integer | $user_id | The user id |
integer | $test_id | The test id |
integer | $pass | The pass of the test |
Definition at line 7737 of file class.ilObjTest.php.
References $ilDB, $pass, and $row.
Referenced by isTestFinishedToViewResults().
ilObjTest::getPassScoring | ( | ) |
Gets the pass scoring type.
Definition at line 2899 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getPassword | ( | ) |
Returns the password for test access.
Definition at line 2887 of file class.ilObjTest.php.
Referenced by cloneObject(), and saveToDb().
ilObjTest::getProcessingTime | ( | ) |
Returns the processing time for the test.
Definition at line 3235 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), getProcessingTimeInSeconds(), and saveToDb().
ilObjTest::getProcessingTimeAsArray | ( | ) |
Returns the processing time for the test.
Definition at line 3246 of file class.ilObjTest.php.
References getEstimatedWorkingTime().
ilObjTest::getProcessingTimeInSeconds | ( | $active_id = "" | ) |
Returns the processing time for the test in seconds.
Definition at line 3276 of file class.ilObjTest.php.
References getExtraTime(), and getProcessingTime().
Referenced by isMaxProcessingTimeReached().
ilObjTest::getQuestionCount | ( | ) |
Returns the number of questions in the test.
Definition at line 6706 of file class.ilObjTest.php.
References $data, getRandomQuestionCount(), getRandomQuestionpools(), and isRandomTest().
Referenced by applyDefaults(), createRandomSolutions(), createTestSequence(), getQuestionsOfPass(), getQuestionsOfTest(), and getUnfilteredEvaluationData().
ilObjTest::getQuestionDataset | ( | $question_id | ) |
Returns the dataset for a given question id.
integer | $question_id | The database id of the question |
Definition at line 4044 of file class.ilObjTest.php.
& ilObjTest::getQuestionOIDsByAID | ( | ) |
Definition at line 3998 of file class.ilObjTest.php.
References $ilDB, $query, $row, and isRandomTest().
ilObjTest::getQuestions | ( | ) |
Definition at line 10595 of file class.ilObjTest.php.
References $questions.
& ilObjTest::getQuestionsOfPass | ( | $active_id, | |
$pass | |||
) |
Retrieves all the assigned questions for a test participant in a given test pass.
Definition at line 4969 of file class.ilObjTest.php.
References $ilDB, $pass, $row, getQuestionCount(), and isRandomTest().
& ilObjTest::getQuestionsOfTest | ( | $active_id | ) |
Retrieves all the assigned questions for all test passes of a test participant.
Definition at line 4926 of file class.ilObjTest.php.
References $ilDB, $row, getQuestionCount(), and isRandomTest().
ilObjTest::getQuestiontext | ( | $question_id | ) |
Returns the question text for a given question.
integer | $question_id | The question id |
Definition at line 6986 of file class.ilObjTest.php.
ilObjTest::getQuestionTitle | ( | $title | ) |
Returns the title of a test question and checks if the title output is allowed.
If not, the localized text "question" will be returned.
string | $title | The original title of the question |
Definition at line 4024 of file class.ilObjTest.php.
References ilObject\$title, and getTitleOutput().
& ilObjTest::getQuestionTitles | ( | ) |
Returns the titles of the test questions in question sequence.
Definition at line 3955 of file class.ilObjTest.php.
References $ilDB, $row, getTestId(), and isRandomTest().
& ilObjTest::getQuestionTitlesAndIndexes | ( | ) |
Returns the titles of the test questions in question sequence.
Definition at line 3980 of file class.ilObjTest.php.
References $ilDB, $row, getTestId(), and isRandomTest().
ilObjTest::getQuestionType | ( | $question_id | ) |
Returns the question type of a question with a given id.
integer | $question_id | The database id of the question |
Definition at line 4098 of file class.ilObjTest.php.
Referenced by createQuestionGUI().
& ilObjTest::getQuestionTypeTranslations | ( | ) |
Definition at line 5827 of file class.ilObjTest.php.
References $ilDB, $ilLog, ilObject\$lng, $row, ilPlugin\getPluginObject(), and IL_COMP_MODULE.
Referenced by getAvailableQuestions().
ilObjTest::getRandomQuestionCount | ( | ) |
Gets the number of random questions used for a random test.
Definition at line 2448 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), generateRandomQuestions(), getQuestionCount(), isComplete(), saveRandomQuestionCount(), and saveToDb().
ilObjTest::getRandomQuestionDuplicate | ( | $question_id, | |
$active_id | |||
) |
Returns the question id of the duplicate of a question which is already in use in a random test.
integer | $question_id | Question ID of the original question |
integer | $active_id | Active ID of the user |
Definition at line 1641 of file class.ilObjTest.php.
Referenced by saveRandomQuestion().
& ilObjTest::getRandomQuestionpoolData | ( | ) |
Returns an array containing ilRandomTestData objects containing the random test selection.
public
Definition at line 2055 of file class.ilObjTest.php.
References $ilDB, $random_questionpool_data, $row, and getTestId().
& ilObjTest::getRandomQuestionpools | ( | ) |
Returns an array containing the random questionpools saved to the database.
public
Definition at line 1821 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
Referenced by generateRandomQuestions(), getQuestionCount(), and isComplete().
ilObjTest::getRedirectAfterExam | ( | ) |
Gets redirect after exam URL.
Definition at line 2482 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getRedirectOnlyKioskMode | ( | ) |
Gets the "redirect only in kiosk mode" setting.
Definition at line 2494 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getReportingDate | ( | ) |
Gets the reporting date of the ilObjTest object.
Definition at line 2977 of file class.ilObjTest.php.
Referenced by addDefaults(), canEditMarks(), canViewResults(), cloneObject(), and saveToDb().
ilObjTest::getResetProcessingTime | ( | ) |
Returns whether the processing time should be reset or not.
Definition at line 3329 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), getStartingTimeOfUser(), isExecutable(), and saveToDb().
ilObjTest::getResultsForActiveId | ( | $active_id | ) |
Definition at line 10057 of file class.ilObjTest.php.
References $ilDB, $row, and assQuestion\_updateTestResultCache().
Referenced by getTestResult().
ilObjTest::getResultsPresentation | ( | ) |
Returns the combined results presentation value.
Definition at line 8232 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
& ilObjTest::getRoleData | ( | $ids | ) |
Definition at line 7243 of file class.ilObjTest.php.
References ilObject\_lookupDescription(), and ilObject\_lookupTitle().
ilObjTest::getRunDates | ( | ) |
Returns an array of YYYY-MM-DD date strings for days that have archived runs of this test.
Definition at line 10084 of file class.ilObjTest.php.
References $ilLog, ARCHIVE_HTML_DIR, and getTestId().
Referenced by getRunPackageDates(), and hasRun().
ilObjTest::getRunPackageDates | ( | ) |
Like getRunDates(), yet only return dates for runs that have packaged archives in the course folder.
Definition at line 10107 of file class.ilObjTest.php.
References ARCHIVE_PDF_DIR, getRunDates(), and getTestId().
Referenced by hasRunPackage().
ilObjTest::getRunPackageFilename | ( | $date | ) |
Definition at line 10396 of file class.ilObjTest.php.
References ARCHIVE_PDF_DIR, getTestId(), and hasRunPackage().
Referenced by deleteRunPackage().
ilObjTest::getScoreCutting | ( | ) |
Determines if the score of a question should be cut at 0 points or the score of the whole test.
Definition at line 2875 of file class.ilObjTest.php.
Referenced by cloneObject(), getTestResult(), and saveToDb().
ilObjTest::getScoreReporting | ( | ) |
Gets the score reporting of the ilObjTest object.
Definition at line 2781 of file class.ilObjTest.php.
Referenced by addDefaults(), canShowTestResults(), canViewResults(), cloneObject(), and saveToDb().
ilObjTest::getSecondsUntilEndingTime | ( | ) |
Returns the seconds left from the actual time until the ending time.
Definition at line 3296 of file class.ilObjTest.php.
References getEndingTime().
ilObjTest::getSequenceSettings | ( | ) |
Gets the sequence settings of the ilObjTest object.
Definition at line 2769 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getSerial | ( | ) |
Definition at line 10720 of file class.ilObjTest.php.
References getTestSession().
ilObjTest::getShowCancel | ( | ) |
Returns whether the cancel test button is shown or not.
Definition at line 8883 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getShowFinalStatement | ( | ) |
Returns whether the final statement should be shown or not.
Definition at line 2542 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getShowInfo | ( | ) |
Gets whether the complete information page is shown or the required data only.
Definition at line 2518 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getShowKioskModeParticipant | ( | ) |
Returns the status of the kiosk mode participant.
Definition at line 3107 of file class.ilObjTest.php.
Referenced by setShowKioskModeParticipant().
ilObjTest::getShowKioskModeTitle | ( | ) |
Returns the status of the kiosk mode title.
Definition at line 3067 of file class.ilObjTest.php.
Referenced by setShowKioskModeTitle().
ilObjTest::getShowMarker | ( | ) |
Returns whether the marker button is shown or not.
Definition at line 8943 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
ilObjTest::getShowPassDetails | ( | ) |
Returns if the pass details should be shown when a test is not finished.
Definition at line 8243 of file class.ilObjTest.php.
Referenced by setShowPassDetails().
ilObjTest::getShowSerial | ( | ) |
Definition at line 10702 of file class.ilObjTest.php.
Referenced by addDefaults(), and saveToDb().
ilObjTest::getShowSolutionAnswersOnly | ( | ) |
Returns if the full solution (including ILIAS content) should be presented to the solution or not.
Definition at line 8315 of file class.ilObjTest.php.
Referenced by setShowSolutionAnswersOnly().
ilObjTest::getShowSolutionAnwersBeforeFinish | ( | ) |
Definition at line 8381 of file class.ilObjTest.php.
Referenced by setShowSolutionAnwersBeforeFinish().
ilObjTest::getShowSolutionDetails | ( | ) |
Returns if the solution details should be presented to the user or not.
Definition at line 8261 of file class.ilObjTest.php.
Referenced by setShowSolutionDetails().
ilObjTest::getShowSolutionFeedback | ( | ) |
Returns if the feedback should be presented to the solution or not.
Definition at line 8297 of file class.ilObjTest.php.
Referenced by packageRun(), and setShowSolutionFeedback().
ilObjTest::getShowSolutionListComparison | ( | ) |
Definition at line 8365 of file class.ilObjTest.php.
Referenced by setShowSolutionListComparison().
ilObjTest::getShowSolutionPrintview | ( | ) |
Returns if the solution printview should be presented to the user or not.
Definition at line 8279 of file class.ilObjTest.php.
Referenced by setShowSolutionPrintview().
ilObjTest::getShowSolutionSignature | ( | ) |
Returns if the signature field should be shown in the test results.
Definition at line 8333 of file class.ilObjTest.php.
Referenced by setShowSolutionSignature().
ilObjTest::getShowSolutionSuggested | ( | ) |
Definition at line 8349 of file class.ilObjTest.php.
Referenced by setShowSolutionSuggested().
ilObjTest::getShuffleQuestions | ( | ) |
Returns the status of the shuffle_questions variable.
Definition at line 8023 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), generateRandomQuestions(), and saveToDb().
ilObjTest::getStartingTime | ( | ) |
Returns the starting time of the test.
Definition at line 3341 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), isExecutable(), saveToDb(), and startingTimeReached().
ilObjTest::getStartingTimeOfParticipants | ( | ) |
Definition at line 7909 of file class.ilObjTest.php.
ilObjTest::getStartingTimeOfUser | ( | $active_id | ) |
Returns the unix timestamp of the time a user started a test.
integer | $active_id | The active id of the user |
Definition at line 7945 of file class.ilObjTest.php.
References $ilDB, $pass, $row, _getPass(), and getResetProcessingTime().
Referenced by canShowTestResults(), and isExecutable().
ilObjTest::getStartTestLabel | ( | $active_id | ) |
Returns the "Start the Test" label for the Info page.
int | $active_id | The active id of the current user |
Definition at line 9080 of file class.ilObjTest.php.
References $res, _getPass(), and getNrOfResultsForPass().
& ilObjTest::getTestDefaults | ( | $test_defaults_id | ) |
Returns the test defaults for a given id.
integer | $test_defaults_id | The database id of a test defaults dataset |
Definition at line 9137 of file class.ilObjTest.php.
Referenced by applyDefaults().
ilObjTest::getTestId | ( | ) |
Gets the database id of the additional test data.
Definition at line 2554 of file class.ilObjTest.php.
References $test_id.
Referenced by addExtraTime(), checkMaximumAllowedUsers(), cloneRandomQuestions(), createRandomSolutions(), createTestSession(), deleteTest(), disinviteUser(), duplicateQuestionpoolForTest(), evalResultsOverview(), evalResultsOverviewOfParticipant(), evalTotalFinished(), evalTotalParticipantsArray(), evalTotalPersons(), evalTotalPersonsArray(), evalTotalStartedAverageTime(), generateRandomPass(), generateRandomQuestions(), getAccessCodeSession(), getActiveIdOfUser(), getCompleteWorkingTime(), getCompleteWorkingTimeOfParticipant(), getCompleteWorkingTimeOfParticipants(), getExistingQuestions(), getInvitedUsers(), getParticipants(), getQuestionTitles(), getQuestionTitlesAndIndexes(), getRandomQuestionpoolData(), getRandomQuestionpools(), getRunDates(), getRunPackageDates(), getRunPackageFilename(), getTestParticipants(), getTestQuestions(), getTimeExtensionsOfParticipants(), getUnfilteredEvaluationData(), getUsedRandomQuestionpools(), getVisitTimeOfParticipant(), hasSingleChoiceQuestions(), insertQuestion(), inviteUser(), isAccessCodeUsed(), isActiveTestSubmitted(), isNewRandomTest(), isSingleChoiceTest(), isSingleChoiceTestWithoutShuffle(), loadFromDb(), obliterateRun(), packageRun(), questionMoveDown(), questionMoveUp(), randomSelectQuestions(), removeAllTestEditings(), removeDuplicatedQuestionpools(), removeNonRandomTestData(), removeRandomTestData(), removeSelectedTestResults(), removeTestResultsForUser(), saveCertificateVisibility(), saveECTSStatus(), saveQuestionsToDb(), saveRandomQuestionCount(), saveRandomQuestionpools(), saveToDb(), setAccessCodeSession(), setActiveTestSubmitted(), setClientIP(), setTestSession(), and unsetAccessCodeSession().
& ilObjTest::getTestParticipants | ( | ) |
Returns a list of all participants in a test.
Definition at line 7082 of file class.ilObjTest.php.
References $data, $ilDB, $row, getAnonymity(), and getTestId().
Referenced by getTestParticipantsForManualScoring().
ilObjTest::getTestParticipantsForManualScoring | ( | $filter = NULL | ) |
Definition at line 7117 of file class.ilObjTest.php.
References $ilDB, $row, ilObjAssessmentFolder\_getManualScoring(), and getTestParticipants().
& ilObjTest::getTestQuestions | ( | ) |
Definition at line 8002 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
& ilObjTest::getTestResult | ( | $active_id, | |
$pass = NULL , |
|||
$ordered_sequence = FALSE |
|||
) |
Calculates the results of a test for a given user and returns an array with all test results.
integer | $active_id | Active ID of the user |
object | $pass | The test pass |
boolean | $ordered_sequence | Return results in ordered sequence if true |
Definition at line 4350 of file class.ilObjTest.php.
References $data, $ilDB, $pass, $results, $row, $testSequence, assQuestion\_getSuggestedSolutionOutput(), getResultsForActiveId(), getScoreCutting(), isRandomTest(), and ilUtil\prepareFormOutput().
Referenced by evalStatistical(), getPassed(), getTotalPointsPassedArray(), and hideCorrectAnsweredQuestions().
& ilObjTest::getTestSequence | ( | $active_id = "" , |
|
$pass = "" |
|||
) |
Definition at line 9561 of file class.ilObjTest.php.
References $pass, $testSequence, getTestSession(), and isRandomTest().
Referenced by hideCorrectAnsweredQuestions().
& ilObjTest::getTestSession | ( | $active_id = "" | ) |
Returns the test session data for the active user.
Definition at line 9544 of file class.ilObjTest.php.
References $testSession, and setTestSession().
Referenced by canShowTestResults(), getSerial(), getTestSequence(), hideCorrectAnsweredQuestions(), and isExecutable().
ilObjTest::getTestStyleLocation | ( | $mode = "output" | ) |
get full style sheet file name (path inclusive) of current user
$mode | string Output mode of the style sheet ("output" or "filesystem"). !"filesystem" generates the ILIAS version number as attribute to force the reload of the style sheet in a different ILIAS version public |
Definition at line 2373 of file class.ilObjTest.php.
References getCustomStyle(), and ilUtil\getStyleSheetLocation().
Referenced by deliverPDFFromHTML().
ilObjTest::getTextAnswer | ( | $active_id, | |
$question_id, | |||
$pass = NULL |
|||
) |
Returns the text answer of a given user for a given question.
integer | $user_id | The user id |
integer | $question_id | The question id |
Definition at line 6954 of file class.ilObjTest.php.
References $ilDB, $pass, $res, $row, and assQuestion\_getSolutionMaxPass().
ilObjTest::getTimeExtensionsOfParticipants | ( | ) |
Definition at line 7922 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
ilObjTest::getTitleOutput | ( | ) |
Returns the value of the title_output status.
Definition at line 3159 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), getQuestionTitle(), and saveToDb().
& ilObjTest::getTotalPointsPassedArray | ( | ) |
Returns an array with the total points of all users who passed the test This array could be used for statistics.
Definition at line 4745 of file class.ilObjTest.php.
References $total, evalTotalParticipantsArray(), and getTestResult().
Referenced by getAllTestResults(), and getUnfilteredEvaluationData().
ilObjTest::getUnfilteredEvaluationData | ( | ) |
Definition at line 5007 of file class.ilObjTest.php.
References $data, $ilDB, $pass, $row, getECTSGrade(), getQuestionCount(), getTestId(), getTotalPointsPassedArray(), getVisitTimeOfParticipant(), and isRandomTest().
Referenced by getCompleteEvaluationData().
ilObjTest::getUsedRandomQuestionpools | ( | ) |
Creates an array with title and question count of used random questionpools.
Definition at line 1919 of file class.ilObjTest.php.
References $ilDB, $row, getTestId(), and isNewRandomTest().
ilObjTest::getUsePreviousAnswers | ( | ) |
Returns if the previous answers should be shown for a learner.
Definition at line 3147 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), and saveToDb().
& ilObjTest::getUserData | ( | $ids | ) |
Returns a data of all users specified by id list.
$usr_ids | kommaseparated list of ids |
Definition at line 7204 of file class.ilObjTest.php.
References $ilDB, ilObject\$lng, $row, and getAnonymity().
ilObjTest::getVisitTimeOfParticipant | ( | $active_id | ) |
Returns the first and last visit of a participant.
integer | $active_id | The active ID of the participant |
Definition at line 4589 of file class.ilObjTest.php.
References _getVisitTimeOfParticipant(), and getTestId().
Referenced by getUnfilteredEvaluationData().
& ilObjTest::getWorkedQuestions | ( | $active_id, | |
$pass = NULL |
|||
) |
Gets the id's of all questions a user already worked through.
Definition at line 4158 of file class.ilObjTest.php.
References $ilDB, $pass, and $row.
ilObjTest::getXMLZip | ( | ) |
Get zipped xml file for test.
Reimplemented from ilObject.
Definition at line 9903 of file class.ilObjTest.php.
ilObjTest::hasNrOfTriesRestriction | ( | ) |
returns if the numbers of tries have to be checked
Definition at line 7438 of file class.ilObjTest.php.
References getNrOfTries().
Referenced by isExecutable().
ilObjTest::hasRandomQuestionsForPass | ( | $active_id, | |
$pass | |||
) |
Checkes whether a random test has already created questions for a given pass or not.
private
$active_id | Active id of the test |
$pass | Pass of the test |
Definition at line 1685 of file class.ilObjTest.php.
Referenced by generateRandomQuestions().
ilObjTest::hasRun | ( | $date | ) |
Returns TRUE if this test has an archived run for the date designated by YYYY-MM-DD string $date.
Definition at line 10132 of file class.ilObjTest.php.
References getRunDates().
Referenced by obliterateRun(), and packageRun().
ilObjTest::hasRunPackage | ( | $date | ) |
Like hasRun(), but only returns TRUE if the run has been packaged; will return FALSE even if packaging is underway yet not completed.
Definition at line 10145 of file class.ilObjTest.php.
References getRunPackageDates().
Referenced by getRunPackageFilename(), obliterateRun(), and packageRun().
ilObjTest::hasSingleChoiceQuestions | ( | ) |
Returns TRUE if the test contains single choice results.
Definition at line 1002 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
Referenced by isSingleChoiceTestWithoutShuffle().
ilObjTest::hideCorrectAnsweredQuestions | ( | ) |
Definition at line 9577 of file class.ilObjTest.php.
References getTestResult(), getTestSequence(), and getTestSession().
ilObjTest::ilObjTest | ( | $a_id = 0 , |
|
$a_call_by_reference = true |
|||
) |
Constructor public.
integer | reference_id or object_id |
boolean | treat the id as reference_id (true) or object_id (false) |
Definition at line 436 of file class.ilObjTest.php.
References ilObject\$lng, COUNT_PARTIAL_SOLUTIONS, ilObject\ilObject(), REPORT_AFTER_TEST, SCORE_CUT_QUESTION, SCORE_LAST_PASS, SCORE_ZERO_POINTS_WHEN_UNANSWERED, setShowPassDetails(), setShowSolutionAnswersOnly(), setShowSolutionDetails(), setShowSolutionSignature(), and TEST_FIXED_SEQUENCE.
Referenced by _isComplete().
ilObjTest::initDefaultRoles | ( | ) |
init default roles settings
If your module does not require any default roles, delete this method (For an example how this method is used, look at ilObjForum)
public
Reimplemented from ilObject.
Definition at line 715 of file class.ilObjTest.php.
ilObjTest::insertQuestion | ( | $question_id | ) |
Insert a question in the list of questions.
integer | $question_id | The database id of the inserted question public |
Definition at line 3907 of file class.ilObjTest.php.
References $data, $ilDB, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), duplicateQuestionForTest(), getTestId(), loadQuestions(), logAction(), and saveCompleteStatus().
ilObjTest::inviteGroup | ( | $group_id | ) |
Invites all users of a group to a test.
integer | $group_id | The database id of the invited group public |
Definition at line 7261 of file class.ilObjTest.php.
References ilObjUser\_lookupClientIP(), and inviteUser().
ilObjTest::inviteRole | ( | $role_id | ) |
Invites all users of a role to a test.
integer | $group_id | The database id of the invited group public |
Definition at line 7279 of file class.ilObjTest.php.
References ilObjUser\_lookupClientIP(), and inviteUser().
ilObjTest::inviteUser | ( | $user_id, | |
$client_ip = "" |
|||
) |
Invites a user to a test.
integer | $user_id | The database id of the invited user public |
Definition at line 7314 of file class.ilObjTest.php.
References $ilDB, and getTestId().
Referenced by inviteGroup(), and inviteRole().
ilObjTest::isAccessCodeUsed | ( | $code | ) |
Definition at line 8619 of file class.ilObjTest.php.
References $ilDB, and getTestId().
Referenced by createNewAccessCode().
ilObjTest::isActiveTestSubmitted | ( | $user_id = null | ) |
returns if the active for user_id has been submitted
Definition at line 7420 of file class.ilObjTest.php.
References $ilDB, and getTestId().
ilObjTest::isComplete | ( | ) |
Returns 1 (true), if a test is complete for use.
Definition at line 1080 of file class.ilObjTest.php.
References getRandomQuestionCount(), getRandomQuestionpools(), and isRandomTest().
Referenced by saveCompleteStatus(), and saveToDb().
ilObjTest::isExecutable | ( | $user_id, | |
$allowPassIncrease = FALSE |
|||
) |
Checks if the test is executable by the given user.
integer | $user_id | The user id |
Definition at line 7763 of file class.ilObjTest.php.
References $starting_time, _getPass(), endingTimeReached(), ilFormat\ftimestamp2datetimeDB(), getActiveIdOfUser(), getEnableProcessingTime(), getEndingTime(), getNrOfTries(), getResetProcessingTime(), getStartingTime(), getStartingTimeOfUser(), getTestSession(), hasNrOfTriesRestriction(), isMaxProcessingTimeReached(), isNrOfTriesReached(), and startingTimeReached().
ilObjTest::isHTML | ( | $a_text | ) |
Checks if a given string contains HTML or not.
string | $a_text | Text which should be checked |
Definition at line 8752 of file class.ilObjTest.php.
ilObjTest::isMaxProcessingTimeReached | ( | $starting_time, | |
$active_id | |||
) |
Returns whether the maximum processing time for a test is reached or not.
long | $starting_time | The unix timestamp of the starting time of the test |
Definition at line 7981 of file class.ilObjTest.php.
References $processing_time, $starting_time, getEnableProcessingTime(), and getProcessingTimeInSeconds().
Referenced by canShowTestResults(), and isExecutable().
|
protected |
Checks whether the test is a new random test (using tst_rnd_cpy) or an old one.
Definition at line 1587 of file class.ilObjTest.php.
References $ilDB, and getTestId().
Referenced by getUsedRandomQuestionpools(), and saveRandomQuestion().
ilObjTest::isNrOfTriesReached | ( | $tries | ) |
returns if number of tries are reached
Definition at line 7448 of file class.ilObjTest.php.
References getNrOfTries().
Referenced by isExecutable().
ilObjTest::isPluginActive | ( | $a_pname | ) |
Checks whether or not a question plugin with a given name is active.
string | $a_pname | The plugin name public |
Definition at line 9677 of file class.ilObjTest.php.
References IL_COMP_MODULE.
Referenced by getAvailableQuestions().
ilObjTest::isRandomTest | ( | ) |
Gets the status of the $random_test attribute.
Definition at line 2416 of file class.ilObjTest.php.
Referenced by addDefaults(), cloneObject(), createRandomSolutions(), createTestSequence(), deleteTest(), getAllQuestions(), getAnsweredQuestionCount(), getExistingQuestions(), getQuestionCount(), getQuestionOIDsByAID(), getQuestionsOfPass(), getQuestionsOfTest(), getQuestionTitles(), getQuestionTitlesAndIndexes(), getTestResult(), getTestSequence(), getUnfilteredEvaluationData(), isComplete(), loadQuestions(), removeAllTestEditings(), removeSelectedTestResults(), removeTestResultsForUser(), and saveToDb().
ilObjTest::isSingleChoiceTest | ( | ) |
Returns TRUE if the test contains single choice results only.
Definition at line 1027 of file class.ilObjTest.php.
References $ilDB, $row, and getTestId().
ilObjTest::isSingleChoiceTestWithoutShuffle | ( | ) |
Returns TRUE if the test contains single choice results and no shuffle only.
Definition at line 1056 of file class.ilObjTest.php.
References $ilDB, $row, getTestId(), and hasSingleChoiceQuestions().
ilObjTest::isTestFinished | ( | $active_id | ) |
returns if the active for user_id has been submitted
Definition at line 7406 of file class.ilObjTest.php.
References $ilDB.
Referenced by isTestFinishedToViewResults().
ilObjTest::isTestFinishedToViewResults | ( | $active_id, | |
$currentpass | |||
) |
Returns true if an active user completed a test pass and did not start a new pass.
integer | $active_id | The active id of the user |
integer | $currentpass | The current test pass of the user |
Definition at line 4193 of file class.ilObjTest.php.
References getPassFinishDate(), and isTestFinished().
Referenced by canShowTestResults().
ilObjTest::loadFromDb | ( | ) |
Loads a ilObjTest object from a database.
object | $db | A pear DB object |
integer | $test_id | A unique key which defines the test in the database public |
Definition at line 2085 of file class.ilObjTest.php.
References $data, $ilDB, ilRTE\_replaceMediaObjectImageSrc(), getAuthor(), ilObject\getId(), getTestId(), loadQuestions(), saveAuthorToMetadata(), setAllowedUsers(), setAllowedUsersTimeGap(), setAnonymity(), setAnswerFeedback(), setAnswerFeedbackPoints(), setAuthor(), setAutosave(), setCertificateVisibility(), setCountSystem(), setCustomStyle(), setECTSFX(), setECTSGrades(), setECTSOutput(), setEnableProcessingTime(), setEndingTime(), setExamPdf(), setExportSettings(), setFinalStatement(), setFixedParticipants(), setForceJS(), setInstantFeedbackSolution(), setIntroduction(), setKiosk(), setListOfQuestionsSettings(), setMailNotification(), setMailNotificationType(), setMCScoring(), setNrOfTries(), setPassScoring(), setPassword(), setProcessingTime(), setRandomQuestionCount(), setRandomTest(), setRedirectAfterExam(), setRedirectOnlyKioskMode(), setReportingDate(), setResetProcessingTime(), setResultsPresentation(), setScoreCutting(), setScoreReporting(), setSequenceSettings(), setShowCancel(), setShowFinalStatement(), setShowInfo(), setShowMarker(), setShowSerial(), setShuffleQuestions(), setStartingTime(), setTestId(), setTitleOutput(), and setUsePreviousAnswers().
Referenced by cloneObject(), and read().
ilObjTest::loadQuestions | ( | $active_id = "" , |
|
$pass = NULL |
|||
) |
Load the test question id's from the database.
integer | $user_id | The user id of the test user (necessary for random tests) public |
Definition at line 2174 of file class.ilObjTest.php.
References $data, $ilDB, $pass, _getPass(), getActiveIdOfUser(), and isRandomTest().
Referenced by getAllQuestions(), getAnsweredQuestionCount(), insertQuestion(), loadFromDb(), questionMoveDown(), questionMoveUp(), and removeQuestion().
ilObjTest::logAction | ( | $logtext = "" , |
|
$question_id = "" |
|||
) |
Logs an action into the Test&Assessment log.
string | $logtext | The log text |
integer | $question_id | If given, saves the question id to the database public |
Definition at line 6863 of file class.ilObjTest.php.
References ilObjAssessmentFolder\_addLog(), assQuestion\_getOriginalId(), ilObject\getId(), and ilObject\getRefId().
Referenced by addExtraTime(), checkMaximumAllowedUsers(), insertQuestion(), questionMoveDown(), questionMoveUp(), removeAllTestEditings(), removeQuestion(), removeSelectedTestResults(), removeTestResultsForUser(), saveManualFeedback(), saveQuestionsToDb(), saveRandomQuestionCount(), saveRandomQuestionpools(), and saveToDb().
ilObjTest::modifyExportIdentifier | ( | $a_tag, | |
$a_param, | |||
$a_value | |||
) |
Returns the installation id for a given identifier.
private
Definition at line 6187 of file class.ilObjTest.php.
References ilUtil\insertInstIntoID().
ilObjTest::moveQuestions | ( | $move_questions, | |
$target_index, | |||
$insert_mode | |||
) |
Move questions to another position.
array | $move_questions | An array with the question id's of the questions to move |
integer | $target_index | The question id of the target position |
integer | $insert_mode | 0, if insert before the target position, 1 if insert after the target position public |
Definition at line 5652 of file class.ilObjTest.php.
References saveQuestionsToDb().
ilObjTest::notify | ( | $a_event, | |
$a_ref_id, | |||
$a_parent_non_rbac_id, | |||
$a_node_id, | |||
$a_params = 0 |
|||
) |
notifys an object about an event occured Based on the event happend, each object may decide how it reacts.
If you are not required to handle any events related to your module, just delete this method. (For an example how this method is used, look at ilObjGroup)
public
string | event |
integer | reference id of object where the event occured |
array | passes optional parameters if required |
Reimplemented from ilObject.
Definition at line 734 of file class.ilObjTest.php.
References $_GET, and ilObject\getType().
ilObjTest::obliterateRun | ( | $date | ) |
Utterly and completely destroys all evidence of an archived run, i.e.
raw files and packaged files
Definition at line 10452 of file class.ilObjTest.php.
References $ilLog, ARCHIVE_HTML_DIR, deleteRunPackage(), getTestId(), hasRun(), and hasRunPackage().
ilObjTest::packageRun | ( | $date | ) |
Triggers packaging of archived run for this test designated by YYYY-MM-DD string $date (if run exists).
Returns false if unsuccessful, else true.
Definition at line 10160 of file class.ilObjTest.php.
References $_SESSION, $ilLog, ARCHIVE_HTML_DIR, ARCHIVE_PDF_DIR, createQuestionGUI(), deliverPDFFromHTML(), ilUtil\getHtmlPath(), ilUtil\getImagePath(), getShowSolutionFeedback(), ilUtil\getStyleSheetLocation(), getTestId(), ilObject\getTitle(), hasRun(), hasRunPackage(), and ilUtil\prepareFormOutput().
ilObjTest::pcArrayShuffle | ( | $array | ) |
Shuffles the values of a given array.
array | $array | An array which should be shuffled public |
Definition at line 4328 of file class.ilObjTest.php.
ilObjTest::prepareTextareaOutput | ( | $txt_output, | |
$prepare_for_latex_output = FALSE |
|||
) |
Prepares a string for a text area output in tests.
string | $txt_output | String which should be prepared for output public |
Definition at line 8803 of file class.ilObjTest.php.
& ilObjTest::processCSVRow | ( | $row, | |
$quoteAll = FALSE , |
|||
$separator = ";" |
|||
) |
Processes an array as a CSV row and converts the array values to correct CSV values.
The "converted" array is returned
array | $row | The array containing the values for a CSV row |
string | $quoteAll | Indicates to quote every value (=TRUE) or only values containing quotes and separators (=FALSE, default) |
string | $separator | The value separator in the CSV row (used for quoting) (; = default) |
Definition at line 7549 of file class.ilObjTest.php.
References $row, and $separator.
Referenced by getAllTestResults().
ilObjTest::QTIMaterialToString | ( | $a_material | ) |
Reads an QTI material tag an creates a text string.
string | $a_material | QTI material tag |
Definition at line 8771 of file class.ilObjTest.php.
References $_SESSION, and $ilLog.
Referenced by fromXML().
ilObjTest::questionMoveDown | ( | $question_id | ) |
Moves a question down in order.
integer | $question_id | The database id of the question to be moved down public |
Definition at line 3848 of file class.ilObjTest.php.
References $data, $ilDB, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), getTestId(), loadQuestions(), and logAction().
ilObjTest::questionMoveUp | ( | $question_id | ) |
Moves a question up in order.
integer | $question_id | The database id of the question to be moved up public |
Definition at line 3804 of file class.ilObjTest.php.
References $data, $ilDB, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), getTestId(), loadQuestions(), and logAction().
ilObjTest::randomSelectQuestions | ( | $nr_of_questions, | |
$questionpool, | |||
$use_obj_id = 0 , |
|||
$qpls = "" , |
|||
$pass = NULL |
|||
) |
Returns a random selection of questions.
integer | $nr_of_questions | Number of questions to return |
integer | $questionpool | ID of questionpool to choose the questions from (0 = all available questionpools) |
boolean | $user_obj_id | Use the object id instead of the reference id when set to true |
array | $qpls | An array of questionpool id's if the random questions should only be chose from the contained questionpools |
Definition at line 5485 of file class.ilObjTest.php.
References $ilDB, $row, ilObjQuestionPool\_getAvailableQuestionpools(), ilObject\_lookupObjId(), ilObject\_lookupOwner(), ilObject\getId(), and getTestId().
Referenced by generateRandomPass().
ilObjTest::read | ( | $a_force_db = false | ) |
read object data from db into object
boolean | public |
Reimplemented from ilObject.
Definition at line 561 of file class.ilObjTest.php.
References loadFromDb().
ilObjTest::recalculateSolutions | ( | ) |
Definition at line 10667 of file class.ilObjTest.php.
References $pass, $questions, assQuestion\_setReachedPoints(), createQuestionGUI(), and getCompleteEvaluationData().
ilObjTest::removeAllTestEditings | ( | $question_id = "" | ) |
Removes all references to the question in executed tests in case the question has been changed.
If a question was changed it cannot be guaranteed that the content and the meaning of the question is the same as before. So we have to delete all already started or completed tests using that question. Therefore we have to delete all references to that question in tst_solutions and the tst_active entries which were created for the user and test in the tst_solutions entry.
Definition at line 3579 of file class.ilObjTest.php.
References $ilDB, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilUtil\delDir(), getTestId(), isRandomTest(), and logAction().
Referenced by deleteTest(), removeNonRandomTestData(), removeQuestion(), and removeRandomTestData().
|
protected |
Remove all duplicated questions from a random test.
Definition at line 1891 of file class.ilObjTest.php.
References $ilDB, $row, _instanciateQuestion(), and getTestId().
Referenced by deleteTest(), saveRandomQuestionpools(), and saveToDb().
ilObjTest::removeNonRandomTestData | ( | ) |
Removes all test data of a non random test when a test was set to random test.
private
Definition at line 6824 of file class.ilObjTest.php.
References $ilDB, getTestId(), removeAllTestEditings(), and saveCompleteStatus().
ilObjTest::removeQuestion | ( | $question_id | ) |
Removes a question from the test object.
integer | $question_id | The database id of the question to be removed public |
Definition at line 3558 of file class.ilObjTest.php.
References ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), _instanciateQuestion(), loadQuestions(), logAction(), removeAllTestEditings(), and saveQuestionsToDb().
Referenced by deleteTest().
ilObjTest::removeRandomQuestionpoolData | ( | $position | ) |
Definition at line 2035 of file class.ilObjTest.php.
ilObjTest::removeRandomTestData | ( | ) |
Removes all test data of a random test when a test was set to non random test.
private
Definition at line 6843 of file class.ilObjTest.php.
References $ilDB, getTestId(), removeAllTestEditings(), and saveCompleteStatus().
ilObjTest::removeSelectedTestResults | ( | $active_ids | ) |
Definition at line 3659 of file class.ilObjTest.php.
References $ilDB, $usr_id, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), _getUserIdFromActiveId(), ilUtil\delDir(), getTestId(), isRandomTest(), logAction(), and userLookupFullName().
ilObjTest::removeTestResultsForUser | ( | $user_id | ) |
Definition at line 3731 of file class.ilObjTest.php.
References $ilDB, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), _getUserIdFromActiveId(), ilUtil\delDir(), getActiveIdOfUser(), getTestId(), isRandomTest(), logAction(), and userLookupFullName().
ilObjTest::saveAuthorToMetadata | ( | $a_author = "" | ) |
Saves an authors name into the lifecycle metadata if no lifecycle metadata exists This will only be called for conversion of "old" tests where the author hasn't been stored in the lifecycle metadata.
string | $a_author | A string containing the name of the test author private |
Definition at line 6431 of file class.ilObjTest.php.
References ilObject\getId(), and ilObject\getType().
Referenced by createMetaData(), and loadFromDb().
ilObjTest::saveCertificateVisibility | ( | $a_value | ) |
Saves the visibility settings of the certificate.
integer | $a_value | The value for the visibility settings (0 = always, 1 = only passed, 2 = never) private |
Definition at line 8815 of file class.ilObjTest.php.
References $ilDB, and getTestId().
ilObjTest::saveCompleteStatus | ( | ) |
Checks if the test is complete and saves the status in the database.
public
Definition at line 1156 of file class.ilObjTest.php.
References $ilDB, and isComplete().
Referenced by insertQuestion(), removeNonRandomTestData(), and removeRandomTestData().
ilObjTest::saveECTSStatus | ( | $ects_output = 0 , |
|
$fx_support = "" , |
|||
$ects_a = 90 , |
|||
$ects_b = 65 , |
|||
$ects_c = 35 , |
|||
$ects_d = 10 , |
|||
$ects_e = 0 |
|||
) |
Saves the ECTS status (output of ECTS grades in a test) to the database.
public
Definition at line 1128 of file class.ilObjTest.php.
References $ects_output, $ilDB, and getTestId().
ilObjTest::saveManualFeedback | ( | $active_id, | |
$question_id, | |||
$pass, | |||
$feedback | |||
) |
Saves the manual feedback for a question in a test.
integer | $active_id | Active ID of the user |
integer | $question_id | Question ID |
integer | $pass | Pass number |
string | $feedback | The feedback text |
Definition at line 9423 of file class.ilObjTest.php.
References $ilDB, ilObject\$ilias, ilObject\$lng, $pass, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilObjTestAccess\_getParticipantData(), assQuestion\_getQuestionTitle(), ilRTE\_replaceMediaObjectImageSrc(), PEAR\isError(), and logAction().
ilObjTest::saveQuestionsToDb | ( | ) |
Saves the test questions to the database.
public
Definition at line 1509 of file class.ilObjTest.php.
References $ilDB, $pos, $row, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), getTestId(), and logAction().
Referenced by moveQuestions(), removeQuestion(), and saveToDb().
ilObjTest::saveRandomQuestion | ( | $active_id, | |
$question_id, | |||
$pass = NULL , |
|||
$maxcount | |||
) |
Saves a random question to the database.
public
Definition at line 1603 of file class.ilObjTest.php.
References $ilDB, $pass, duplicateQuestionForTest(), getRandomQuestionDuplicate(), and isNewRandomTest().
Referenced by generateRandomQuestions().
ilObjTest::saveRandomQuestionCount | ( | $total_questions = NULL | ) |
Saves the total amount of a tests random questions to the database.
integer | $total_questions | The amount of random questions public |
Definition at line 1795 of file class.ilObjTest.php.
References $ilDB, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), getRandomQuestionCount(), getTestId(), logAction(), and setRandomQuestionCount().
ilObjTest::saveRandomQuestionpools | ( | ) |
Saves the question pools used for a random test.
Definition at line 1850 of file class.ilObjTest.php.
References $data, $ilDB, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), duplicateQuestionpoolForTest(), getTestId(), logAction(), and removeDuplicatedQuestionpools().
ilObjTest::saveToDb | ( | $properties_only = FALSE | ) |
Saves a ilObjTest object to a database.
object | $db | A pear DB object public |
Definition at line 1210 of file class.ilObjTest.php.
References $ilDB, ilObject\$ilias, $ilLog, $row, ilObjAssessmentFolder\_enabledAssessmentLogging(), ilObjAssessmentFolder\_getLogLanguage(), ilRTE\_replaceMediaObjectImageSrc(), cleanupMediaobjectUsage(), evalTotalPersons(), getAllowedUsers(), getAllowedUsersTimeGap(), getAnonymity(), getAnswerFeedback(), getAnswerFeedbackPoints(), getAuthor(), getAutosave(), getCertificateVisibility(), getCountSystem(), getCustomStyle(), getECTSFX(), getECTSOutput(), getEnableProcessingTime(), getEndingTime(), getExamPdf(), getExportSettings(), getFinalStatement(), getFixedParticipants(), getForceJS(), ilObject\getId(), getInstantFeedbackSolution(), getIntroduction(), getKiosk(), getListOfQuestionsSettings(), getMailNotification(), getMailNotificationType(), getMCScoring(), getNrOfTries(), getPassScoring(), getPassword(), getProcessingTime(), getRandomQuestionCount(), getRedirectAfterExam(), getRedirectOnlyKioskMode(), getReportingDate(), getResetProcessingTime(), getResultsPresentation(), getScoreCutting(), getScoreReporting(), getSequenceSettings(), getShowCancel(), getShowFinalStatement(), getShowInfo(), getShowMarker(), getShowSerial(), getShuffleQuestions(), getStartingTime(), getTestId(), getTitleOutput(), getUsePreviousAnswers(), isComplete(), PEAR\isError(), isRandomTest(), logAction(), removeDuplicatedQuestionpools(), and saveQuestionsToDb().
Referenced by applyDefaults(), createReference(), and fromXML().
ilObjTest::sendAdvancedNotification | ( | $active_id | ) |
Definition at line 9956 of file class.ilObjTest.php.
References $file, _getUserIdFromActiveId(), ilObjUser\_lookupLogin(), ilDatePresentation\formatDate(), ilObject\getOwner(), ilObject\getTitle(), IL_CAL_UNIX, ilDatePresentation\setUseRelativeDates(), and userLookupFullName().
ilObjTest::sendSimpleNotification | ( | $active_id | ) |
Definition at line 9928 of file class.ilObjTest.php.
References $ilLog, $res, _getUserIdFromActiveId(), ilObjUser\_lookupLogin(), ilDatePresentation\formatDate(), ilObject\getOwner(), ilObject\getTitle(), IL_CAL_UNIX, ilDatePresentation\setUseRelativeDates(), and userLookupFullName().
ilObjTest::setAccessCodeSession | ( | $access_code | ) |
Definition at line 8661 of file class.ilObjTest.php.
References $_SESSION, ilObject\$id, and getTestId().
ilObjTest::setActiveTestSubmitted | ( | $user_id | ) |
submits active test for user user_id
Definition at line 7392 of file class.ilObjTest.php.
References $ilDB, $ilLog, and getTestId().
Referenced by createRandomSolutions().
ilObjTest::setAllowedUsers | ( | $a_allowed_users | ) |
Definition at line 8682 of file class.ilObjTest.php.
Referenced by fromXML(), and loadFromDb().
ilObjTest::setAllowedUsersTimeGap | ( | $a_allowed_users_time_gap | ) |
Definition at line 8692 of file class.ilObjTest.php.
Referenced by fromXML(), and loadFromDb().
ilObjTest::setAnonymity | ( | $a_value = 0 | ) |
Sets the anonymity status of the test.
integer | $a_value | The value for the anonymity status (0 = personalized, 1 = anonymized) public |
Definition at line 8864 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setAnswerFeedback | ( | $answer_feedback = 0 | ) |
Sets the answer specific feedback for the test.
integer | $answer_feedback | If 1, answer specific feedback will be shown after answering a question public |
Definition at line 2685 of file class.ilObjTest.php.
References $answer_feedback.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setAnswerFeedbackPoints | ( | $answer_feedback_points = 0 | ) |
Sets the answer specific feedback of reached points for the test.
integer | $answer_feedback_points | If 1, answer specific feedback will show the reached points after answering a question public |
Definition at line 2705 of file class.ilObjTest.php.
References $answer_feedback_points.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setAuthor | ( | $author = "" | ) |
Sets the authors name of the ilObjTest object.
string | $author | A string containing the name of the test author public |
Definition at line 6417 of file class.ilObjTest.php.
References $author.
Referenced by fromXML(), and loadFromDb().
ilObjTest::setAutosave | ( | $a_value = 1 | ) |
Sets autosave.
integer | $a_value | The autosave value (0 = disabled, 1 = enabled) public |
Definition at line 8924 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setCertificateVisibility | ( | $a_value | ) |
Sets the visibility settings of the certificate.
integer | $a_value | The value for the visibility settings (0 = always, 1 = only passed, 2 = never) public |
Definition at line 8842 of file class.ilObjTest.php.
Referenced by loadFromDb().
ilObjTest::setClientIP | ( | $user_id, | |
$client_ip | |||
) |
Definition at line 7329 of file class.ilObjTest.php.
References $ilDB, and getTestId().
ilObjTest::setCountSystem | ( | $a_count_system = COUNT_PARTIAL_SOLUTIONS | ) |
Sets the count system for the calculation of points.
integer | $a_count_system | The count system for the calculation of points. public |
Definition at line 3490 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setCustomStyle | ( | $a_customStyle = NULL | ) |
Set the custom style.
string | $a_customStyle | The custom style public |
Definition at line 2318 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setECTSFX | ( | $a_ects_fx | ) |
Sets the ECTS FX grade.
string | $a_ects_fx | The ECTS FX grade public |
Definition at line 2602 of file class.ilObjTest.php.
Referenced by applyDefaults(), and loadFromDb().
ilObjTest::setECTSGrades | ( | $a_ects_grades | ) |
Sets the ECTS grades.
array | $a_ects_grades | The ECTS grades public |
Definition at line 2626 of file class.ilObjTest.php.
Referenced by applyDefaults(), and loadFromDb().
ilObjTest::setECTSOutput | ( | $a_ects_output | ) |
Enables/Disables ECTS grades output for this test.
integer | $a_ects_output | 0 if ECTS grades output should be deactivated, 1 otherwise public |
Definition at line 2578 of file class.ilObjTest.php.
Referenced by applyDefaults(), and loadFromDb().
ilObjTest::setEnableProcessingTime | ( | $enable = 0 | ) |
Sets the processing time enabled or disabled.
integer | $enable | 0 to disable the processing time, 1 to enable the processing time public |
Definition at line 3431 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setEndingTime | ( | $ending_time = NULL | ) |
Sets the ending time in database timestamp format for the test.
string | $ending_time | The ending time for the test. Empty string for no ending time. public |
Definition at line 3478 of file class.ilObjTest.php.
References $ending_time.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setEvaluationAdditionalFields | ( | $fields | ) |
Sets additional user fields that should be shown in the user evaluation.
array | $fields | Array of database fields that should be shown in the evaluation |
Definition at line 9695 of file class.ilObjTest.php.
References ilObject\getId().
ilObjTest::setExamPdf | ( | $a_int = 0 | ) |
Sets "save exam pdf" setting.
Sets "generate exam pdf" setting of the ilObjTest object
integer | $a_int | public |
Definition at line 2282 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setExportSettings | ( | $a_settings | ) |
Definition at line 10529 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setExportSettingsRespectShuffle | ( | $a_settings | ) |
Definition at line 10580 of file class.ilObjTest.php.
References getExportSettingsRespectShuffle().
ilObjTest::setExportSettingsSingleChoiceShort | ( | $a_settings | ) |
Definition at line 10553 of file class.ilObjTest.php.
References getExportSettingsSingleChoiceShort().
ilObjTest::setFinalStatement | ( | $a_statement = "" | ) |
Sets the final statement text of the ilObjTest object.
string | $a_statement | A final statement public |
Definition at line 2239 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setFixedParticipants | ( | $a_value = 1 | ) |
Sets the fixed participants status.
integer | $a_value | The value for the fixed participants status (0 = don't allow, 1 = allow) public |
Definition at line 8984 of file class.ilObjTest.php.
Referenced by fromXML(), and loadFromDb().
ilObjTest::setForceJS | ( | $a_js = 1 | ) |
Set whether JavaScript should be forced for tests.
integer | $a_js | 1 to force JavaScript, 0 otherwise public |
Definition at line 2306 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setImportDirectory | ( | $a_import_dir | ) |
Set import directory.
string | $a_import_dir |
Definition at line 990 of file class.ilObjTest.php.
ilObjTest::setInstantFeedbackSolution | ( | $instant_feedback = 0 | ) |
Sets the instant feedback for the solution.
integer | $instant_feedback | If 1, the solution will be shown after answering a question public |
Definition at line 2665 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setIntroduction | ( | $introduction = "" | ) |
Sets the introduction text of the ilObjTest object.
string | $introduction | An introduction string for the test public |
Definition at line 2227 of file class.ilObjTest.php.
References $introduction.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setKiosk | ( | $kiosk = 0 | ) |
Sets the kiosk mode for the test.
integer | $kiosk | The value for the kiosk mode. public |
Definition at line 3014 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setKioskMode | ( | $a_kiosk = FALSE | ) |
Sets the kiosk mode for the test.
boolean | $kiosk | The value for the kiosk mode public |
Definition at line 3045 of file class.ilObjTest.php.
References getKioskMode().
ilObjTest::setListOfQuestions | ( | $a_value = TRUE | ) |
Sets if the the list of questions should be presented to the user or not.
boolean | $a_value | TRUE if the list of questions should be presented, FALSE otherwise public |
Definition at line 8097 of file class.ilObjTest.php.
ilObjTest::setListOfQuestionsDescription | ( | $a_value = TRUE | ) |
Sets the show_summary attribute to TRUE if the list of questions should be presented with the question descriptions.
boolean | $a_value | TRUE if the list of questions should be shown with question descriptions, FALSE otherwise public |
Definition at line 8211 of file class.ilObjTest.php.
References getListOfQuestions(), and getListOfQuestionsDescription().
ilObjTest::setListOfQuestionsEnd | ( | $a_value = TRUE | ) |
Sets if the the list of questions as the end page of the test.
boolean | $a_value | TRUE if the list of questions should be the end page, FALSE otherwise public |
Definition at line 8172 of file class.ilObjTest.php.
References getListOfQuestions(), and getListOfQuestionsEnd().
ilObjTest::setListOfQuestionsSettings | ( | $a_value = 0 | ) |
Sets the settings for the list of questions options in the test properties This could contain one of the following values: 0 = No list of questions offered 1 = A list of questions is offered 3 = A list of questions is offered and the list of questions is shown as first page of the test 5 = A list of questions is offered and the list of questions is shown as last page of the test 7 = A list of questions is offered and the list of questions is shown as first and last page of the test.
integer | $a_value | 0, 1, 3, 5 or 7 public |
Definition at line 8068 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setListOfQuestionsStart | ( | $a_value = TRUE | ) |
Sets if the the list of questions as the start page of the test.
boolean | $a_value | TRUE if the list of questions should be the start page, FALSE otherwise public |
Definition at line 8133 of file class.ilObjTest.php.
References getListOfQuestions(), and getListOfQuestionsStart().
ilObjTest::setMailNotification | ( | $a_notification | ) |
Set mail notification settings.
$a_notification | Mail notification setting |
Definition at line 9923 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setMailNotificationType | ( | $a_type | ) |
Definition at line 10505 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setMCScoring | ( | $a_mc_scoring = SCORE_ZERO_POINTS_WHEN_UNANSWERED | ) |
Sets the multiple choice scoring.
integer | $a_mc_scoring | The scoring for multiple choice questions public |
Definition at line 3526 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setNrOfTries | ( | $nr_of_tries = 0 | ) |
Sets the nr of tries for the test.
integer | $nr_of_tries | The maximum number of tries for the test. 0 for infinite tries. public |
Definition at line 3365 of file class.ilObjTest.php.
References $nr_of_tries.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setPassScoring | ( | $a_pass_scoring = SCORE_LAST_PASS | ) |
Sets the pass scoring.
integer | $a_pass_scoring | The pass scoring type public |
Definition at line 3538 of file class.ilObjTest.php.
References SCORE_BEST_PASS, and SCORE_LAST_PASS.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setPassword | ( | $a_password = NULL | ) |
Sets the password for test access.
string | $a_password | The password for test access public |
Definition at line 3502 of file class.ilObjTest.php.
Referenced by fromXML(), and loadFromDb().
ilObjTest::setProcessingTime | ( | $processing_time = "00:00:00" | ) |
Sets the processing time for the test.
string | $processing_time | The maximum processing time for the test given in hh:mm:ss public |
Definition at line 3419 of file class.ilObjTest.php.
References $processing_time.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setQuestionSetSolved | ( | $value, | |
$question_id, | |||
$user_id | |||
) |
sets question solved state to value for given user_id
Definition at line 7373 of file class.ilObjTest.php.
References $ilDB, and getActiveIdOfUser().
ilObjTest::setRandomQuestionCount | ( | $a_random_question_count = "" | ) |
Sets the random question count.
integer | $a_random_question_count | The random question count public |
Definition at line 2737 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), loadFromDb(), and saveRandomQuestionCount().
ilObjTest::setRandomQuestionpoolData | ( | $a_data | ) |
Definition at line 2043 of file class.ilObjTest.php.
ilObjTest::setRandomTest | ( | $a_random_test = 0 | ) |
Sets the random test indicator.
integer | $a_random_test | The random test indicator (0 = no random test, 1 = random test) public |
Definition at line 2725 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setRedirectAfterExam | ( | $a_url = "" | ) |
Sets the redirect after exam URL.
Sets the redirect after exam URL of the ilObjTest object
string | $a_url | A final statement public |
Definition at line 2254 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setRedirectOnlyKioskMode | ( | $a_int = 1 | ) |
Sets "redirection only in kiosk mode" setting.
Sets "redirection only in kiosk mode" setting of the ilObjTest object
integer | $a_boolean | public |
Definition at line 2268 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setReportingDate | ( | $reporting_date | ) |
Sets the reporting date of the ilObjTest object.
timestamp | $reporting_date | The date and time the score reporting is available public |
Definition at line 2749 of file class.ilObjTest.php.
References $reporting_date.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setResetProcessingTime | ( | $reset = 0 | ) |
Sets whether the processing time should be reset or not.
integer | $reset | 1 to reset the processing time, 0 otherwise public |
Definition at line 3447 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setResultsPresentation | ( | $a_results_presentation = 3 | ) |
Sets the combined results presentation value.
integer | $a_results_presentation | The combined results presentation value public |
Definition at line 8399 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setScoreCutting | ( | $a_score_cutting = SCORE_CUT_QUESTION | ) |
Sets the type of score cutting.
integer | $a_score_cutting | The type of score cutting. 0 for cut questions, 1 for cut tests public |
Definition at line 3514 of file class.ilObjTest.php.
Referenced by fromXML(), and loadFromDb().
ilObjTest::setScoreReporting | ( | $score_reporting = 0 | ) |
Sets the score reporting of the ilObjTest object.
integer | $score_reporting | The score reporting public |
Definition at line 2653 of file class.ilObjTest.php.
References $score_reporting.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setSequenceSettings | ( | $sequence_settings = 0 | ) |
Sets the sequence settings of the ilObjTest object.
integer | $sequence_settings | The sequence settings public |
Definition at line 2641 of file class.ilObjTest.php.
References $sequence_settings.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setShowCancel | ( | $a_value = 1 | ) |
Sets the cancel test button status.
integer | $a_value | The value for the cancel test status (0 = don't show, 1 = show) public |
Definition at line 8894 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setShowFinalStatement | ( | $show = 0 | ) |
Sets whether the final statement should be shown or not.
integer | $show | 1 if TRUE or 0 if FALSE public |
Definition at line 2403 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setShowInfo | ( | $a_info = 1 | ) |
Set whether the complete information page is shown or the required data only.
integer | $a_info | 1 for the complete information, 0 otherwise public |
Definition at line 2294 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setShowKioskModeParticipant | ( | $a_participant = FALSE | ) |
Set to true, if the participant's name should be shown in kiosk mode.
boolean | $a_title | TRUE if the participant's name should be shown in kiosk mode, FALSE otherwise public |
Definition at line 3125 of file class.ilObjTest.php.
References getShowKioskModeParticipant().
ilObjTest::setShowKioskModeTitle | ( | $a_title = FALSE | ) |
Set to true, if the full test title should be shown in kiosk mode.
boolean | $a_title | TRUE if the test title should be shown in kiosk mode, FALSE otherwise public |
Definition at line 3085 of file class.ilObjTest.php.
References getShowKioskModeTitle().
ilObjTest::setShowMarker | ( | $a_value = 1 | ) |
Sets the marker button status.
integer | $a_value | The value for the marker status (0 = don't show, 1 = show) public |
Definition at line 8954 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setShowPassDetails | ( | $a_details = 1 | ) |
Sets if the pass details should be shown when a test is not finished.
Sets if the pass details should be shown when a test is not finished
boolean | $a_details | TRUE if the pass details should be shown, FALSE otherwise public |
Definition at line 8412 of file class.ilObjTest.php.
References getShowPassDetails().
Referenced by ilObjTest().
ilObjTest::setShowSerial | ( | $a_value = 1 | ) |
Definition at line 10707 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setShowSolutionAnswersOnly | ( | $a_full = TRUE | ) |
Set to true, if the full solution (including the ILIAS content pages) should be shown in the solution output.
boolean | $a_full | TRUE if the full solution should be shown in the solution output, FALSE otherwise public |
Definition at line 8496 of file class.ilObjTest.php.
References getShowSolutionAnswersOnly().
Referenced by ilObjTest().
ilObjTest::setShowSolutionAnwersBeforeFinish | ( | $a_value = FALSE | ) |
Set to TRUE, if the list of answers should be shown prior to finish the test.
boolean | $a_comparison | TRUE if the list of answers should be shown prior to finish the test, FALSE otherwise public |
Definition at line 8580 of file class.ilObjTest.php.
References getShowSolutionAnwersBeforeFinish().
ilObjTest::setShowSolutionDetails | ( | $a_details = 1 | ) |
Sets if the the solution details should be presented to the user or not.
integer | $a_details | 1 if the solution details should be presented, 0 otherwise public |
Definition at line 8433 of file class.ilObjTest.php.
References getShowSolutionDetails().
Referenced by ilObjTest().
ilObjTest::setShowSolutionFeedback | ( | $a_feedback = TRUE | ) |
Sets if the the feedback should be presented to the user in the solution or not.
boolean | $a_feedback | TRUE if the feedback should be presented in the solution, FALSE otherwise public |
Definition at line 8475 of file class.ilObjTest.php.
References getShowSolutionFeedback().
ilObjTest::setShowSolutionListComparison | ( | $a_comparison = FALSE | ) |
Set to TRUE, if the results should be compared with the correct results in the list of answers.
boolean | $a_comparison | TRUE if the results should be compared with the correct results in the list of answers, FALSE otherwise public |
Definition at line 8559 of file class.ilObjTest.php.
References getShowSolutionListComparison().
ilObjTest::setShowSolutionPrintview | ( | $a_printview = 1 | ) |
Sets if the the solution printview should be presented to the user or not.
boolean | $a_details | TRUE if the solution printview should be presented, FALSE otherwise public |
Definition at line 8454 of file class.ilObjTest.php.
References getShowSolutionPrintview().
Referenced by fromXML().
ilObjTest::setShowSolutionSignature | ( | $a_signature = FALSE | ) |
Set to TRUE, if the signature field should be shown in the solution.
boolean | $a_signature | TRUE if the signature field should be shown, FALSE otherwise public |
Definition at line 8517 of file class.ilObjTest.php.
References getShowSolutionSignature().
Referenced by ilObjTest().
ilObjTest::setShowSolutionSuggested | ( | $a_solution = FALSE | ) |
Set to TRUE, if the suggested solution should be shown in the solution.
boolean | $a_solution | TRUE if the suggested solution should be shown, FALSE otherwise public |
Definition at line 8538 of file class.ilObjTest.php.
References getShowSolutionSuggested().
ilObjTest::setShuffleQuestions | ( | $a_shuffle | ) |
Sets the status of the shuffle_questions variable.
boolean | $a_shuffle | 0 if the test questions are not shuffled, 1 if the test questions are shuffled public |
Definition at line 8034 of file class.ilObjTest.php.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setStartingTime | ( | $starting_time = NULL | ) |
Sets the starting time in database timestamp format for the test.
string | $starting_time | The starting time for the test. Empty string for no starting time. public |
Definition at line 3466 of file class.ilObjTest.php.
References $starting_time.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setTestId | ( | $a_id | ) |
Sets the test ID.
integer | $a_id | Test ID |
Definition at line 9503 of file class.ilObjTest.php.
Referenced by loadFromDb().
& ilObjTest::setTestSession | ( | $active_id = "" | ) |
Sets the test session data for the active user.
integer | $active_id | The active id of the active user |
Definition at line 9515 of file class.ilObjTest.php.
References $_SESSION, $testSession, ilObject\getRefId(), and getTestId().
Referenced by getTestSession().
ilObjTest::setTitleOutput | ( | $title_output = 0 | ) |
Sets the status of the title output.
integer | $title_output | 0 for full title, 1 for title without points, 2 for no title public |
Definition at line 3396 of file class.ilObjTest.php.
References $title_output.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::setUsePreviousAnswers | ( | $use_previous_answers = 1 | ) |
Sets the status of the visibility of previous learner answers.
integer | $use_previous_answers | 1 if the previous answers should be shown public |
Definition at line 3377 of file class.ilObjTest.php.
References $use_previous_answers.
Referenced by applyDefaults(), fromXML(), and loadFromDb().
ilObjTest::startingTimeReached | ( | ) |
Returns true if the starting time of a test is reached A starting time is not available for self assessment tests.
Definition at line 5698 of file class.ilObjTest.php.
References getStartingTime().
Referenced by isExecutable().
ilObjTest::startWorkingTime | ( | $active_id, | |
$question_id, | |||
$pass | |||
) |
Write the initial entry for the tests working time to the database.
integer | $user_id | The database id of the user working with the test public |
Definition at line 4124 of file class.ilObjTest.php.
ilObjTest::unsetAccessCodeSession | ( | ) |
Definition at line 8671 of file class.ilObjTest.php.
References $_SESSION, ilObject\$id, and getTestId().
ilObjTest::update | ( | ) |
update object data
public
Reimplemented from ilObject.
Definition at line 532 of file class.ilObjTest.php.
ilObjTest::updateWorkingTime | ( | $times_id | ) |
Update the working time of a test when a question is answered.
integer | $times_id | The database id of a working time entry public |
Definition at line 4142 of file class.ilObjTest.php.
References $ilDB.
ilObjTest::userLookupFullName | ( | $user_id, | |
$overwrite_anonymity = FALSE , |
|||
$sorted_order = FALSE , |
|||
$suffix = "" |
|||
) |
Returns the full name of a test user according to the anonymity status.
int | $user_id | The database ID of the user |
boolean | $overwrite_anonymity | Indicates if the anonymity status should be ignored |
Definition at line 9049 of file class.ilObjTest.php.
References ilObject\$lng, ilObjUser\_lookupName(), and getAnonymity().
Referenced by removeSelectedTestResults(), removeTestResultsForUser(), sendAdvancedNotification(), and sendSimpleNotification().
|
private |
Definition at line 416 of file class.ilObjTest.php.
|
private |
Definition at line 394 of file class.ilObjTest.php.
|
private |
Definition at line 372 of file class.ilObjTest.php.
|
private |
Definition at line 409 of file class.ilObjTest.php.
|
protected |
Definition at line 26 of file class.ilObjTest.php.
|
private |
Definition at line 380 of file class.ilObjTest.php.
|
private |
Definition at line 387 of file class.ilObjTest.php.
|
private |
Definition at line 365 of file class.ilObjTest.php.
|
private |
Definition at line 402 of file class.ilObjTest.php.
ilObjTest::$allowedUsers |
Definition at line 294 of file class.ilObjTest.php.
ilObjTest::$allowedUsersTimeGap |
Definition at line 301 of file class.ilObjTest.php.
ilObjTest::$anonymity |
Definition at line 315 of file class.ilObjTest.php.
ilObjTest::$answer_feedback |
Definition at line 344 of file class.ilObjTest.php.
Referenced by setAnswerFeedback().
ilObjTest::$answer_feedback_points |
Definition at line 114 of file class.ilObjTest.php.
Referenced by setAnswerFeedbackPoints().
ilObjTest::$author |
Definition at line 49 of file class.ilObjTest.php.
Referenced by _lookupAuthor(), getAuthor(), and setAuthor().
ilObjTest::$autosave |
Definition at line 323 of file class.ilObjTest.php.
ilObjTest::$certificate_visibility |
Definition at line 308 of file class.ilObjTest.php.
ilObjTest::$count_system |
Definition at line 237 of file class.ilObjTest.php.
ilObjTest::$ects_fx |
Definition at line 206 of file class.ilObjTest.php.
ilObjTest::$ects_grades |
Definition at line 213 of file class.ilObjTest.php.
Referenced by getECTSGrades().
ilObjTest::$ects_output |
Definition at line 199 of file class.ilObjTest.php.
Referenced by saveECTSStatus().
ilObjTest::$enable_processing_time |
Definition at line 171 of file class.ilObjTest.php.
ilObjTest::$ending_time |
Definition at line 192 of file class.ilObjTest.php.
Referenced by setEndingTime().
ilObjTest::$evaluation_data |
Definition at line 131 of file class.ilObjTest.php.
|
protected |
Definition at line 421 of file class.ilObjTest.php.
Referenced by getExportSettings().
ilObjTest::$fixed_participants |
Definition at line 337 of file class.ilObjTest.php.
|
private |
Definition at line 428 of file class.ilObjTest.php.
Referenced by getImportDirectory().
ilObjTest::$instant_verification |
Definition at line 107 of file class.ilObjTest.php.
ilObjTest::$introduction |
Definition at line 71 of file class.ilObjTest.php.
Referenced by setIntroduction().
ilObjTest::$invitation = INVITATION_OFF |
Definition at line 40 of file class.ilObjTest.php.
|
protected |
Definition at line 418 of file class.ilObjTest.php.
Referenced by getMailNotification().
|
protected |
Definition at line 419 of file class.ilObjTest.php.
Referenced by getMailNotificationType().
ilObjTest::$mark_schema |
Definition at line 78 of file class.ilObjTest.php.
Referenced by cloneObject(), and getMarkSchema().
ilObjTest::$mc_scoring |
Definition at line 244 of file class.ilObjTest.php.
ilObjTest::$metadata |
Definition at line 56 of file class.ilObjTest.php.
Referenced by fromXML().
ilObjTest::$nr_of_tries |
Definition at line 139 of file class.ilObjTest.php.
Referenced by setNrOfTries().
ilObjTest::$pass_scoring |
Definition at line 251 of file class.ilObjTest.php.
ilObjTest::$password |
Definition at line 287 of file class.ilObjTest.php.
ilObjTest::$processing_time |
Definition at line 164 of file class.ilObjTest.php.
Referenced by isMaxProcessingTimeReached(), and setProcessingTime().
ilObjTest::$questions |
Definition at line 63 of file class.ilObjTest.php.
Referenced by getQuestions(), and recalculateSolutions().
ilObjTest::$random_question_count |
Definition at line 229 of file class.ilObjTest.php.
|
protected |
Definition at line 420 of file class.ilObjTest.php.
Referenced by getRandomQuestionpoolData().
ilObjTest::$random_test |
Definition at line 222 of file class.ilObjTest.php.
ilObjTest::$reporting_date |
Definition at line 124 of file class.ilObjTest.php.
Referenced by setReportingDate().
ilObjTest::$reset_processing_time |
Definition at line 178 of file class.ilObjTest.php.
ilObjTest::$results_presentation |
Definition at line 266 of file class.ilObjTest.php.
ilObjTest::$score_cutting |
Definition at line 280 of file class.ilObjTest.php.
ilObjTest::$score_reporting |
Definition at line 98 of file class.ilObjTest.php.
Referenced by setScoreReporting().
ilObjTest::$sequence_settings |
Definition at line 87 of file class.ilObjTest.php.
Referenced by setSequenceSettings().
ilObjTest::$show_cancel |
Definition at line 322 of file class.ilObjTest.php.
ilObjTest::$show_marker |
Definition at line 330 of file class.ilObjTest.php.
|
protected |
Definition at line 422 of file class.ilObjTest.php.
ilObjTest::$show_summary |
Definition at line 273 of file class.ilObjTest.php.
ilObjTest::$shuffle_questions |
Definition at line 259 of file class.ilObjTest.php.
ilObjTest::$starting_time |
Definition at line 185 of file class.ilObjTest.php.
Referenced by canShowTestResults(), isExecutable(), isMaxProcessingTimeReached(), and setStartingTime().
ilObjTest::$test_id |
Definition at line 33 of file class.ilObjTest.php.
Referenced by _evalResultsOverview(), _getActiveIdOfUser(), _getCompleteWorkingTimeOfParticipants(), _getObjectIDFromTestID(), _getQuestionCount(), _getTestIDFromObjectID(), _getVisitTimeOfParticipant(), getParticipantsForTestAndQuestion(), and getTestId().
ilObjTest::$testSequence |
Definition at line 358 of file class.ilObjTest.php.
Referenced by createRandomSolutions(), getTestResult(), and getTestSequence().
ilObjTest::$testSession |
Definition at line 351 of file class.ilObjTest.php.
Referenced by createRandomSolutions(), createTestSession(), getTestSession(), and setTestSession().
ilObjTest::$title_output |
Definition at line 157 of file class.ilObjTest.php.
Referenced by setTitleOutput().
ilObjTest::$use_previous_answers |
Definition at line 147 of file class.ilObjTest.php.
Referenced by _getUsePreviousAnswers(), and setUsePreviousAnswers().