[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/scorm/datamodels/ -> scorm_12lib.php (summary)

(no description)

File Size: 205 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 2 functions

  scorm_eval_prerequisites()
  get_scorm_default()

Functions
Functions that are not part of a class:

scorm_eval_prerequisites($prerequisites, $usertracks)   X-Ref
This is really a little language parser for AICC_SCRIPT
evaluates the expression and returns a boolean answer
see 2.3.2.5.1. Sequencing/Navigation Today  - from the SCORM 1.2 spec (CAM).

param: string $prerequisites the aicc_script prerequisites expression
param: array  $usertracks the tracked user data of each SCO visited
return: boolean

get_scorm_default(&$userdata, $scorm, $scoid, $attempt, $mode)   X-Ref
Sets up $userdata array and default values for SCORM 1.2 .

param: stdClass $userdata an empty stdClass variable that should be set up with user values
param: object $scorm package record
param: string $scoid SCO Id
param: string $attempt attempt number for the user
param: string $mode scorm display mode type
return: array The default values that should be used for SCORM 1.2 package



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1