* Send a complete exercise in SCORM format, from its ID
@ -602,8 +591,7 @@ class ScormSection
* @param boolean $standalone Wether it should include XML tag and DTD line.
* @return The XML as a string, or an empty string if there's no exercise with given ID.
*/
function export_exercise($exerciseId, $standalone=true)
{
function export_exercise($exerciseId, $standalone=true) {
$exercise = new Exercise();
if (! $exercise->read($exerciseId)) {
return '';
@ -620,8 +608,7 @@ function export_exercise($exerciseId, $standalone=true)
* @param bool standalone (ie including XML tag, DTD declaration, etc)
* @param int The JavaScript ID for this question. Due to the nature of interactions, we must have a natural sequence for questions in the generated JavaScript.
*/
function export_question($questionId, $standalone=true, $js_id)
{
function export_question($questionId, $standalone=true, $js_id) {
$question = new ScormQuestion();
$qst = $question->read($questionId);
if( !$qst )
@ -639,5 +626,4 @@ function export_question($questionId, $standalone=true, $js_id)
$assessmentItem = new ScormAssessmentItem($question,$standalone);