|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
class ilcourseobjectiveQuestion More...
Inheritance diagram for ilCourseObjectiveQuestion:
Collaboration diagram for ilCourseObjectiveQuestion:Public Member Functions | |
| ilCourseObjectiveQuestion ($a_objective_id) | |
| cloneDependencies ($a_new_objective, $a_copy_id) | |
| clone objective questions More... | |
| setTestStatus ($a_status) | |
| getTestStatus () | |
| setTestSuggestedLimit ($a_limit) | |
| getTestSuggestedLimit () | |
| __addTest () | |
| __deleteTest ($a_test_ref_id) | |
| updateTest ($a_objective_id) | |
| getTests () | |
| getSelfAssessmentTests () | |
| get self assessment tests More... | |
| getFinalTests () | |
| get final tests More... | |
| _getTest ($a_test_objective_id) | |
| getQuestions () | |
| getSelfAssessmentQuestions () | |
| get self assessment questions More... | |
| getSelfAssessmentPoints () | |
| get self assessment points More... | |
| getFinalTestPoints () | |
| get final test points More... | |
| isSelfAssessmentQuestion ($a_question_id) | |
| check if question is self assessment question More... | |
| isFinalTestQuestion ($a_question_id) | |
| is final test question More... | |
| getFinalTestQuestions () | |
| get final test questions More... | |
| getQuestionsOfTest ($a_test_id) | |
| Get questions of test. More... | |
| getQuestion ($question_id) | |
| getObjectiveId () | |
| setTestRefId ($a_ref_id) | |
| getTestRefId () | |
| setTestObjId ($a_obj_id) | |
| getTestObjId () | |
| setQuestionId ($a_question_id) | |
| getQuestionId () | |
| getMaxPointsByObjective () | |
| getMaxPointsByTest ($a_test_ref_id) | |
| getNumberOfQuestionsByTest ($a_test_ref_id) | |
| getQuestionsByTest ($a_test_ref_id) | |
| updateLimits () | |
| update limits More... | |
| add () | |
| delete ($qst_id) | |
| deleteByTestType ($a_type) | |
| deleteAll () | |
| __read () | |
| _hasTests ($a_course_id) | |
| @access public More... | |
| _isAssigned ($a_objective_id, $a_tst_ref_id, $a_question_id) | |
| toXml (ilXmlWriter $writer) | |
| To xml. More... | |
Static Public Member Functions | |
| static | lookupObjectivesOfQuestion ($a_qid) |
| Lookup objective for test question @global type $ilDB. More... | |
| static | _isTestAssignedToObjective ($a_test_id, $a_objective_id) |
| Check if test is assigned to objective. More... | |
| static | _getAssignableTests ($a_container_ref_id) |
| Get assignable tests. More... | |
| static | _updateTestLimits ($a_objective_id, $a_status, $a_limit) |
| update test limits More... | |
| static | _lookupMaximumPointsOfQuestion ($a_question_id) |
| lookup maximimum point More... | |
| static | deleteTest ($a_tst_ref_id) |
| static | lookupQuestionsByObjective ($a_test_id, $a_objective) |
| static | loookupTestLimit ($a_test_id, $a_objective_id) |
Data Fields | |
| const | TYPE_SELF_ASSESSMENT = 0 |
| const | TYPE_FINAL_TEST = 1 |
| $db = null | |
| $objective_id = null | |
| $questions | |
Protected Attributes | |
| $tests = array() | |
class ilcourseobjectiveQuestion
Definition at line 34 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::__addTest | ( | ) |
Definition at line 202 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, $row, DB_FETCHMODE_OBJECT, getObjectiveId(), getTestObjId(), getTestRefId(), and getTestStatus().
Referenced by add().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseObjectiveQuestion::__deleteTest | ( | $a_test_ref_id | ) |
Definition at line 252 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, and getObjectiveId().
Referenced by __read(), and delete().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseObjectiveQuestion::__read | ( | ) |
Definition at line 812 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, $row, __deleteTest(), ilObject\_getAllReferences(), ilObjTest\_instanciateQuestion(), ilCourseObjective\_lookupContainerIdByObjectiveId(), DB_FETCHMODE_OBJECT, and getObjectiveId().
Referenced by add(), and ilCourseObjectiveQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get assignable tests.
@access public
Definition at line 178 of file class.ilCourseObjectiveQuestion.php.
Referenced by ilCourseObjectivesGUI\finalTestAssignment(), and ilCourseObjectivesGUI\selfAssessmentAssignment().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::_getTest | ( | $a_test_objective_id | ) |
Definition at line 371 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, $row, $test, and DB_FETCHMODE_OBJECT.
| ilCourseObjectiveQuestion::_hasTests | ( | $a_course_id | ) |
@access public
return
Definition at line 878 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, and $res.
Referenced by ilCourseObjectivesGUI\setSubTabs().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::_isAssigned | ( | $a_objective_id, | |
| $a_tst_ref_id, | |||
| $a_question_id | |||
| ) |
Definition at line 890 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $objective_id, $query, $res, $row, and DB_FETCHMODE_OBJECT.
|
static |
Check if test is assigned to objective.
@access public
| int | test ref_id |
| int | objective_id |
Definition at line 89 of file class.ilCourseObjectiveQuestion.php.
|
static |
lookup maximimum point
@access public
| int | question id |
Definition at line 608 of file class.ilCourseObjectiveQuestion.php.
References assQuestion\_getMaximumPoints().
Referenced by ilLOTestQuestionAdapter\updateFixedQuestions(), ilLOTestQuestionAdapter\updateRandomQuestions(), and ilLOTestQuestionAdapter\updateSeparateTestQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
update test limits
@access public
| int | objective_id |
| int | status |
| int | limit |
Definition at line 283 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, and $res.
Referenced by ilCourseObjectivesGUI\saveQuestionOverview().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::add | ( | ) |
Definition at line 685 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, __addTest(), __read(), getObjectiveId(), getQuestionId(), getTestObjId(), and getTestRefId().
Here is the call graph for this function:| ilCourseObjectiveQuestion::cloneDependencies | ( | $a_new_objective, | |
| $a_copy_id | |||
| ) |
clone objective questions
@access public
| int | source objective |
| int | target objective |
| int | copy id |
Definition at line 109 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $ilLog, $query, $res, $test, ilCopyWizardOptions\_getInstance(), ilLoggerFactory\getLogger(), getQuestions(), getTests(), and ilCourseObjectiveQuestion().
Here is the call graph for this function:| ilCourseObjectiveQuestion::delete | ( | $qst_id | ) |
Definition at line 711 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, $row, __deleteTest(), DB_FETCHMODE_OBJECT, and getObjectiveId().
Here is the call graph for this function:| ilCourseObjectiveQuestion::deleteAll | ( | ) |
Definition at line 795 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, and getObjectiveId().
Here is the call graph for this function:| ilCourseObjectiveQuestion::deleteByTestType | ( | $a_type | ) |
Definition at line 764 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, and getObjectiveId().
Here is the call graph for this function:
|
static |
Definition at line 750 of file class.ilCourseObjectiveQuestion.php.
Referenced by ilLOEditorGUI\deleteTest(), and ilLOEditorGUI\deleteTests().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getFinalTestPoints | ( | ) |
get final test points
@access public
Definition at line 437 of file class.ilCourseObjectiveQuestion.php.
References getFinalTestQuestions().
Referenced by updateLimits().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getFinalTestQuestions | ( | ) |
get final test questions
@access public
Definition at line 490 of file class.ilCourseObjectiveQuestion.php.
Referenced by getFinalTestPoints().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getFinalTests | ( | ) |
get final tests
@access public
Definition at line 359 of file class.ilCourseObjectiveQuestion.php.
References $test.
| ilCourseObjectiveQuestion::getMaxPointsByObjective | ( | ) |
Definition at line 559 of file class.ilCourseObjectiveQuestion.php.
References ilObjTest\_instanciateQuestion(), ilObjectFactory\getInstanceByRefId(), and getQuestions().
Here is the call graph for this function:| ilCourseObjectiveQuestion::getMaxPointsByTest | ( | $a_test_ref_id | ) |
Definition at line 578 of file class.ilCourseObjectiveQuestion.php.
References ilObjTest\_instanciateQuestion(), ilObjectFactory\getInstanceByRefId(), and getQuestions().
Here is the call graph for this function:| ilCourseObjectiveQuestion::getNumberOfQuestionsByTest | ( | $a_test_ref_id | ) |
Definition at line 615 of file class.ilCourseObjectiveQuestion.php.
References getQuestions().
Here is the call graph for this function:| ilCourseObjectiveQuestion::getObjectiveId | ( | ) |
Definition at line 528 of file class.ilCourseObjectiveQuestion.php.
References $objective_id.
Referenced by __addTest(), __deleteTest(), __read(), add(), delete(), deleteAll(), deleteByTestType(), and getTests().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getQuestion | ( | $question_id | ) |
Definition at line 523 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::getQuestionId | ( | ) |
Definition at line 553 of file class.ilCourseObjectiveQuestion.php.
Referenced by add().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getQuestions | ( | ) |
Definition at line 393 of file class.ilCourseObjectiveQuestion.php.
Referenced by cloneDependencies(), getMaxPointsByObjective(), getMaxPointsByTest(), getNumberOfQuestionsByTest(), getQuestionsByTest(), and getQuestionsOfTest().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getQuestionsByTest | ( | $a_test_ref_id | ) |
Definition at line 629 of file class.ilCourseObjectiveQuestion.php.
References getQuestions().
Referenced by toXml().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getQuestionsOfTest | ( | $a_test_id | ) |
Get questions of test.
@access public
| int | test id |
Definition at line 511 of file class.ilCourseObjectiveQuestion.php.
References $questions, and getQuestions().
Here is the call graph for this function:| ilCourseObjectiveQuestion::getSelfAssessmentPoints | ( | ) |
get self assessment points
@access public
Definition at line 422 of file class.ilCourseObjectiveQuestion.php.
References getSelfAssessmentQuestions().
Referenced by updateLimits().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getSelfAssessmentQuestions | ( | ) |
get self assessment questions
@access public
Definition at line 404 of file class.ilCourseObjectiveQuestion.php.
References TYPE_SELF_ASSESSMENT.
Referenced by getSelfAssessmentPoints().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getSelfAssessmentTests | ( | ) |
get self assessment tests
@access public
return
Definition at line 341 of file class.ilCourseObjectiveQuestion.php.
References $test, and TYPE_SELF_ASSESSMENT.
| ilCourseObjectiveQuestion::getTestObjId | ( | ) |
Definition at line 545 of file class.ilCourseObjectiveQuestion.php.
Referenced by __addTest(), and add().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTestRefId | ( | ) |
Definition at line 537 of file class.ilCourseObjectiveQuestion.php.
Referenced by __addTest(), and add().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTests | ( | ) |
Definition at line 308 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, $row, $test, $tests, DB_FETCHMODE_OBJECT, and getObjectiveId().
Referenced by cloneDependencies(), and toXml().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTestStatus | ( | ) |
Definition at line 190 of file class.ilCourseObjectiveQuestion.php.
Referenced by __addTest(), and updateTest().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTestSuggestedLimit | ( | ) |
Definition at line 198 of file class.ilCourseObjectiveQuestion.php.
Referenced by updateTest().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::ilCourseObjectiveQuestion | ( | $a_objective_id | ) |
Definition at line 45 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, and __read().
Referenced by cloneDependencies().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseObjectiveQuestion::isFinalTestQuestion | ( | $a_question_id | ) |
is final test question
@access public
| int | question id |
Definition at line 471 of file class.ilCourseObjectiveQuestion.php.
References TYPE_FINAL_TEST.
| ilCourseObjectiveQuestion::isSelfAssessmentQuestion | ( | $a_question_id | ) |
check if question is self assessment question
| int | question id @access public |
Definition at line 452 of file class.ilCourseObjectiveQuestion.php.
References TYPE_SELF_ASSESSMENT.
|
static |
Lookup objective for test question @global type $ilDB.
| type | $a_test_ref_id | |
| type | $a_qid |
Definition at line 64 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLOTestQuestionAdapter\lookupObjectiveIdByFixedQuestionId().
Here is the caller graph for this function:
|
static |
Definition at line 910 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $questions, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLOEditorStatus\lookupQuestionsAssigned(), and ilLOTestQuestionAdapter\updateFixedQuestions().
Here is the caller graph for this function:
|
static |
Definition at line 927 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLOUtils\lookupObjectiveRequiredPercentage().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::setQuestionId | ( | $a_question_id | ) |
Definition at line 549 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestObjId | ( | $a_obj_id | ) |
Definition at line 541 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestRefId | ( | $a_ref_id | ) |
Definition at line 533 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestStatus | ( | $a_status | ) |
Definition at line 186 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestSuggestedLimit | ( | $a_limit | ) |
Definition at line 194 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::toXml | ( | ilXmlWriter | $writer | ) |
To xml.
| ilXmlWriter | $writer |
Definition at line 946 of file class.ilCourseObjectiveQuestion.php.
References $test, getQuestionsByTest(), getTests(), ilLOXmlWriter\TYPE_TST_ALL, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
Here is the call graph for this function:| ilCourseObjectiveQuestion::updateLimits | ( | ) |
update limits
@access public
return
Definition at line 648 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $ref_id, $res, getFinalTestPoints(), getSelfAssessmentPoints(), TYPE_FINAL_TEST, and TYPE_SELF_ASSESSMENT.
Here is the call graph for this function:| ilCourseObjectiveQuestion::updateTest | ( | $a_objective_id | ) |
Definition at line 295 of file class.ilCourseObjectiveQuestion.php.
References $ilDB, $query, $res, getTestStatus(), and getTestSuggestedLimit().
Here is the call graph for this function:| ilCourseObjectiveQuestion::$db = null |
Definition at line 39 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::$objective_id = null |
Definition at line 41 of file class.ilCourseObjectiveQuestion.php.
Referenced by _isAssigned(), and getObjectiveId().
| ilCourseObjectiveQuestion::$questions |
Definition at line 42 of file class.ilCourseObjectiveQuestion.php.
Referenced by getQuestionsOfTest(), and lookupQuestionsByObjective().
|
protected |
Definition at line 43 of file class.ilCourseObjectiveQuestion.php.
Referenced by getTests().
| const ilCourseObjectiveQuestion::TYPE_FINAL_TEST = 1 |
Definition at line 37 of file class.ilCourseObjectiveQuestion.php.
Referenced by ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\fillRow(), ilCourseObjectivesGUI\finalTestAssignment(), ilCourseObjectiveQuestionAssignmentTableGUI\getTestNode(), isFinalTestQuestion(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\saveRandom(), ilCourseObjectivesGUI\updateFinalTestAssignment(), ilCourseObjectivesGUI\updateFinalTestLimits(), and updateLimits().
| const ilCourseObjectiveQuestion::TYPE_SELF_ASSESSMENT = 0 |
Definition at line 36 of file class.ilCourseObjectiveQuestion.php.
Referenced by ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\fillRow(), ilCourseObjectiveQuestionAssignmentTableGUI\getTestNode(), isSelfAssessmentQuestion(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\saveRandom(), ilCourseObjectivesGUI\selfAssessmentAssignment(), updateLimits(), ilCourseObjectivesGUI\updateSelfAssessmentAssignment(), and ilCourseObjectivesGUI\updateSelfAssessmentLimits().