25 $this->objectivesByQuestion =
array();
26 $this->objectivesTitles =
array();
35 $this->objectivesByQuestion[$questionId] = $objectiveIds;
44 if (!isset($this->objectivesByQuestion[$questionId])) {
48 return (
bool) count($this->objectivesByQuestion[$questionId]);
57 return $this->objectivesByQuestion[$questionId];
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;
82 foreach ((
array) $this->objectivesByQuestion[$questionId] as $objectiveId) {
83 $titles[] = $this->objectivesTitles[$objectiveId];
86 return implode(
', ', $titles);
91 return implode(
', ', $this->objectivesTitles);
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);
113 return $this->objectivesTitles[$objectiveId];
123 foreach ($this->objectivesByQuestion[$questionId] as $relatedObjectiveId) {
124 if ($relatedObjectiveId == $objectiveId) {
134 $filteredResults =
array();
136 foreach ($testResults as $questionId => $resultData) {
141 $filteredResults[$questionId] = $resultData;
144 return $filteredResults;
static lookupObjectiveTitle($a_objective_id, $a_add_description=false)
Create styles array
The data for the language used.