| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 Inheritance diagram for ilAssQuestionList:
 Collaboration diagram for ilAssQuestionList:Public Member Functions | |
| __construct (private ilDBInterface $db, private ilLanguage $lng, private Refinery $refinery, private ilComponentRepository $component_repository, private ?NotesService $notes_service=null) | |
| setOrder (?Order $order=null) | |
| setRange (?Range $range=null) | |
| getParentObjId () | |
| setParentObjId (?int $parentObjId) | |
| setParentObjectType (string $parentObjType) | |
| setParentObjIdsFilter (array $parentObjIdsFilter) | |
| setQuestionInstanceTypeFilter (?string $questionInstanceTypeFilter) | |
| setIncludeQuestionIdsFilter (array $questionIdsFilter) | |
| setExcludeQuestionIdsFilter (array $excludeQuestionIdsFilter) | |
| addFieldFilter (string $fieldName, mixed $fieldValue) | |
| addTaxonomyFilter ($taxId, $taxNodes, $parentObjId, $parentObjType) | |
| addTaxonomyFilterNoTaxonomySet (bool $flag) | |
| setAvailableTaxonomyIds (array $availableTaxonomyIds) | |
| setAnswerStatusActiveId (?int $answerStatusActiveId) | |
| setAnswerStatusFilter (string $answerStatusFilter) | |
| setJoinObjectData (bool $a_val) | |
| Set if object data table should be joined.  More... | |
| load () | |
| getTotalRowCount (?array $filter_data, ?array $additional_parameters) | |
| setCommentFilter (?int $commented=null) | |
| getDataArrayForQuestionId (int $questionId) | |
| getQuestionDataArray () | |
| isInList (int $questionId) | |
| getTitle (string $a_comp_id, string $a_item_type, int $a_item_id) | |
| Get title of an assigned item.  More... | |
Data Fields | |
| const | QUESTION_ANSWER_STATUS_NON_ANSWERED = 'nonAnswered' | 
| answer status domain for single questions  More... | |
| const | QUESTION_ANSWER_STATUS_WRONG_ANSWERED = 'wrongAnswered' | 
| const | QUESTION_ANSWER_STATUS_CORRECT_ANSWERED = 'correctAnswered' | 
| const | ANSWER_STATUS_FILTER_ALL_NON_CORRECT = 'allNonCorrect' | 
| answer status filter value domain  More... | |
| const | ANSWER_STATUS_FILTER_NON_ANSWERED_ONLY = 'nonAnswered' | 
| const | ANSWER_STATUS_FILTER_WRONG_ANSWERED_ONLY = 'wrongAnswered' | 
| const | QUESTION_INSTANCE_TYPE_ORIGINALS = 'QST_INSTANCE_TYPE_ORIGINALS' | 
| const | QUESTION_INSTANCE_TYPE_DUPLICATES = 'QST_INSTANCE_TYPE_DUPLICATES' | 
| const | QUESTION_INSTANCE_TYPE_ALL = 'QST_INSTANCE_TYPE_ALL' | 
| const | QUESTION_COMMENTED_ONLY = '1' | 
| const | QUESTION_COMMENTED_EXCLUDED = '2' | 
Protected Member Functions | |
| getTaxItems (string $parentType, int $parentObjId, int $taxId, int $taxNode) | |
| getNumberOfCommentsForQuestion (int $question_id) | |
Protected Attributes | |
| bool | $join_obj_data = true | 
| string | $filter_comments = null | 
| array | $questions = [] | 
Private Member Functions | |
| getParentObjFilterExpression () | |
| getFieldFilterExpressions () | |
| handleFeedbackJoin (string $tableJoin) | |
| handleHintJoin (string $tableJoin) | |
| getTaxonomyFilterExpressions () | |
| getFilterByAssignedTaxonomyIdsExpression () | |
| getQuestionInstanceTypeFilterExpression () | |
| getQuestionIdsFilterExpressions () | |
| getAnswerStatusFilterExpressions () | |
| getTableJoinExpression () | |
| getConditionalFilterExpression () | |
| getSelectFieldsExpression () | |
| generateFeedbackSubquery () | |
| generateHintSubquery () | |
| generateTaxonomySubquery () | |
| buildBasicQuery () | |
| getHavingFilterExpression () | |
| buildOrderQueryExpression () | |
| buildLimitQueryExpression () | |
| buildQuery () | |
| loadTaxonomyAssignmentData (int $parent_obj_id, int $question_id) | |
| isActiveQuestionType (array $questionData) | |
| checkFilters () | |
Private Attributes | |
| array | $parentObjIdsFilter = [] | 
| int | $parentObjId = null | 
| string | $parentObjType = 'qpl' | 
| array | $availableTaxonomyIds = [] | 
| array | $fieldFilters = [] | 
| array | $taxFilters = [] | 
| bool | $taxFiltersExcludeAnyObjectsWithTaxonomies = false | 
| array | $taxParentIds = [] | 
| array | $taxParentTypes = [] | 
| int | $answerStatusActiveId = null | 
| string | $answerStatusFilter = '' | 
| string | $questionInstanceTypeFilter = self::QUESTION_INSTANCE_TYPE_ORIGINALS | 
| array | $includeQuestionIdsFilter = [] | 
| array | $excludeQuestionIdsFilter = [] | 
| Order | $order = null | 
| Range | $range = null | 
Definition at line 30 of file class.ilAssQuestionList.php.
| ilAssQuestionList::__construct | ( | private ilDBInterface | $db, | 
| private ilLanguage | $lng, | ||
| private Refinery | $refinery, | ||
| private ilComponentRepository | $component_repository, | ||
| private ?NotesService | $notes_service = null  | 
        ||
| ) | 
Definition at line 77 of file class.ilAssQuestionList.php.
| ilAssQuestionList::addFieldFilter | ( | string | $fieldName, | 
| mixed | $fieldValue | ||
| ) | 
Definition at line 131 of file class.ilAssQuestionList.php.
| ilAssQuestionList::addTaxonomyFilter | ( | $taxId, | |
| $taxNodes, | |||
| $parentObjId, | |||
| $parentObjType | |||
| ) | 
Definition at line 136 of file class.ilAssQuestionList.php.
References $parentObjId, and $parentObjType.
| ilAssQuestionList::addTaxonomyFilterNoTaxonomySet | ( | bool | $flag | ) | 
Definition at line 143 of file class.ilAssQuestionList.php.
      
  | 
  private | 
Definition at line 513 of file class.ilAssQuestionList.php.
Referenced by buildQuery().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 564 of file class.ilAssQuestionList.php.
References $range, ILIAS\Data\Range\getLength(), and ILIAS\Data\Range\getStart().
Referenced by buildQuery().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 544 of file class.ilAssQuestionList.php.
References $order, and ILIAS\Data\Order\join().
Referenced by buildQuery().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 577 of file class.ilAssQuestionList.php.
References buildBasicQuery(), buildLimitQueryExpression(), buildOrderQueryExpression(), getConditionalFilterExpression(), and getHavingFilterExpression().
Referenced by load().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 735 of file class.ilAssQuestionList.php.
Referenced by getTotalRowCount(), and load().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 476 of file class.ilAssQuestionList.php.
References ilAssQuestionFeedback\PAGE_OBJECT_TYPE_GENERIC_FEEDBACK, and ilAssQuestionFeedback\PAGE_OBJECT_TYPE_SPECIFIC_FEEDBACK.
Referenced by getSelectFieldsExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 500 of file class.ilAssQuestionList.php.
Referenced by getSelectFieldsExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 506 of file class.ilAssQuestionList.php.
Referenced by getSelectFieldsExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 370 of file class.ilAssQuestionList.php.
Referenced by getConditionalFilterExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 420 of file class.ilAssQuestionList.php.
References getAnswerStatusFilterExpressions(), getFieldFilterExpressions(), getParentObjFilterExpression(), getQuestionIdsFilterExpressions(), getQuestionInstanceTypeFilterExpression(), and getTaxonomyFilterExpressions().
Referenced by buildQuery().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilAssQuestionList::getDataArrayForQuestionId | ( | int | $questionId | ) | 
Definition at line 702 of file class.ilAssQuestionList.php.
      
  | 
  private | 
Definition at line 184 of file class.ilAssQuestionList.php.
References ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
Referenced by getConditionalFilterExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 276 of file class.ilAssQuestionList.php.
References getTaxItems(), and ilDBConstants\T_INTEGER.
Referenced by getTaxonomyFilterExpressions().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 518 of file class.ilAssQuestionList.php.
Referenced by buildQuery().
 Here is the caller graph for this function:
      
  | 
  protected | 
Definition at line 632 of file class.ilAssQuestionList.php.
References getParentObjId().
Referenced by load().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 171 of file class.ilAssQuestionList.php.
References ilDBConstants\T_INTEGER.
Referenced by getConditionalFilterExpression().
 Here is the caller graph for this function:| ilAssQuestionList::getParentObjId | ( | ) | 
Definition at line 96 of file class.ilAssQuestionList.php.
References $parentObjId.
Referenced by getNumberOfCommentsForQuestion(), and ilTestSkillEvaluation\init().
 Here is the caller graph for this function:| ilAssQuestionList::getQuestionDataArray | ( | ) | 
Definition at line 707 of file class.ilAssQuestionList.php.
References $questions.
Referenced by ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getData(), ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getTotalRowCount(), and ilTestSkillEvaluation\initTestQuestionData().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 343 of file class.ilAssQuestionList.php.
References ilDBConstants\T_INTEGER.
Referenced by getConditionalFilterExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 334 of file class.ilAssQuestionList.php.
Referenced by getConditionalFilterExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 444 of file class.ilAssQuestionList.php.
References generateFeedbackSubquery(), generateHintSubquery(), and generateTaxonomySubquery().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 385 of file class.ilAssQuestionList.php.
References handleFeedbackJoin(), and handleHintJoin().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 317 of file class.ilAssQuestionList.php.
Referenced by getFilterByAssignedTaxonomyIdsExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 248 of file class.ilAssQuestionList.php.
References getFilterByAssignedTaxonomyIdsExpression().
Referenced by getConditionalFilterExpression().
 Here is the call graph for this function:
 Here is the caller graph for this function:| ilAssQuestionList::getTitle | ( | string | $a_comp_id, | 
| string | $a_item_type, | ||
| int | $a_item_id | ||
| ) | 
Get title of an assigned item.
(is used from ilObjTaxonomyGUI when item sorting is activated)
| string | $a_comp_id | ('qpl' in our context) | 
| string | $a_item_type | ('quest' in our context) | 
| integer | $a_item_id | (questionId in our context) | 
Implements ilTaxAssignedItemInfo.
Definition at line 726 of file class.ilAssQuestionList.php.
| ilAssQuestionList::getTotalRowCount | ( | ?array | $filter_data, | 
| ?array | $additional_parameters | ||
| ) | 
Definition at line 622 of file class.ilAssQuestionList.php.
References checkFilters().
 Here is the call graph for this function:
      
  | 
  private | 
Definition at line 216 of file class.ilAssQuestionList.php.
Referenced by getTableJoinExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 232 of file class.ilAssQuestionList.php.
Referenced by getTableJoinExpression().
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 675 of file class.ilAssQuestionList.php.
References ilComponentInfo\TYPE_COMPONENT.
Referenced by load().
 Here is the caller graph for this function:| ilAssQuestionList::isInList | ( | int | $questionId | ) | 
Definition at line 712 of file class.ilAssQuestionList.php.
| ilAssQuestionList::load | ( | ) | 
Definition at line 588 of file class.ilAssQuestionList.php.
References $res, buildQuery(), checkFilters(), ilAssQuestionType\completeMissingPluginName(), getNumberOfCommentsForQuestion(), isActiveQuestionType(), ILIAS\Repository\lng(), loadTaxonomyAssignmentData(), and ILIAS\Repository\refinery().
Referenced by ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getData(), and ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getTotalRowCount().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  private | 
Definition at line 650 of file class.ilAssQuestionList.php.
Referenced by load().
 Here is the caller graph for this function:| ilAssQuestionList::setAnswerStatusActiveId | ( | ?int | $answerStatusActiveId | ) | 
Definition at line 153 of file class.ilAssQuestionList.php.
References $answerStatusActiveId.
| ilAssQuestionList::setAnswerStatusFilter | ( | string | $answerStatusFilter | ) | 
Definition at line 158 of file class.ilAssQuestionList.php.
References $answerStatusFilter.
| ilAssQuestionList::setAvailableTaxonomyIds | ( | array | $availableTaxonomyIds | ) | 
Definition at line 148 of file class.ilAssQuestionList.php.
References $availableTaxonomyIds.
Referenced by ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\__construct().
 Here is the caller graph for this function:| ilAssQuestionList::setCommentFilter | ( | ?int | $commented = null | ) | 
Definition at line 645 of file class.ilAssQuestionList.php.
| ilAssQuestionList::setExcludeQuestionIdsFilter | ( | array | $excludeQuestionIdsFilter | ) | 
Definition at line 126 of file class.ilAssQuestionList.php.
References $excludeQuestionIdsFilter.
Referenced by ilTestQuestionBrowserTableGUI\addModeParametersToQuestionList().
 Here is the caller graph for this function:| ilAssQuestionList::setIncludeQuestionIdsFilter | ( | array | $questionIdsFilter | ) | 
Definition at line 121 of file class.ilAssQuestionList.php.
| ilAssQuestionList::setJoinObjectData | ( | bool | $a_val | ) | 
Set if object data table should be joined.
Definition at line 166 of file class.ilAssQuestionList.php.
| ilAssQuestionList::setOrder | ( | ?Order | $order = null | ) | 
| ilAssQuestionList::setParentObjectType | ( | string | $parentObjType | ) | 
Definition at line 106 of file class.ilAssQuestionList.php.
References $parentObjType.
Referenced by ilTestQuestionBrowserTableGUI\addModeParametersToQuestionList().
 Here is the caller graph for this function:| ilAssQuestionList::setParentObjId | ( | ?int | $parentObjId | ) | 
Definition at line 101 of file class.ilAssQuestionList.php.
References $parentObjId.
Referenced by ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getData(), ilCopySelfAssQuestionTableGUI\getQuestions(), and ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getTotalRowCount().
 Here is the caller graph for this function:| ilAssQuestionList::setParentObjIdsFilter | ( | array | $parentObjIdsFilter | ) | 
Definition at line 111 of file class.ilAssQuestionList.php.
References $parentObjIdsFilter.
Referenced by ilTestQuestionBrowserTableGUI\addModeParametersToQuestionList(), ilAsqFactory\getQuestionDataArray(), and ilAsqFactory\getQuestionInstances().
 Here is the caller graph for this function:| ilAssQuestionList::setQuestionInstanceTypeFilter | ( | ?string | $questionInstanceTypeFilter | ) | 
Definition at line 116 of file class.ilAssQuestionList.php.
Referenced by ilTestQuestionBrowserTableGUI\addModeParametersToQuestionList().
 Here is the caller graph for this function:| ilAssQuestionList::setRange | ( | ?Range | $range = null | ) | 
      
  | 
  private | 
Definition at line 41 of file class.ilAssQuestionList.php.
Referenced by setAnswerStatusActiveId().
      
  | 
  private | 
Definition at line 58 of file class.ilAssQuestionList.php.
Referenced by setAnswerStatusFilter().
      
  | 
  private | 
Definition at line 35 of file class.ilAssQuestionList.php.
Referenced by setAvailableTaxonomyIds().
      
  | 
  private | 
Definition at line 66 of file class.ilAssQuestionList.php.
Referenced by setExcludeQuestionIdsFilter().
      
  | 
  private | 
Definition at line 36 of file class.ilAssQuestionList.php.
      
  | 
  protected | 
Definition at line 70 of file class.ilAssQuestionList.php.
      
  | 
  private | 
Definition at line 65 of file class.ilAssQuestionList.php.
      
  | 
  protected | 
Definition at line 42 of file class.ilAssQuestionList.php.
      
  | 
  private | 
Definition at line 74 of file class.ilAssQuestionList.php.
Referenced by buildOrderQueryExpression(), and setOrder().
      
  | 
  private | 
Definition at line 33 of file class.ilAssQuestionList.php.
Referenced by addTaxonomyFilter(), getParentObjId(), and setParentObjId().
      
  | 
  private | 
Definition at line 32 of file class.ilAssQuestionList.php.
Referenced by setParentObjIdsFilter().
      
  | 
  private | 
Definition at line 34 of file class.ilAssQuestionList.php.
Referenced by addTaxonomyFilter(), and setParentObjectType().
      
  | 
  private | 
Definition at line 63 of file class.ilAssQuestionList.php.
      
  | 
  protected | 
Definition at line 72 of file class.ilAssQuestionList.php.
Referenced by getQuestionDataArray().
      
  | 
  private | 
Definition at line 75 of file class.ilAssQuestionList.php.
Referenced by buildLimitQueryExpression(), and setRange().
      
  | 
  private | 
Definition at line 37 of file class.ilAssQuestionList.php.
      
  | 
  private | 
Definition at line 38 of file class.ilAssQuestionList.php.
      
  | 
  private | 
Definition at line 39 of file class.ilAssQuestionList.php.
      
  | 
  private | 
Definition at line 40 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::ANSWER_STATUS_FILTER_ALL_NON_CORRECT = 'allNonCorrect' | 
answer status filter value domain
Definition at line 54 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::ANSWER_STATUS_FILTER_NON_ANSWERED_ONLY = 'nonAnswered' | 
Definition at line 55 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::ANSWER_STATUS_FILTER_WRONG_ANSWERED_ONLY = 'wrongAnswered' | 
Definition at line 56 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_ANSWER_STATUS_CORRECT_ANSWERED = 'correctAnswered' | 
Definition at line 49 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_ANSWER_STATUS_NON_ANSWERED = 'nonAnswered' | 
answer status domain for single questions
Definition at line 47 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_ANSWER_STATUS_WRONG_ANSWERED = 'wrongAnswered' | 
Definition at line 48 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_COMMENTED_EXCLUDED = '2' | 
Definition at line 69 of file class.ilAssQuestionList.php.
Referenced by ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getFilter().
| const ilAssQuestionList::QUESTION_COMMENTED_ONLY = '1' | 
Definition at line 68 of file class.ilAssQuestionList.php.
Referenced by ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable\getFilter().
| const ilAssQuestionList::QUESTION_INSTANCE_TYPE_ALL = 'QST_INSTANCE_TYPE_ALL' | 
Definition at line 62 of file class.ilAssQuestionList.php.
Referenced by ilTestQuestionBrowserTableGUI\addModeParametersToQuestionList().
| const ilAssQuestionList::QUESTION_INSTANCE_TYPE_DUPLICATES = 'QST_INSTANCE_TYPE_DUPLICATES' | 
Definition at line 61 of file class.ilAssQuestionList.php.
Referenced by ilTestPlayerRandomQuestionSetGUI\buildTestPassQuestionList(), and ilTestSkillAdministrationGUI\getRequiredQuestionInstanceTypeFilter().
| const ilAssQuestionList::QUESTION_INSTANCE_TYPE_ORIGINALS = 'QST_INSTANCE_TYPE_ORIGINALS' | 
Definition at line 60 of file class.ilAssQuestionList.php.
Referenced by ilTestQuestionBrowserTableGUI\addModeParametersToQuestionList(), and ilQuestionPoolSkillAdministrationGUI\executeCommand().