|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Variables | |
| $id = optional_param('cm', '', PARAM_INT) | |
| This page prints a particular instance of aicc/scorm package. | |
| $a = optional_param('a', '', PARAM_INT) | |
| $scoid = required_param('scoid', PARAM_INT) | |
| $mode = optional_param('mode', 'normal', PARAM_ALPHA) | |
| $currentorg = optional_param('currentorg', '', PARAM_RAW) | |
| $newattempt = optional_param('newattempt', 'off', PARAM_ALPHA) | |
| $displaymode = optional_param('display','',PARAM_ALPHA) | |
| $forcejs = get_config('scorm', 'forcejavascript') | |
| $strscorms = get_string('modulenameplural', 'scorm') | |
| $strscorm = get_string('modulename', 'scorm') | |
| $strpopup = get_string('popup', 'scorm') | |
| $strexit = get_string('exitactivity', 'scorm') | |
| $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id) | |
| if($scorm->timeclose!=0) $scorm | version = strtolower(clean_param($scorm->version, PARAM_SAFEDIR)) |
| if (!file_exists($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'lib.php')) | |
| $attempt = scorm_get_last_attempt($scorm->id, $USER->id) | |
| if(($newattempt=='on')&&(($attempt < $scorm->maxattempt)||($scorm-> maxattempt==0))) | $attemptstr = '&attempt=' . $attempt |
| $result = scorm_get_toc($USER, $scorm, $cm->id, TOCJSLINK, $currentorg, $scoid, $mode, $attempt, true, true) | |
| $sco = $result->sco | |
| $scoidstr = '&scoid='.$sco->id | |
| $scoidpop = '&scoid='.$sco->id | |
| $modestr = '&mode='.$mode | |
| $SESSION scorm | scoid = $sco->id |
| $SESSION scorm | scormstatus = 'Not Initialized' |
| $SESSION scorm | scormmode = $mode |
| $SESSION scorm | attempt = $attempt |
| $completion = new completion_info($course) | |
| $name = false | |
| $a = optional_param('a', '', PARAM_INT) |
Definition at line 24 of file player.php.
| $attempt = scorm_get_last_attempt($scorm->id, $USER->id) |
Definition at line 135 of file player.php.
| if (($newattempt=='on')&&(($attempt< $scorm->maxattempt)||($scorm->maxattempt==0))) $attemptstr = '&attempt=' . $attempt |
Definition at line 140 of file player.php.
| $completion = new completion_info($course) |
Definition at line 179 of file player.php.
| $coursecontext = get_context_instance(CONTEXT_COURSE, $course->id) |
Definition at line 96 of file player.php.
| $currentorg = optional_param('currentorg', '', PARAM_RAW) |
Definition at line 27 of file player.php.
| $displaymode = optional_param('display','',PARAM_ALPHA) |
Definition at line 29 of file player.php.
| $forcejs = get_config('scorm', 'forcejavascript') |
Definition at line 84 of file player.php.
| $id = optional_param('cm', '', PARAM_INT) |
This page prints a particular instance of aicc/scorm package.
Definition at line 23 of file player.php.
| $mode = optional_param('mode', 'normal', PARAM_ALPHA) |
Definition at line 26 of file player.php.
Definition at line 165 of file player.php.
| $name = false |
Definition at line 204 of file player.php.
| $newattempt = optional_param('newattempt', 'off', PARAM_ALPHA) |
Definition at line 28 of file player.php.
| $result = scorm_get_toc($USER, $scorm, $cm->id, TOCJSLINK, $currentorg, $scoid, $mode, $attempt, true, true) |
Definition at line 142 of file player.php.
| $sco = $result->sco |
Definition at line 143 of file player.php.
| $scoid = required_param('scoid', PARAM_INT) |
Definition at line 25 of file player.php.
Definition at line 164 of file player.php.
Definition at line 163 of file player.php.
| $strexit = get_string('exitactivity', 'scorm') |
Definition at line 94 of file player.php.
| $strpopup = get_string('popup', 'scorm') |
Definition at line 93 of file player.php.
| $strscorm = get_string('modulename', 'scorm') |
Definition at line 92 of file player.php.
| $strscorms = get_string('modulenameplural', 'scorm') |
Definition at line 91 of file player.php.
null until start() is called.
start time, rather than randomly.
Definition at line 176 of file player.php.
| if(!file_exists($CFG->dirroot.'/mod/scorm/datamodels/'.$scorm->version.'lib.php')) |
Definition at line 131 of file player.php.
Definition at line 173 of file player.php.
Definition at line 175 of file player.php.
| $SESSION scorm scormstatus = 'Not Initialized' |
Definition at line 174 of file player.php.
| if ($scorm->timeclose!=0) $scorm version = strtolower(clean_param($scorm->version, PARAM_SAFEDIR)) |
Definition at line 130 of file player.php.