ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
__construct () | |
& | executeCommand () |
execute command | |
getRTEjs () | |
getDataDirectory () | |
getPlayer () | |
getCPData () | |
getADLActData () | |
getScope () | |
pingSession () | |
getSuspendData () | |
suspendADLActData () | |
readGObjective () | |
writeGObjective () | |
specialPage () | |
fetchCMIData () | |
persistCMIData ($data=null) | |
quoteJSONArray ($a_array) | |
getMimetype ($filename) | |
estimate content type for a filename by extension first do it for common static web files from external list if not found peek into file by slow php function mime_content_type() | |
getCookie () | |
getting and setting Scorm2004 cookie Cookie contains enrypted associative array of sahs_lm.id and permission value you may enforce stronger symmetrical encryption by adding RC4 via mcrypt() | |
setCookie ($cook) | |
readFile ($path) | |
Try to find file, identify content type, write it to buffer, and stop immediatly If no file given, read file from PATH_INFO, check permission by cookie, and write out and stop. | |
get_max_attempts () | |
Get max. | |
get_module_version () | |
get_actual_attempts () | |
Get number of actual attempts for the user. | |
increase_attempt () | |
Increases attempts by one for this package. | |
save_module_version () | |
save the active module version to scorm_tracking |
Data Fields | |
const | ENABLE_GZIP = 0 |
const | ENABLE_JS_DEBUG = 0 |
const | NONE = 0 |
const | READONLY = 1 |
const | WRITEONLY = 2 |
const | READWRITE = 3 |
$packageId | |
$jsMode | |
$ilias | |
$slm | |
$tpl |
Private Member Functions | |
normalizeFields ($table, &$node) | |
maps API data structure type to internal datatype on a node and accepts only valid values, dropping invalid ones from input | |
getCMIData ($userId, $packageId) | |
removeCMIData ($userId, $packageId, $cp_node_id=null) | |
setCMIData ($userId, $packageId, $data) |
Private Attributes | |
$userId |
Static Private Attributes | |
static | $schema |
Definition at line 32 of file ilSCORM13Player.php.
ilSCORM13Player::__construct | ( | ) |
Definition at line 147 of file ilSCORM13Player.php.
References $_GET, $GLOBALS, $ilCtrl, $ilias, $lng, $tpl, and ilObject\_lookupObjectId().
& ilSCORM13Player::executeCommand | ( | ) |
execute command
Definition at line 177 of file ilSCORM13Player.php.
References $_GET, $cmd, $ilias, $ilLog, $lng, fetchCMIData(), getADLActData(), getCPData(), getPlayer(), getRTEjs(), getSuspendData(), persistCMIData(), pingSession(), readGObjective(), specialPage(), suspendADLActData(), and writeGObjective().
ilSCORM13Player::fetchCMIData | ( | ) |
Definition at line 580 of file ilSCORM13Player.php.
References $data.
Referenced by executeCommand().
ilSCORM13Player::get_actual_attempts | ( | ) |
Get number of actual attempts for the user.
Definition at line 1075 of file ilSCORM13Player.php.
References DB_FETCHMODE_ASSOC.
Referenced by getPlayer().
ilSCORM13Player::get_max_attempts | ( | ) |
Get max.
number of attempts allowed for this package
Definition at line 1048 of file ilSCORM13Player.php.
References DB_FETCHMODE_ASSOC.
Referenced by getPlayer().
ilSCORM13Player::get_module_version | ( | ) |
Definition at line 1060 of file ilSCORM13Player.php.
References DB_FETCHMODE_ASSOC.
ilSCORM13Player::getADLActData | ( | ) |
Definition at line 378 of file ilSCORM13Player.php.
References $data, and DB_FETCHMODE_ASSOC.
Referenced by executeCommand().
|
private |
Definition at line 633 of file ilSCORM13Player.php.
References $result.
ilSCORM13Player::getCookie | ( | ) |
getting and setting Scorm2004 cookie Cookie contains enrypted associative array of sahs_lm.id and permission value you may enforce stronger symmetrical encryption by adding RC4 via mcrypt()
Definition at line 980 of file ilSCORM13Player.php.
References $_COOKIE.
ilSCORM13Player::getCPData | ( | ) |
Definition at line 355 of file ilSCORM13Player.php.
References DB_FETCHMODE_ASSOC.
Referenced by executeCommand().
ilSCORM13Player::getDataDirectory | ( | ) |
Definition at line 264 of file ilSCORM13Player.php.
References ILIAS_WEB_DIR.
Referenced by getPlayer().
ilSCORM13Player::getMimetype | ( | $filename | ) |
estimate content type for a filename by extension first do it for common static web files from external list if not found peek into file by slow php function mime_content_type()
$filename | required |
Definition at line 966 of file ilSCORM13Player.php.
References $filename, and $mimetypes.
ilSCORM13Player::getPlayer | ( | ) |
Definition at line 274 of file ilSCORM13Player.php.
References $_GET, $config, $ilias, $lng, exit, get_actual_attempts(), get_max_attempts(), getDataDirectory(), ilUtil\getImagePath(), getScope(), ilUtil\getStyleSheetLocation(), increase_attempt(), and save_module_version().
Referenced by executeCommand().
ilSCORM13Player::getRTEjs | ( | ) |
Definition at line 247 of file ilSCORM13Player.php.
References $filename.
Referenced by executeCommand().
ilSCORM13Player::getScope | ( | ) |
Definition at line 400 of file ilSCORM13Player.php.
References $data, $packageId, and DB_FETCHMODE_ASSOC.
Referenced by getPlayer().
ilSCORM13Player::getSuspendData | ( | ) |
Definition at line 416 of file ilSCORM13Player.php.
References $data, and DB_FETCHMODE_ASSOC.
Referenced by executeCommand().
ilSCORM13Player::increase_attempt | ( | ) |
Increases attempts by one for this package.
Definition at line 1096 of file ilSCORM13Player.php.
References DB_FETCHMODE_ASSOC.
Referenced by getPlayer().
|
private |
maps API data structure type to internal datatype on a node and accepts only valid values, dropping invalid ones from input
Definition at line 620 of file ilSCORM13Player.php.
ilSCORM13Player::persistCMIData | ( | $data = null | ) |
Definition at line 596 of file ilSCORM13Player.php.
Referenced by executeCommand().
ilSCORM13Player::pingSession | ( | ) |
Definition at line 409 of file ilSCORM13Player.php.
Referenced by executeCommand().
ilSCORM13Player::quoteJSONArray | ( | $a_array | ) |
Definition at line 937 of file ilSCORM13Player.php.
ilSCORM13Player::readFile | ( | $path | ) |
Try to find file, identify content type, write it to buffer, and stop immediatly If no file given, read file from PATH_INFO, check permission by cookie, and write out and stop.
$path | filename |
Definition at line 996 of file ilSCORM13Player.php.
ilSCORM13Player::readGObjective | ( | ) |
Definition at line 443 of file ilSCORM13Player.php.
References $user, and DB_FETCHMODE_ASSOC.
Referenced by executeCommand().
|
private |
Definition at line 716 of file ilSCORM13Player.php.
ilSCORM13Player::save_module_version | ( | ) |
save the active module version to scorm_tracking
Definition at line 1128 of file ilSCORM13Player.php.
Referenced by getPlayer().
|
private |
Definition at line 829 of file ilSCORM13Player.php.
References $data, $ilLog, $result, and $ret.
ilSCORM13Player::setCookie | ( | $cook | ) |
Definition at line 985 of file ilSCORM13Player.php.
ilSCORM13Player::specialPage | ( | ) |
Definition at line 550 of file ilSCORM13Player.php.
References $lng, and ilUtil\getStyleSheetLocation().
Referenced by executeCommand().
ilSCORM13Player::suspendADLActData | ( | ) |
Definition at line 436 of file ilSCORM13Player.php.
Referenced by executeCommand().
ilSCORM13Player::writeGObjective | ( | ) |
Definition at line 489 of file ilSCORM13Player.php.
References $user.
Referenced by executeCommand().
ilSCORM13Player::$ilias |
Definition at line 143 of file ilSCORM13Player.php.
Referenced by __construct(), executeCommand(), and getPlayer().
ilSCORM13Player::$jsMode |
Definition at line 141 of file ilSCORM13Player.php.
ilSCORM13Player::$packageId |
Definition at line 140 of file ilSCORM13Player.php.
Referenced by getScope().
|
staticprivate |
Definition at line 44 of file ilSCORM13Player.php.
ilSCORM13Player::$slm |
Definition at line 144 of file ilSCORM13Player.php.
ilSCORM13Player::$tpl |
Definition at line 145 of file ilSCORM13Player.php.
Referenced by __construct().
|
private |
Definition at line 139 of file ilSCORM13Player.php.
const ilSCORM13Player::ENABLE_GZIP = 0 |
Definition at line 35 of file ilSCORM13Player.php.
const ilSCORM13Player::ENABLE_JS_DEBUG = 0 |
Definition at line 37 of file ilSCORM13Player.php.
const ilSCORM13Player::NONE = 0 |
Definition at line 39 of file ilSCORM13Player.php.
const ilSCORM13Player::READONLY = 1 |
Definition at line 40 of file ilSCORM13Player.php.
const ilSCORM13Player::READWRITE = 3 |
Definition at line 42 of file ilSCORM13Player.php.
const ilSCORM13Player::WRITEONLY = 2 |
Definition at line 41 of file ilSCORM13Player.php.