Skip to content
Snippets Groups Projects
Commit ba80229a authored by Tim Steiner's avatar Tim Steiner
Browse files

Add ace outcomes to xml dump of course records.

parent d25a3617
No related branches found
No related tags found
No related merge requests found
......@@ -107,6 +107,18 @@ class Courses_PublicViewController extends App_Controller_Action {
$creditNode->setAttribute('type', $credit['description']);
}
}
$aceOutcomes = $course->getAceOutcomes();
if (count($aceOutcomes) > 0) {
$aceNode = $dom->createElement('aceOutcomes');
$courseNode->appendChild($aceNode);
foreach ($aceOutcomes as $aceOutcome) {
$sloNode = $dom->createElement('slo');
$sloNode->appendChild($dom->createTextNode(substr($aceOutcome['slo'], 3)));
$aceNode->appendChild($sloNode);
}
}
$gradTieIn = $course->getGradTieIn();
if ($gradTieIn['credits']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment