|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
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 (mixed $additional_viewcontrol_data, mixed $filter_data, mixed $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... | |
| 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) | |
| getTaxonomyFilterExpressions () | |
| getFilterByAssignedTaxonomyIdsExpression () | |
| getQuestionInstanceTypeFilterExpression () | |
| getQuestionIdsFilterExpressions () | |
| getAnswerStatusFilterExpressions () | |
| getTableJoinExpression () | |
| getConditionalFilterExpression () | |
| getSelectFieldsExpression () | |
| generateFeedbackSubquery () | |
| 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 490 of file class.ilAssQuestionList.php.
Referenced by buildQuery().
Here is the caller graph for this function:
|
private |
Definition at line 534 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 514 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 547 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 707 of file class.ilAssQuestionList.php.
Referenced by load().
Here is the caller graph for this function:
|
private |
Definition at line 459 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 483 of file class.ilAssQuestionList.php.
Referenced by getSelectFieldsExpression().
Here is the caller graph for this function:
|
private |
Definition at line 354 of file class.ilAssQuestionList.php.
Referenced by getConditionalFilterExpression().
Here is the caller graph for this function:
|
private |
Definition at line 403 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 674 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 260 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 495 of file class.ilAssQuestionList.php.
Referenced by buildQuery().
Here is the caller graph for this function:
|
protected |
Definition at line 604 of file class.ilAssQuestionList.php.
Referenced by load().
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 ilTestSkillEvaluation\init().
Here is the caller graph for this function:| ilAssQuestionList::getQuestionDataArray | ( | ) |
Definition at line 679 of file class.ilAssQuestionList.php.
Referenced by ilTestSkillEvaluation\initTestQuestionData().
Here is the caller graph for this function:
|
private |
Definition at line 327 of file class.ilAssQuestionList.php.
References ilDBConstants\T_INTEGER.
Referenced by getConditionalFilterExpression().
Here is the caller graph for this function:
|
private |
Definition at line 318 of file class.ilAssQuestionList.php.
Referenced by getConditionalFilterExpression().
Here is the caller graph for this function:
|
private |
Definition at line 427 of file class.ilAssQuestionList.php.
References generateFeedbackSubquery(), and generateTaxonomySubquery().
Here is the call graph for this function:
|
private |
Definition at line 369 of file class.ilAssQuestionList.php.
References handleFeedbackJoin().
Here is the call graph for this function:
|
protected |
Definition at line 301 of file class.ilAssQuestionList.php.
References $parentObjId.
Referenced by getFilterByAssignedTaxonomyIdsExpression().
Here is the caller graph for this function:
|
private |
Definition at line 232 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 698 of file class.ilAssQuestionList.php.
| ilAssQuestionList::getTotalRowCount | ( | mixed | $additional_viewcontrol_data, |
| mixed | $filter_data, | ||
| mixed | $additional_parameters | ||
| ) |
Reimplemented in ILIAS\TestQuestionPool\Questions\Presentation\QuestionTable.
Definition at line 591 of file class.ilAssQuestionList.php.
|
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 647 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 684 of file class.ilAssQuestionList.php.
| ilAssQuestionList::load | ( | ) |
Definition at line 558 of file class.ilAssQuestionList.php.
References $res, buildQuery(), checkFilters(), ilAssQuestionType\completeMissingPluginName(), getNumberOfCommentsForQuestion(), isActiveQuestionType(), ILIAS\Repository\lng(), loadTaxonomyAssignmentData(), and ILIAS\Repository\refinery().
Here is the call graph for this function:
|
private |
Definition at line 622 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 617 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 | ) |
Definition at line 86 of file class.ilAssQuestionList.php.
References $order.
| 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.
| ilAssQuestionList::setParentObjIdsFilter | ( | array | $parentObjIdsFilter | ) |
Definition at line 111 of file class.ilAssQuestionList.php.
References $parentObjIdsFilter.
Referenced by ilTestQuestionBrowserTableGUI\addModeParametersToQuestionList().
Here is the caller graph for this function:| ilAssQuestionList::setQuestionInstanceTypeFilter | ( | ?string | $questionInstanceTypeFilter | ) |
Definition at line 116 of file class.ilAssQuestionList.php.
References $questionInstanceTypeFilter.
Referenced by ilTestQuestionBrowserTableGUI\addModeParametersToQuestionList().
Here is the caller graph for this function:| ilAssQuestionList::setRange | ( | ?Range | $range = null | ) |
Definition at line 91 of file class.ilAssQuestionList.php.
References $range.
|
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(), getTaxItems(), 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.
Referenced by setQuestionInstanceTypeFilter().
|
protected |
Definition at line 72 of file class.ilAssQuestionList.php.
|
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().