|
ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
|
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) | |
| getParentObjId () | |
| setParentObjId ($parentObjId) | |
| getParentObjectType () | |
| setParentObjectType ($parentObjType) | |
| getParentObjIdsFilter () | |
| setParentObjIdsFilter ($parentObjIdsFilter) | |
| setQuestionInstanceTypeFilter ($questionInstanceTypeFilter) | |
| getQuestionInstanceTypeFilter () | |
| setIncludeQuestionIdsFilter ($questionIdsFilter) | |
| getIncludeQuestionIdsFilter () | |
| getExcludeQuestionIdsFilter () | |
| setExcludeQuestionIdsFilter ($excludeQuestionIdsFilter) | |
| getQuestionCompletionStatusFilter () | |
| setQuestionCompletionStatusFilter ($questionCompletionStatusFilter) | |
| addFieldFilter ($fieldName, $fieldValue) | |
| addTaxonomyFilter ($taxId, $taxNodes, $parentObjId, $parentObjType) | |
| addTaxonomyFilterNoTaxonomySet (bool $flag) | |
| setAvailableTaxonomyIds ($availableTaxonomyIds) | |
| getAvailableTaxonomyIds () | |
| setAnswerStatusActiveId ($answerStatusActiveId) | |
| getAnswerStatusActiveId () | |
| setAnswerStatusFilter ($answerStatusFilter) | |
| getAnswerStatusFilter () | |
| setJoinObjectData ($a_val) | |
| Set if object data table should be joined. More... | |
| getJoinObjectData () | |
| Get if object data table should be joined. More... | |
| setForcedQuestionIds ($forcedQuestionIds) | |
| getForcedQuestionIds () | |
| load () | |
| setCommentFilter (int $commented=null) | |
| getDataArrayForQuestionId ($questionId) | |
| getQuestionDataArray () | |
| isInList ($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_COMPLETION_STATUS_COMPLETE = 'complete' |
| const | QUESTION_COMPLETION_STATUS_INCOMPLETE = 'incomplete' |
| const | QUESTION_COMPLETION_STATUS_BOTH = 'complete/incomplete' |
| const | QUESTION_COMMENTED_ONLY = '1' |
| const | QUESTION_COMMENTED_EXCLUDED = '2' |
Protected Member Functions | |
| getTaxItems ($parentType, $parentObjId, $taxId, $taxNode) | |
| getNumberOfCommentsForQuestion (int $question_id) | |
| hasFeedback (int $question_id) | |
| hasHints (int $question_id) | |
Protected Attributes | |
| bool | $join_obj_data = true |
| string | $filter_comments = null |
| array | $questions = [] |
Private Member Functions | |
| getParentObjFilterExpression () | |
| getFieldFilterExpressions () | |
| getTaxonomyFilterExpressions () | |
| getQuestionInstanceTypeFilterExpression () | |
| getQuestionIdsFilterExpressions () | |
| getParentObjectIdFilterExpression () | |
| getAnswerStatusFilterExpressions () | |
| getTableJoinExpression () | |
| getConditionalFilterExpression () | |
| getSelectFieldsExpression () | |
| buildBasicQuery () | |
| buildQuery () | |
| loadTaxonomyAssignmentData ($parentObjId, $questionId) | |
| 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 |
| array | $forcedQuestionIds = [] |
| $answerStatusFilter = null | |
| string | $questionInstanceTypeFilter = self::QUESTION_INSTANCE_TYPE_ORIGINALS |
| $includeQuestionIdsFilter = null | |
| $excludeQuestionIdsFilter = null | |
| string | $questionCompletionStatusFilter = self::QUESTION_COMPLETION_STATUS_BOTH |
Definition at line 28 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 78 of file class.ilAssQuestionList.php.
| ilAssQuestionList::addFieldFilter | ( | $fieldName, | |
| $fieldValue | |||
| ) |
Definition at line 160 of file class.ilAssQuestionList.php.
| ilAssQuestionList::addTaxonomyFilter | ( | $taxId, | |
| $taxNodes, | |||
| $parentObjId, | |||
| $parentObjType | |||
| ) |
Definition at line 165 of file class.ilAssQuestionList.php.
References $parentObjId, and $parentObjType.
| ilAssQuestionList::addTaxonomyFilterNoTaxonomySet | ( | bool | $flag | ) |
Definition at line 172 of file class.ilAssQuestionList.php.
|
private |
Definition at line 536 of file class.ilAssQuestionList.php.
Referenced by buildQuery().
Here is the caller graph for this function:
|
private |
Definition at line 549 of file class.ilAssQuestionList.php.
References buildBasicQuery(), and getForcedQuestionIds().
Referenced by load().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 746 of file class.ilAssQuestionList.php.
References getAnswerStatusActiveId(), and getAnswerStatusFilter().
Referenced by load().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssQuestionList::getAnswerStatusActiveId | ( | ) |
Definition at line 192 of file class.ilAssQuestionList.php.
References $answerStatusActiveId.
Referenced by checkFilters(), getSelectFieldsExpression(), and getTableJoinExpression().
Here is the caller graph for this function:| ilAssQuestionList::getAnswerStatusFilter | ( | ) |
Definition at line 202 of file class.ilAssQuestionList.php.
References $answerStatusFilter.
Referenced by checkFilters(), and getAnswerStatusFilterExpressions().
Here is the caller graph for this function:
|
private |
Definition at line 416 of file class.ilAssQuestionList.php.
References getAnswerStatusFilter().
Referenced by getConditionalFilterExpression().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssQuestionList::getAvailableTaxonomyIds | ( | ) |
Definition at line 182 of file class.ilAssQuestionList.php.
References $availableTaxonomyIds.
Referenced by loadTaxonomyAssignmentData().
Here is the caller graph for this function:
|
private |
Definition at line 476 of file class.ilAssQuestionList.php.
References getAnswerStatusFilterExpressions(), getFieldFilterExpressions(), getParentObjectIdFilterExpression(), getParentObjFilterExpression(), getQuestionIdsFilterExpressions(), getQuestionInstanceTypeFilterExpression(), and getTaxonomyFilterExpressions().
Here is the call graph for this function:| ilAssQuestionList::getDataArrayForQuestionId | ( | $questionId | ) |
Definition at line 709 of file class.ilAssQuestionList.php.
| ilAssQuestionList::getExcludeQuestionIdsFilter | ( | ) |
Definition at line 140 of file class.ilAssQuestionList.php.
References $excludeQuestionIdsFilter.
Referenced by getQuestionIdsFilterExpressions().
Here is the caller graph for this function:
|
private |
Definition at line 256 of file class.ilAssQuestionList.php.
Referenced by getConditionalFilterExpression().
Here is the caller graph for this function:| ilAssQuestionList::getForcedQuestionIds | ( | ) |
Definition at line 238 of file class.ilAssQuestionList.php.
References $forcedQuestionIds.
Referenced by buildQuery().
Here is the caller graph for this function:| ilAssQuestionList::getIncludeQuestionIdsFilter | ( | ) |
Definition at line 135 of file class.ilAssQuestionList.php.
References $includeQuestionIdsFilter.
Referenced by getQuestionIdsFilterExpressions().
Here is the caller graph for this function:| ilAssQuestionList::getJoinObjectData | ( | ) |
Get if object data table should be joined.
Definition at line 222 of file class.ilAssQuestionList.php.
References $join_obj_data.
|
protected |
Definition at line 600 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 407 of file class.ilAssQuestionList.php.
Referenced by getConditionalFilterExpression().
Here is the caller graph for this function:| ilAssQuestionList::getParentObjectType | ( | ) |
Definition at line 97 of file class.ilAssQuestionList.php.
References $parentObjType.
Referenced by getTableJoinExpression().
Here is the caller graph for this function:
|
private |
Definition at line 243 of file class.ilAssQuestionList.php.
References getParentObjId(), and getParentObjIdsFilter().
Referenced by getConditionalFilterExpression().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssQuestionList::getParentObjId | ( | ) |
Definition at line 87 of file class.ilAssQuestionList.php.
References $parentObjId.
Referenced by getNumberOfCommentsForQuestion(), getParentObjFilterExpression(), and ilTestSkillEvaluation\init().
Here is the caller graph for this function:| ilAssQuestionList::getParentObjIdsFilter | ( | ) |
Definition at line 107 of file class.ilAssQuestionList.php.
References $parentObjIdsFilter.
Referenced by getParentObjFilterExpression().
Here is the caller graph for this function:| ilAssQuestionList::getQuestionCompletionStatusFilter | ( | ) |
Definition at line 150 of file class.ilAssQuestionList.php.
References $questionCompletionStatusFilter.
| ilAssQuestionList::getQuestionDataArray | ( | ) |
Definition at line 714 of file class.ilAssQuestionList.php.
References $questions.
Referenced by QuestionTable\getData(), QuestionTable\getTotalRowCount(), and ilTestSkillEvaluation\initTestQuestionData().
Here is the caller graph for this function:
|
private |
Definition at line 376 of file class.ilAssQuestionList.php.
References getExcludeQuestionIdsFilter(), and getIncludeQuestionIdsFilter().
Referenced by getConditionalFilterExpression().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssQuestionList::getQuestionInstanceTypeFilter | ( | ) |
Definition at line 125 of file class.ilAssQuestionList.php.
References $questionInstanceTypeFilter.
Referenced by getQuestionInstanceTypeFilterExpression(), and getTableJoinExpression().
Here is the caller graph for this function:
|
private |
Definition at line 361 of file class.ilAssQuestionList.php.
References getQuestionInstanceTypeFilter().
Referenced by getConditionalFilterExpression().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 505 of file class.ilAssQuestionList.php.
References getAnswerStatusActiveId().
Here is the call graph for this function:
|
private |
Definition at line 443 of file class.ilAssQuestionList.php.
References getAnswerStatusActiveId(), getParentObjectType(), and getQuestionInstanceTypeFilter().
Here is the call graph for this function:
|
protected |
| string | $parentType | |
| int | $parentObjId | |
| int | $taxId | |
| int | $taxNode |
Definition at line 344 of file class.ilAssQuestionList.php.
Referenced by getTaxonomyFilterExpressions().
Here is the caller graph for this function:
|
private |
Definition at line 293 of file class.ilAssQuestionList.php.
References getTaxItems().
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 733 of file class.ilAssQuestionList.php.
|
protected |
Definition at line 618 of file class.ilAssQuestionList.php.
References $res, ilPageUtil\_existsAndNotEmpty(), ilAssQuestionFeedback\PAGE_OBJECT_TYPE_GENERIC_FEEDBACK, and ilAssQuestionFeedback\PAGE_OBJECT_TYPE_SPECIFIC_FEEDBACK.
Referenced by load().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 646 of file class.ilAssQuestionList.php.
References ilAssQuestionHintList\getListByQuestionId().
Referenced by load().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 679 of file class.ilAssQuestionList.php.
References ilComponentInfo\TYPE_MODULES.
Referenced by load().
Here is the caller graph for this function:| ilAssQuestionList::isInList | ( | $questionId | ) |
Definition at line 719 of file class.ilAssQuestionList.php.
| ilAssQuestionList::load | ( | ) |
Definition at line 565 of file class.ilAssQuestionList.php.
References $res, buildQuery(), checkFilters(), ilAssQuestionType\completeMissingPluginName(), getNumberOfCommentsForQuestion(), hasFeedback(), hasHints(), isActiveQuestionType(), ILIAS\Repository\lng(), loadTaxonomyAssignmentData(), and ILIAS\Repository\refinery().
Referenced by QuestionTable\getData(), and QuestionTable\getTotalRowCount().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 652 of file class.ilAssQuestionList.php.
References getAvailableTaxonomyIds().
Referenced by load().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAssQuestionList::setAnswerStatusActiveId | ( | $answerStatusActiveId | ) |
Definition at line 187 of file class.ilAssQuestionList.php.
References $answerStatusActiveId.
| ilAssQuestionList::setAnswerStatusFilter | ( | $answerStatusFilter | ) |
| ilAssQuestionList::setAvailableTaxonomyIds | ( | $availableTaxonomyIds | ) |
Definition at line 177 of file class.ilAssQuestionList.php.
References $availableTaxonomyIds.
Referenced by QuestionTable\__construct().
Here is the caller graph for this function:| ilAssQuestionList::setCommentFilter | ( | int | $commented = null | ) |
Definition at line 613 of file class.ilAssQuestionList.php.
| ilAssQuestionList::setExcludeQuestionIdsFilter | ( | $excludeQuestionIdsFilter | ) |
Definition at line 145 of file class.ilAssQuestionList.php.
References $excludeQuestionIdsFilter.
| ilAssQuestionList::setForcedQuestionIds | ( | $forcedQuestionIds | ) |
| array | $forcedQuestionIds |
Definition at line 230 of file class.ilAssQuestionList.php.
References $forcedQuestionIds.
| ilAssQuestionList::setIncludeQuestionIdsFilter | ( | $questionIdsFilter | ) |
Definition at line 130 of file class.ilAssQuestionList.php.
| ilAssQuestionList::setJoinObjectData | ( | $a_val | ) |
Set if object data table should be joined.
| bool | $a_val | join object_data |
Definition at line 212 of file class.ilAssQuestionList.php.
| ilAssQuestionList::setParentObjectType | ( | $parentObjType | ) |
| ilAssQuestionList::setParentObjId | ( | $parentObjId | ) |
Definition at line 92 of file class.ilAssQuestionList.php.
References $parentObjId.
Referenced by QuestionTable\getData(), ilCopySelfAssQuestionTableGUI\getQuestions(), and QuestionTable\getTotalRowCount().
Here is the caller graph for this function:| ilAssQuestionList::setParentObjIdsFilter | ( | $parentObjIdsFilter | ) |
| array | $parentObjIdsFilter |
Definition at line 115 of file class.ilAssQuestionList.php.
References $parentObjIdsFilter.
Referenced by ilAsqFactory\getQuestionDataArray(), and ilAsqFactory\getQuestionInstances().
Here is the caller graph for this function:| ilAssQuestionList::setQuestionCompletionStatusFilter | ( | $questionCompletionStatusFilter | ) |
Definition at line 155 of file class.ilAssQuestionList.php.
References $questionCompletionStatusFilter.
| ilAssQuestionList::setQuestionInstanceTypeFilter | ( | $questionInstanceTypeFilter | ) |
Definition at line 120 of file class.ilAssQuestionList.php.
|
private |
Definition at line 39 of file class.ilAssQuestionList.php.
Referenced by getAnswerStatusActiveId(), and setAnswerStatusActiveId().
|
private |
Definition at line 57 of file class.ilAssQuestionList.php.
Referenced by getAnswerStatusFilter(), and setAnswerStatusFilter().
|
private |
Definition at line 33 of file class.ilAssQuestionList.php.
Referenced by getAvailableTaxonomyIds(), and setAvailableTaxonomyIds().
|
private |
Definition at line 65 of file class.ilAssQuestionList.php.
Referenced by getExcludeQuestionIdsFilter(), and setExcludeQuestionIdsFilter().
|
private |
Definition at line 34 of file class.ilAssQuestionList.php.
|
protected |
Definition at line 74 of file class.ilAssQuestionList.php.
|
private |
Definition at line 40 of file class.ilAssQuestionList.php.
Referenced by getForcedQuestionIds(), and setForcedQuestionIds().
|
private |
Definition at line 64 of file class.ilAssQuestionList.php.
Referenced by getIncludeQuestionIdsFilter().
|
protected |
Definition at line 41 of file class.ilAssQuestionList.php.
Referenced by getJoinObjectData().
|
private |
Definition at line 31 of file class.ilAssQuestionList.php.
Referenced by addTaxonomyFilter(), getParentObjId(), and setParentObjId().
|
private |
Definition at line 30 of file class.ilAssQuestionList.php.
Referenced by getParentObjIdsFilter(), and setParentObjIdsFilter().
|
private |
Definition at line 32 of file class.ilAssQuestionList.php.
Referenced by addTaxonomyFilter(), getParentObjectType(), and setParentObjectType().
|
private |
Definition at line 70 of file class.ilAssQuestionList.php.
Referenced by getQuestionCompletionStatusFilter(), and setQuestionCompletionStatusFilter().
|
private |
Definition at line 62 of file class.ilAssQuestionList.php.
Referenced by getQuestionInstanceTypeFilter().
|
protected |
Definition at line 76 of file class.ilAssQuestionList.php.
Referenced by getQuestionDataArray().
|
private |
Definition at line 35 of file class.ilAssQuestionList.php.
|
private |
Definition at line 36 of file class.ilAssQuestionList.php.
|
private |
Definition at line 37 of file class.ilAssQuestionList.php.
|
private |
Definition at line 38 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::ANSWER_STATUS_FILTER_ALL_NON_CORRECT = 'allNonCorrect' |
answer status filter value domain
Definition at line 53 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::ANSWER_STATUS_FILTER_NON_ANSWERED_ONLY = 'nonAnswered' |
Definition at line 54 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::ANSWER_STATUS_FILTER_WRONG_ANSWERED_ONLY = 'wrongAnswered' |
Definition at line 55 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_ANSWER_STATUS_CORRECT_ANSWERED = 'correctAnswered' |
Definition at line 48 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_ANSWER_STATUS_NON_ANSWERED = 'nonAnswered' |
answer status domain for single questions
Definition at line 46 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_ANSWER_STATUS_WRONG_ANSWERED = 'wrongAnswered' |
Definition at line 47 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_COMMENTED_EXCLUDED = '2' |
Definition at line 73 of file class.ilAssQuestionList.php.
Referenced by QuestionTable\getFilter().
| const ilAssQuestionList::QUESTION_COMMENTED_ONLY = '1' |
Definition at line 72 of file class.ilAssQuestionList.php.
Referenced by QuestionTable\getFilter().
| const ilAssQuestionList::QUESTION_COMPLETION_STATUS_BOTH = 'complete/incomplete' |
Definition at line 69 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_COMPLETION_STATUS_COMPLETE = 'complete' |
Definition at line 67 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_COMPLETION_STATUS_INCOMPLETE = 'incomplete' |
Definition at line 68 of file class.ilAssQuestionList.php.
| const ilAssQuestionList::QUESTION_INSTANCE_TYPE_ALL = 'QST_INSTANCE_TYPE_ALL' |
Definition at line 61 of file class.ilAssQuestionList.php.
Referenced by ilTestQuestionBrowserTableGUI\getQuestionInstanceTypeFilter().
| const ilAssQuestionList::QUESTION_INSTANCE_TYPE_DUPLICATES = 'QST_INSTANCE_TYPE_DUPLICATES' |
Definition at line 60 of file class.ilAssQuestionList.php.
Referenced by ilTestPlayerFixedQuestionSetGUI\buildTestPassQuestionList(), ilTestPlayerRandomQuestionSetGUI\buildTestPassQuestionList(), ilTestResultsGUI\executeCommand(), ilTestServiceGUI\getFilteredTestResult(), and ilTestSkillAdministrationGUI\getRequiredQuestionInstanceTypeFilter().
| const ilAssQuestionList::QUESTION_INSTANCE_TYPE_ORIGINALS = 'QST_INSTANCE_TYPE_ORIGINALS' |
Definition at line 59 of file class.ilAssQuestionList.php.
Referenced by ilQuestionPoolSkillAdministrationGUI\executeCommand(), and ilTestQuestionBrowserTableGUI\getQuestionInstanceTypeFilter().