|
ILIAS
Release_3_10_x_branch Revision 61812
|
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 | |
| setTestStatus ($a_status) | |
| getTestStatus () | |
| setTestSuggestedLimit ($a_limit) | |
| getTestSuggestedLimit () | |
| __addTest () | |
| __deleteTest ($a_test_ref_id) | |
| updateTest ($a_objective_id) | |
| getTests () | |
| getSelfAssessmentTests () | |
| get self assessment tests | |
| getFinalTests () | |
| get final tests | |
| _getTest ($a_test_objective_id) | |
| getQuestions () | |
| getSelfAssessmentQuestions () | |
| get self assessment questions | |
| getSelfAssessmentPoints () | |
| get self assessment points | |
| getFinalTestPoints () | |
| get final test points | |
| isSelfAssessmentQuestion ($a_question_id) | |
| check if question is self assessment question | |
| isFinalTestQuestion ($a_question_id) | |
| is final test question | |
| getFinalTestQuestions () | |
| get final test questions | |
| getQuestionsOfTest ($a_test_id) | |
| Get questions of test. | |
| 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 | |
| add () | |
| delete ($qst_id) | |
| deleteAll () | |
| __read () | |
| _hasTests ($a_course_id) | |
| public | |
| _isAssigned ($a_objective_id, $a_tst_ref_id, $a_question_id) | |
Static Public Member Functions | |
| static | _isTestAssignedToObjective ($a_test_id, $a_objective_id) |
| Check if test is assigned to objective. | |
| static | _getAssignableTests ($a_container_ref_id) |
| Get assignable tests. | |
| static | _updateTestLimits ($a_objective_id, $a_status, $a_limit) |
| update test limits | |
| static | _lookupMaximumPointsOfQuestion ($a_question_id) |
| lookup maximimum point | |
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 177 of file class.ilCourseObjectiveQuestion.php.
References $res, 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 224 of file class.ilCourseObjectiveQuestion.php.
References 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 742 of file class.ilCourseObjectiveQuestion.php.
References $res, __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.
public
Definition at line 153 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 347 of file class.ilCourseObjectiveQuestion.php.
References $res, $test, and DB_FETCHMODE_OBJECT.
| ilCourseObjectiveQuestion::_hasTests | ( | $a_course_id | ) |
public
| @return |
Definition at line 808 of file class.ilCourseObjectiveQuestion.php.
References $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 820 of file class.ilCourseObjectiveQuestion.php.
References $objective_id, $res, and DB_FETCHMODE_OBJECT.
|
static |
Check if test is assigned to objective.
public
| int | test ref_id |
| int | objective_id |
Definition at line 67 of file class.ilCourseObjectiveQuestion.php.
References $res.
Referenced by ilCourseObjectivePresentationGUI\__showTests().
Here is the caller graph for this function:
|
static |
lookup maximimum point
public
| int | question id |
Definition at line 584 of file class.ilCourseObjectiveQuestion.php.
References assQuestion\_getMaximumPoints().
Here is the call graph for this function:
|
static |
update test limits
public
| int | objective_id |
| int | status |
| int | limit |
Definition at line 257 of file class.ilCourseObjectiveQuestion.php.
Referenced by ilCourseObjectivesGUI\saveQuestionOverview().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::add | ( | ) |
Definition at line 659 of file class.ilCourseObjectiveQuestion.php.
References __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
public
| int | source objective |
| int | target objective |
| int | copy id |
Definition at line 87 of file class.ilCourseObjectiveQuestion.php.
References $ilLog, $test, ilCopyWizardOptions\_getInstance(), getQuestions(), getTests(), and ilCourseObjectiveQuestion().
Here is the call graph for this function:| ilCourseObjectiveQuestion::delete | ( | $qst_id | ) |
Definition at line 683 of file class.ilCourseObjectiveQuestion.php.
References $res, __deleteTest(), DB_FETCHMODE_OBJECT, and getObjectiveId().
Here is the call graph for this function:| ilCourseObjectiveQuestion::deleteAll | ( | ) |
Definition at line 723 of file class.ilCourseObjectiveQuestion.php.
References getObjectiveId().
Here is the call graph for this function:| ilCourseObjectiveQuestion::getFinalTestPoints | ( | ) |
get final test points
public
Definition at line 413 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
public
Definition at line 466 of file class.ilCourseObjectiveQuestion.php.
Referenced by getFinalTestPoints().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getFinalTests | ( | ) |
get final tests
public
Definition at line 335 of file class.ilCourseObjectiveQuestion.php.
References $test.
| ilCourseObjectiveQuestion::getMaxPointsByObjective | ( | ) |
Definition at line 535 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 554 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 591 of file class.ilCourseObjectiveQuestion.php.
References getQuestions().
Here is the call graph for this function:| ilCourseObjectiveQuestion::getObjectiveId | ( | ) |
Definition at line 504 of file class.ilCourseObjectiveQuestion.php.
References $objective_id.
Referenced by __addTest(), __deleteTest(), __read(), add(), delete(), deleteAll(), and getTests().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getQuestion | ( | $question_id | ) |
Definition at line 499 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::getQuestionId | ( | ) |
Definition at line 529 of file class.ilCourseObjectiveQuestion.php.
Referenced by add().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getQuestions | ( | ) |
Definition at line 369 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 605 of file class.ilCourseObjectiveQuestion.php.
References getQuestions().
Here is the call graph for this function:| ilCourseObjectiveQuestion::getQuestionsOfTest | ( | $a_test_id | ) |
Get questions of test.
public
| int | test id |
Definition at line 487 of file class.ilCourseObjectiveQuestion.php.
References $questions, and getQuestions().
Here is the call graph for this function:| ilCourseObjectiveQuestion::getSelfAssessmentPoints | ( | ) |
get self assessment points
public
Definition at line 398 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
public
Definition at line 380 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
public
| @return |
Definition at line 317 of file class.ilCourseObjectiveQuestion.php.
References $test, and TYPE_SELF_ASSESSMENT.
| ilCourseObjectiveQuestion::getTestObjId | ( | ) |
Definition at line 521 of file class.ilCourseObjectiveQuestion.php.
Referenced by __addTest(), and add().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTestRefId | ( | ) |
Definition at line 513 of file class.ilCourseObjectiveQuestion.php.
Referenced by __addTest(), and add().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTests | ( | ) |
Definition at line 284 of file class.ilCourseObjectiveQuestion.php.
References $res, $test, $tests, DB_FETCHMODE_OBJECT, and getObjectiveId().
Referenced by cloneDependencies().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTestStatus | ( | ) |
Definition at line 165 of file class.ilCourseObjectiveQuestion.php.
Referenced by __addTest(), and updateTest().
Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTestSuggestedLimit | ( | ) |
Definition at line 173 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 __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
public
| int | question id |
Definition at line 447 of file class.ilCourseObjectiveQuestion.php.
References TYPE_FINAL_TEST.
| ilCourseObjectiveQuestion::isSelfAssessmentQuestion | ( | $a_question_id | ) |
check if question is self assessment question
| int | question id public |
Definition at line 428 of file class.ilCourseObjectiveQuestion.php.
References TYPE_SELF_ASSESSMENT.
| ilCourseObjectiveQuestion::setQuestionId | ( | $a_question_id | ) |
Definition at line 525 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestObjId | ( | $a_obj_id | ) |
Definition at line 517 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestRefId | ( | $a_ref_id | ) |
Definition at line 509 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestStatus | ( | $a_status | ) |
Definition at line 161 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestSuggestedLimit | ( | $a_limit | ) |
Definition at line 169 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::updateLimits | ( | ) |
update limits
public
| @return |
Definition at line 624 of file class.ilCourseObjectiveQuestion.php.
References $ref_id, getFinalTestPoints(), getSelfAssessmentPoints(), and TYPE_SELF_ASSESSMENT.
Here is the call graph for this function:| ilCourseObjectiveQuestion::updateTest | ( | $a_objective_id | ) |
Definition at line 270 of file class.ilCourseObjectiveQuestion.php.
References 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().
|
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(), isFinalTestQuestion(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\updateFinalTestAssignment(), and ilCourseObjectivesGUI\updateFinalTestLimits().
| const ilCourseObjectiveQuestion::TYPE_SELF_ASSESSMENT = 0 |
Definition at line 36 of file class.ilCourseObjectiveQuestion.php.
Referenced by ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\fillRow(), isSelfAssessmentQuestion(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\selfAssessmentAssignment(), ilCourseObjectivesGUI\updateSelfAssessmentAssignment(), and ilCourseObjectivesGUI\updateSelfAssessmentLimits().