| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
 Collaboration diagram for ilCourseObjectiveQuestion:Static Public Member Functions | |
| static | lookupObjectivesOfQuestion (int $a_qid) | 
| static | _isTestAssignedToObjective (int $a_test_id, int $a_objective_id) | 
| static | _getAssignableTests (int $a_container_ref_id) | 
| static | _updateTestLimits (int $a_objective_id, int $a_status, int $a_limit) | 
| static | _getTest (int $a_test_objective_id) | 
| static | _lookupMaximumPointsOfQuestion (int $a_question_id) | 
| static | deleteTest (int $a_tst_ref_id) | 
| static | _hasTests (int $a_course_id) | 
| static | _isAssigned (int $a_objective_id, int $a_tst_ref_id, int $a_question_id) | 
| static | lookupQuestionsByObjective (int $a_test_id, int $a_objective) | 
| static | loookupTestLimit (int $a_test_id, int $a_objective_id) | 
Data Fields | |
| const | TYPE_SELF_ASSESSMENT = 0 | 
| const | TYPE_FINAL_TEST = 1 | 
Protected Attributes | |
| ilLogger | $logger | 
| ilDBInterface | $db | 
| ilObjectDataCache | $objectDataCache | 
| ilTree | $tree | 
Private Attributes | |
| int | $objective_id = 0 | 
| array | $questions = [] | 
| array | $tests = [] | 
| int | $tst_status = 0 | 
| int | $tst_limit = 0 | 
| int | $tst_ref_id = 0 | 
| int | $tst_obj_id = 0 | 
| int | $question_id = 0 | 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning class ilcourseobjectiveQuestion
Definition at line 23 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::__construct | ( | int | $a_objective_id = 0 | ) | 
Definition at line 42 of file class.ilCourseObjectiveQuestion.php.
References $DIC, __read(), ILIAS\Repository\logger(), and ILIAS\Repository\objectDataCache().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::__addTest | ( | ) | 
Definition at line 172 of file class.ilCourseObjectiveQuestion.php.
References $res, $tst_limit, ilDBConstants\FETCHMODE_OBJECT, getObjectiveId(), getTestObjId(), getTestRefId(), getTestStatus(), and ILIAS\Repository\int().
Referenced by add().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::__deleteTest | ( | int | $a_test_ref_id | ) | 
Definition at line 221 of file class.ilCourseObjectiveQuestion.php.
References $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 630 of file class.ilCourseObjectiveQuestion.php.
References $res, __deleteTest(), ilObject\_getAllReferences(), ilObjTest\_instanciateQuestion(), ilCourseObjective\_lookupContainerIdByObjectiveId(), ilDBConstants\FETCHMODE_OBJECT, getObjectiveId(), and ILIAS\Repository\int().
Referenced by __construct(), and add().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 143 of file class.ilCourseObjectiveQuestion.php.
References $DIC, ilTree\getNodeData(), and ilTree\getSubTree().
Referenced by ilCourseObjectivesGUI\finalTestAssignment(), and ilCourseObjectivesGUI\selfAssessmentAssignment().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 304 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 683 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, and $res.
      
  | 
  static | 
Definition at line 696 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $objective_id, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 73 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, and $res.
      
  | 
  static | 
Definition at line 470 of file class.ilCourseObjectiveQuestion.php.
References $DIC.
Referenced by ilLOTestQuestionAdapter\updateFixedQuestions(), ilLOTestQuestionAdapter\updateRandomQuestions(), and ilLOTestQuestionAdapter\updateSeparateTestQuestions().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 237 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, and $res.
Referenced by ilCourseObjectivesGUI\saveQuestionOverview().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::add | ( | ) | 
Definition at line 529 of file class.ilCourseObjectiveQuestion.php.
References $res, __addTest(), __read(), getObjectiveId(), getQuestionId(), getTestObjId(), and getTestRefId().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::cloneDependencies | ( | int | $a_new_objective, | 
| int | $a_copy_id | ||
| ) | 
Definition at line 86 of file class.ilCourseObjectiveQuestion.php.
References $res, ilCopyWizardOptions\_getInstance(), ilLoggerFactory\getLogger(), getQuestions(), getTests(), ILIAS\Repository\int(), ILIAS\Repository\logger(), and ILIAS\Repository\objectDataCache().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::delete | ( | int | $qst_id | ) | 
Definition at line 551 of file class.ilCourseObjectiveQuestion.php.
References $res, __deleteTest(), ilDBConstants\FETCHMODE_OBJECT, getObjectiveId(), and ILIAS\Repository\int().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::deleteAll | ( | ) | 
Definition at line 619 of file class.ilCourseObjectiveQuestion.php.
References $res, and getObjectiveId().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::deleteByTestType | ( | int | $a_type | ) | 
Definition at line 598 of file class.ilCourseObjectiveQuestion.php.
References getObjectiveId().
 Here is the call graph for this function:
      
  | 
  static | 
Definition at line 584 of file class.ilCourseObjectiveQuestion.php.
Referenced by ilLOEditorGUI\deleteTest(), and ilLOEditorGUI\deleteTests().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::getFinalTestPoints | ( | ) | 
Definition at line 351 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 | ( | ) | 
Definition at line 380 of file class.ilCourseObjectiveQuestion.php.
Referenced by getFinalTestPoints().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::getFinalTests | ( | ) | 
Definition at line 293 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::getMaxPointsByObjective | ( | ) | 
Definition at line 446 of file class.ilCourseObjectiveQuestion.php.
References ilObjTest\_instanciateQuestion(), ilObjectFactory\getInstanceByRefId(), and getQuestions().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::getMaxPointsByTest | ( | int | $a_test_ref_id | ) | 
Definition at line 457 of file class.ilCourseObjectiveQuestion.php.
References ilObjTest\_instanciateQuestion(), ilObjectFactory\getInstanceByRefId(), and getQuestions().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::getNumberOfQuestionsByTest | ( | int | $a_test_ref_id | ) | 
Definition at line 476 of file class.ilCourseObjectiveQuestion.php.
References getQuestions().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::getObjectiveId | ( | ) | 
Definition at line 411 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 | ( | int | $question_id | ) | 
Definition at line 402 of file class.ilCourseObjectiveQuestion.php.
References $question_id.
| ilCourseObjectiveQuestion::getQuestionId | ( | ) | 
Definition at line 441 of file class.ilCourseObjectiveQuestion.php.
References $question_id.
Referenced by add().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::getQuestions | ( | ) | 
Definition at line 326 of file class.ilCourseObjectiveQuestion.php.
References $questions.
Referenced by cloneDependencies(), getMaxPointsByObjective(), getMaxPointsByTest(), getNumberOfQuestionsByTest(), getQuestionsByTest(), and getQuestionsOfTest().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::getQuestionsByTest | ( | int | $a_test_ref_id | ) | 
Definition at line 487 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 | ( | int | $a_test_id | ) | 
Definition at line 391 of file class.ilCourseObjectiveQuestion.php.
References $questions, and getQuestions().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::getSelfAssessmentPoints | ( | ) | 
Definition at line 342 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 | ( | ) | 
Definition at line 331 of file class.ilCourseObjectiveQuestion.php.
Referenced by getSelfAssessmentPoints().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::getSelfAssessmentTests | ( | ) | 
Definition at line 282 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::getTestObjId | ( | ) | 
Definition at line 431 of file class.ilCourseObjectiveQuestion.php.
References $tst_obj_id.
Referenced by __addTest(), and add().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTestRefId | ( | ) | 
Definition at line 421 of file class.ilCourseObjectiveQuestion.php.
References $tst_ref_id.
Referenced by __addTest(), and add().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTests | ( | ) | 
Definition at line 259 of file class.ilCourseObjectiveQuestion.php.
References $res, $tests, ilDBConstants\FETCHMODE_OBJECT, getObjectiveId(), and ILIAS\Repository\int().
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 157 of file class.ilCourseObjectiveQuestion.php.
References $tst_status.
Referenced by __addTest(), and updateTest().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::getTestSuggestedLimit | ( | ) | 
Definition at line 167 of file class.ilCourseObjectiveQuestion.php.
References $tst_limit.
Referenced by updateTest().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::isFinalTestQuestion | ( | int | $a_question_id | ) | 
Definition at line 370 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::isSelfAssessmentQuestion | ( | int | $a_question_id | ) | 
Definition at line 360 of file class.ilCourseObjectiveQuestion.php.
      
  | 
  static | 
Definition at line 58 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $res, ilDBConstants\FETCHMODE_OBJECT, and ILIAS\Repository\int().
Referenced by ilLOTestQuestionAdapter\lookupObjectiveIdByFixedQuestionId().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 715 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $questions, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLOEditorStatus\lookupQuestionsAssigned(), and ilLOTestQuestionAdapter\updateFixedQuestions().
 Here is the caller graph for this function:
      
  | 
  static | 
Definition at line 732 of file class.ilCourseObjectiveQuestion.php.
References $DIC, $ilDB, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLOUtils\lookupObjectiveRequiredPercentage().
 Here is the caller graph for this function:| ilCourseObjectiveQuestion::setQuestionId | ( | int | $a_question_id | ) | 
Definition at line 436 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestObjId | ( | int | $a_obj_id | ) | 
Definition at line 426 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestRefId | ( | int | $a_ref_id | ) | 
Definition at line 416 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestStatus | ( | int | $a_status | ) | 
Definition at line 152 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::setTestSuggestedLimit | ( | int | $a_limit | ) | 
Definition at line 162 of file class.ilCourseObjectiveQuestion.php.
| ilCourseObjectiveQuestion::toXml | ( | ilXmlWriter | $writer | ) | 
Definition at line 747 of file class.ilCourseObjectiveQuestion.php.
References getQuestionsByTest(), getTests(), ilLOXmlWriter\TYPE_TST_ALL, ilXmlWriter\xmlElement(), ilXmlWriter\xmlEndTag(), and ilXmlWriter\xmlStartTag().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::updateLimits | ( | ) | 
Definition at line 498 of file class.ilCourseObjectiveQuestion.php.
References $res, getFinalTestPoints(), and getSelfAssessmentPoints().
 Here is the call graph for this function:| ilCourseObjectiveQuestion::updateTest | ( | int | $a_objective_id | ) | 
Definition at line 250 of file class.ilCourseObjectiveQuestion.php.
References $res, getTestStatus(), and getTestSuggestedLimit().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 38 of file class.ilCourseObjectiveQuestion.php.
      
  | 
  protected | 
Definition at line 37 of file class.ilCourseObjectiveQuestion.php.
      
  | 
  protected | 
Definition at line 39 of file class.ilCourseObjectiveQuestion.php.
      
  | 
  private | 
Definition at line 28 of file class.ilCourseObjectiveQuestion.php.
Referenced by _isAssigned(), and getObjectiveId().
      
  | 
  private | 
Definition at line 35 of file class.ilCourseObjectiveQuestion.php.
Referenced by getQuestion(), and getQuestionId().
      
  | 
  private | 
Definition at line 29 of file class.ilCourseObjectiveQuestion.php.
Referenced by getQuestions(), getQuestionsOfTest(), and lookupQuestionsByObjective().
      
  | 
  private | 
Definition at line 30 of file class.ilCourseObjectiveQuestion.php.
Referenced by getTests().
      
  | 
  protected | 
Definition at line 40 of file class.ilCourseObjectiveQuestion.php.
      
  | 
  private | 
Definition at line 32 of file class.ilCourseObjectiveQuestion.php.
Referenced by __addTest(), and getTestSuggestedLimit().
      
  | 
  private | 
Definition at line 34 of file class.ilCourseObjectiveQuestion.php.
Referenced by getTestObjId().
      
  | 
  private | 
Definition at line 33 of file class.ilCourseObjectiveQuestion.php.
Referenced by getTestRefId().
      
  | 
  private | 
Definition at line 31 of file class.ilCourseObjectiveQuestion.php.
Referenced by getTestStatus().
| const ilCourseObjectiveQuestion::TYPE_FINAL_TEST = 1 | 
Definition at line 26 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 25 of file class.ilCourseObjectiveQuestion.php.
Referenced by ilCourseObjectiveQuestionAssignmentTableGUI\__construct(), ilCourseObjectiveQuestionAssignmentTableGUI\fillRow(), ilCourseObjectiveQuestionAssignmentTableGUI\getTestNode(), ilCourseObjectivesGUI\saveQuestionOverview(), ilCourseObjectivesGUI\saveRandom(), ilCourseObjectivesGUI\selfAssessmentAssignment(), ilCourseObjectivesGUI\updateSelfAssessmentAssignment(), and ilCourseObjectivesGUI\updateSelfAssessmentLimits().