ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
class ilcourseobjectiveQuestion More...
Public Member Functions | |
__construct ($a_objective_id) | |
Constructor type $ilDB. More... | |
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... | |
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 () | |
toXml (ilXmlWriter $writer) | |
To xml. More... | |
Static Public Member Functions | |
static | lookupObjectivesOfQuestion ($a_qid) |
Lookup objective for test question 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 | _getTest ($a_test_objective_id) |
static | _lookupMaximumPointsOfQuestion ($a_question_id) |
lookup maximimum point More... | |
static | deleteTest ($a_tst_ref_id) |
static | _hasTests ($a_course_id) |
public More... | |
static | _isAssigned ($a_objective_id, $a_tst_ref_id, $a_question_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::__construct | ( | $a_objective_id | ) |
Constructor type $ilDB.
type | $a_objective_id |
Definition at line 50 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, and __read().
ilCourseObjectiveQuestion::__addTest | ( | ) |
Definition at line 211 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, getObjectiveId(), getTestObjId(), getTestRefId(), and getTestStatus().
Referenced by add().
ilCourseObjectiveQuestion::__deleteTest | ( | $a_test_ref_id | ) |
Definition at line 261 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, and getObjectiveId().
Referenced by __read(), and delete().
ilCourseObjectiveQuestion::__read | ( | ) |
Definition at line 808 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, $row, $tree, __deleteTest(), ilObject\_getAllReferences(), ilObjTest\_instanciateQuestion(), ilCourseObjective\_lookupContainerIdByObjectiveId(), ilDBConstants\FETCHMODE_OBJECT, and getObjectiveId().
Referenced by __construct(), and add().
|
static |
Get assignable tests.
public
Definition at line 185 of file class.ilCourseObjectiveQuestion.php.
Referenced by ilCourseObjectivesGUI\finalTestAssignment(), and ilCourseObjectivesGUI\selfAssessmentAssignment().
|
static |
Definition at line 383 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, $row, $test, and ilDBConstants\FETCHMODE_OBJECT.
|
static |
public
Definition at line 873 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilCourseObjectivesGUI\setSubTabs().
|
static |
Definition at line 887 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $objective_id, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
|
static |
|
static |
lookup maximimum point
public
int | question id |
Definition at line 605 of file class.ilCourseObjectiveQuestion.php.
References assQuestion\_getMaximumPoints().
Referenced by ilLOTestQuestionAdapter\updateFixedQuestions(), ilLOTestQuestionAdapter\updateRandomQuestions(), and ilLOTestQuestionAdapter\updateSeparateTestQuestions().
|
static |
update test limits
public
int | objective_id |
int | status |
int | limit |
Definition at line 294 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilCourseObjectivesGUI\saveQuestionOverview().
ilCourseObjectiveQuestion::add | ( | ) |
Definition at line 676 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, __addTest(), __read(), getObjectiveId(), getQuestionId(), getTestObjId(), and getTestRefId().
ilCourseObjectiveQuestion::cloneDependencies | ( | $a_new_objective, | |
$a_copy_id | |||
) |
clone objective questions
public
int | source objective |
int | target objective |
int | copy id |
Definition at line 119 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $ilLog, $query, $res, $test, ilCopyWizardOptions\_getInstance(), ilLoggerFactory\getLogger(), getQuestions(), and getTests().
ilCourseObjectiveQuestion::delete | ( | $qst_id | ) |
Definition at line 704 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, $row, __deleteTest(), ilDBConstants\FETCHMODE_OBJECT, and getObjectiveId().
ilCourseObjectiveQuestion::deleteAll | ( | ) |
Definition at line 789 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, and getObjectiveId().
ilCourseObjectiveQuestion::deleteByTestType | ( | $a_type | ) |
Definition at line 758 of file class.ilCourseObjectiveQuestion.php.
References $a_type, $DIC, $ilDB, $query, and getObjectiveId().
|
static |
Definition at line 742 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, and $query.
Referenced by ilLOEditorGUI\deleteTest(), and ilLOEditorGUI\deleteTests().
ilCourseObjectiveQuestion::getFinalTestPoints | ( | ) |
get final test points
public
Definition at line 447 of file class.ilCourseObjectiveQuestion.php.
References getFinalTestQuestions().
Referenced by updateLimits().
ilCourseObjectiveQuestion::getFinalTestQuestions | ( | ) |
get final test questions
public
Definition at line 494 of file class.ilCourseObjectiveQuestion.php.
Referenced by getFinalTestPoints().
ilCourseObjectiveQuestion::getFinalTests | ( | ) |
get final tests
public
Definition at line 373 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().
ilCourseObjectiveQuestion::getMaxPointsByTest | ( | $a_test_ref_id | ) |
Definition at line 577 of file class.ilCourseObjectiveQuestion.php.
References ilObjTest\_instanciateQuestion(), ilObjectFactory\getInstanceByRefId(), and getQuestions().
ilCourseObjectiveQuestion::getNumberOfQuestionsByTest | ( | $a_test_ref_id | ) |
Definition at line 612 of file class.ilCourseObjectiveQuestion.php.
References getQuestions().
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().
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().
ilCourseObjectiveQuestion::getQuestions | ( | ) |
Definition at line 406 of file class.ilCourseObjectiveQuestion.php.
Referenced by cloneDependencies(), getMaxPointsByObjective(), getMaxPointsByTest(), getNumberOfQuestionsByTest(), getQuestionsByTest(), and getQuestionsOfTest().
ilCourseObjectiveQuestion::getQuestionsByTest | ( | $a_test_ref_id | ) |
Definition at line 624 of file class.ilCourseObjectiveQuestion.php.
References getQuestions().
Referenced by toXml().
ilCourseObjectiveQuestion::getQuestionsOfTest | ( | $a_test_id | ) |
Get questions of test.
public
int | test id |
Definition at line 513 of file class.ilCourseObjectiveQuestion.php.
References $questions, and getQuestions().
ilCourseObjectiveQuestion::getSelfAssessmentPoints | ( | ) |
get self assessment points
public
Definition at line 433 of file class.ilCourseObjectiveQuestion.php.
References getSelfAssessmentQuestions().
Referenced by updateLimits().
ilCourseObjectiveQuestion::getSelfAssessmentQuestions | ( | ) |
get self assessment questions
public
Definition at line 417 of file class.ilCourseObjectiveQuestion.php.
References TYPE_SELF_ASSESSMENT.
Referenced by getSelfAssessmentPoints().
ilCourseObjectiveQuestion::getSelfAssessmentTests | ( | ) |
get self assessment tests
public
Definition at line 357 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().
ilCourseObjectiveQuestion::getTestRefId | ( | ) |
Definition at line 537 of file class.ilCourseObjectiveQuestion.php.
Referenced by __addTest(), and add().
ilCourseObjectiveQuestion::getTests | ( | ) |
Definition at line 323 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, $row, $test, $tests, ilDBConstants\FETCHMODE_OBJECT, and getObjectiveId().
Referenced by cloneDependencies(), and toXml().
ilCourseObjectiveQuestion::getTestStatus | ( | ) |
Definition at line 199 of file class.ilCourseObjectiveQuestion.php.
Referenced by __addTest(), and updateTest().
ilCourseObjectiveQuestion::getTestSuggestedLimit | ( | ) |
Definition at line 207 of file class.ilCourseObjectiveQuestion.php.
Referenced by updateTest().
ilCourseObjectiveQuestion::isFinalTestQuestion | ( | $a_question_id | ) |
is final test question
public
int | question id |
Definition at line 478 of file class.ilCourseObjectiveQuestion.php.
ilCourseObjectiveQuestion::isSelfAssessmentQuestion | ( | $a_question_id | ) |
check if question is self assessment question
int | question id public |
Definition at line 461 of file class.ilCourseObjectiveQuestion.php.
References TYPE_SELF_ASSESSMENT.
|
static |
Lookup objective for test question type $ilDB.
type | $a_test_ref_id | |
type | $a_qid |
Definition at line 71 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLOTestQuestionAdapter\lookupObjectiveIdByFixedQuestionId().
|
static |
Definition at line 908 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $questions, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLOEditorStatus\lookupQuestionsAssigned(), and ilLOTestQuestionAdapter\updateFixedQuestions().
|
static |
Definition at line 926 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLOUtils\lookupObjectiveRequiredPercentage().
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 195 of file class.ilCourseObjectiveQuestion.php.
ilCourseObjectiveQuestion::setTestSuggestedLimit | ( | $a_limit | ) |
Definition at line 203 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().
ilCourseObjectiveQuestion::updateLimits | ( | ) |
update limits
public
Definition at line 641 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, getFinalTestPoints(), getSelfAssessmentPoints(), and TYPE_SELF_ASSESSMENT.
ilCourseObjectiveQuestion::updateTest | ( | $a_objective_id | ) |
Definition at line 308 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $query, $res, getTestStatus(), and getTestSuggestedLimit().
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(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\saveRandom(), 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(), ilCourseObjectiveQuestionAssignmentTableGUI\getTestNode(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\saveRandom(), ilCourseObjectivesGUI\selfAssessmentAssignment(), ilCourseObjectivesGUI\updateSelfAssessmentAssignment(), and ilCourseObjectivesGUI\updateSelfAssessmentLimits().