25 $this->objectivesByQuestion =
array();
26 $this->objectivesTitles =
array();
35 $this->objectivesByQuestion[$questionId] = $objectiveIds;
44 if( !isset($this->objectivesByQuestion[$questionId]) )
49 return (
bool)count($this->objectivesByQuestion[$questionId]);
58 return $this->objectivesByQuestion[$questionId];
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;
86 foreach((
array) $this->objectivesByQuestion[$questionId] as $objectiveId)
88 $titles[] = $this->objectivesTitles[$objectiveId];
91 return implode(
', ', $titles);
96 return implode(
', ', $this->objectivesTitles);
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);
121 return $this->objectivesTitles[$objectiveId];
131 foreach($this->objectivesByQuestion[$questionId] as $relatedObjectiveId)
133 if($relatedObjectiveId == $objectiveId)
144 $filteredResults =
array();
146 foreach($testResults as $questionId => $resultData)
153 $filteredResults[$questionId] = $resultData;
156 return $filteredResults;
static lookupObjectiveTitle($a_objective_id, $a_add_description=false)
Create styles array
The data for the language used.