◆ __construct()
ilTestQuestionRelatedObjectivesList::__construct |
( |
| ) |
|
◆ addQuestionRelatedObjectives()
ilTestQuestionRelatedObjectivesList::addQuestionRelatedObjectives |
( |
|
$questionId, |
|
|
|
$objectiveIds |
|
) |
| |
◆ filterResultsByObjective()
ilTestQuestionRelatedObjectivesList::filterResultsByObjective |
( |
|
$testResults, |
|
|
|
$objectiveId |
|
) |
| |
◆ getObjectives()
ilTestQuestionRelatedObjectivesList::getObjectives |
( |
| ) |
|
◆ getObjectiveTitleById()
ilTestQuestionRelatedObjectivesList::getObjectiveTitleById |
( |
|
$objectiveId | ) |
|
◆ getQuestionRelatedObjectives()
ilTestQuestionRelatedObjectivesList::getQuestionRelatedObjectives |
( |
|
$questionId | ) |
|
◆ getQuestionRelatedObjectiveTitles()
ilTestQuestionRelatedObjectivesList::getQuestionRelatedObjectiveTitles |
( |
|
$questionId | ) |
|
- Parameters
-
- Returns
- string
Definition at line 78 of file class.ilTestQuestionRelatedObjectivesList.php.
References array.
82 foreach ((
array) $this->objectivesByQuestion[$questionId] as $objectiveId) {
83 $titles[] = $this->objectivesTitles[$objectiveId];
86 return implode(
', ', $titles);
Create styles array
The data for the language used.
◆ getUniqueObjectivesString()
ilTestQuestionRelatedObjectivesList::getUniqueObjectivesString |
( |
| ) |
|
◆ getUniqueObjectivesStringForQuestions()
ilTestQuestionRelatedObjectivesList::getUniqueObjectivesStringForQuestions |
( |
|
$questionIds | ) |
|
Definition at line 94 of file class.ilTestQuestionRelatedObjectivesList.php.
References array.
96 $objectiveTitles =
array();
98 foreach ($this->objectivesByQuestion as $questionId => $objectiveIds) {
99 if (!in_array($questionId, $questionIds)) {
103 foreach ($objectiveIds as $objectiveId) {
104 $objectiveTitles[$objectiveId] = $this->objectivesTitles[$objectiveId];
108 return implode(
', ', $objectiveTitles);
Create styles array
The data for the language used.
◆ hasQuestionRelatedObjectives()
ilTestQuestionRelatedObjectivesList::hasQuestionRelatedObjectives |
( |
|
$questionId | ) |
|
◆ isQuestionRelatedToObjective()
ilTestQuestionRelatedObjectivesList::isQuestionRelatedToObjective |
( |
|
$questionId, |
|
|
|
$objectiveId |
|
) |
| |
◆ loadObjectivesTitles()
ilTestQuestionRelatedObjectivesList::loadObjectivesTitles |
( |
| ) |
|
Definition at line 60 of file class.ilTestQuestionRelatedObjectivesList.php.
References ilCourseObjective\lookupObjectiveTitle().
62 require_once
'Modules/Course/classes/class.ilCourseObjective.php';
64 foreach ($this->objectivesByQuestion as $objectiveIds) {
65 foreach ($objectiveIds as $objectiveId) {
66 if (!isset($this->objectivesTitles[$objectiveId])) {
68 $this->objectivesTitles[$objectiveId] = $objectiveTitle;
static lookupObjectiveTitle($a_objective_id, $a_add_description=false)
◆ $objectivesByQuestion
ilTestQuestionRelatedObjectivesList::$objectivesByQuestion |
|
protected |
◆ $objectivesTitles
ilTestQuestionRelatedObjectivesList::$objectivesTitles |
|
protected |
The documentation for this class was generated from the following file: