◆ __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 82 of file class.ilTestQuestionRelatedObjectivesList.php.
References array.
86 foreach((
array) $this->objectivesByQuestion[$questionId] as $objectiveId)
88 $titles[] = $this->objectivesTitles[$objectiveId];
91 return implode(
', ', $titles);
Create styles array
The data for the language used.
◆ getUniqueObjectivesString()
ilTestQuestionRelatedObjectivesList::getUniqueObjectivesString |
( |
| ) |
|
◆ getUniqueObjectivesStringForQuestions()
ilTestQuestionRelatedObjectivesList::getUniqueObjectivesStringForQuestions |
( |
|
$questionIds | ) |
|
Definition at line 99 of file class.ilTestQuestionRelatedObjectivesList.php.
References array.
101 $objectiveTitles =
array();
103 foreach( $this->objectivesByQuestion as $questionId => $objectiveIds )
105 if( !in_array($questionId, $questionIds) )
110 foreach( $objectiveIds as $objectiveId )
112 $objectiveTitles[$objectiveId] = $this->objectivesTitles[$objectiveId];
116 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 61 of file class.ilTestQuestionRelatedObjectivesList.php.
References ilCourseObjective\lookupObjectiveTitle().
63 require_once
'Modules/Course/classes/class.ilCourseObjective.php';
65 foreach( $this->objectivesByQuestion as $objectiveIds )
67 foreach( $objectiveIds as $objectiveId )
69 if( !isset($this->objectivesTitles[$objectiveId]) )
72 $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: