ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
__construct () | |
& | executeCommand () |
execute command | |
getRTEjs () | |
getDataDirectory () | |
getPlayer () | |
getCPData () | |
getADLActData () | |
pingSession () | |
getScope () | |
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 = 1 |
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 183 of file ilSCORM13Player.php.
References $_GET, $cmd, $ilias, $ilLog, $lng, fetchCMIData(), getADLActData(), getCPData(), getPlayer(), getRTEjs(), getSuspendData(), persistCMIData(), readGObjective(), specialPage(), suspendADLActData(), and writeGObjective().
ilSCORM13Player::fetchCMIData | ( | ) |
Definition at line 767 of file ilSCORM13Player.php.
References $data.
Referenced by executeCommand().
ilSCORM13Player::get_actual_attempts | ( | ) |
Get number of actual attempts for the user.
Definition at line 1378 of file ilSCORM13Player.php.
References $ilDB, $res, and $row.
Referenced by getPlayer().
ilSCORM13Player::get_max_attempts | ( | ) |
Get max.
number of attempts allowed for this package
Definition at line 1348 of file ilSCORM13Player.php.
References $ilDB, $res, and $row.
Referenced by getPlayer().
ilSCORM13Player::get_module_version | ( | ) |
ilSCORM13Player::getADLActData | ( | ) |
Definition at line 402 of file ilSCORM13Player.php.
References $data, $ilDB, and $res.
Referenced by executeCommand().
|
private |
Definition at line 822 of file ilSCORM13Player.php.
References $ilDB, $key, $q, $res, $result, and $row.
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 1281 of file ilSCORM13Player.php.
References $_COOKIE.
ilSCORM13Player::getCPData | ( | ) |
Definition at line 376 of file ilSCORM13Player.php.
Referenced by executeCommand().
ilSCORM13Player::getDataDirectory | ( | ) |
Definition at line 268 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 1267 of file ilSCORM13Player.php.
References $filename, and $mimetypes.
ilSCORM13Player::getPlayer | ( | ) |
Definition at line 278 of file ilSCORM13Player.php.
References $_GET, $config, $ilias, $ilSetting, $lng, exit, get_actual_attempts(), get_max_attempts(), getDataDirectory(), ilUtil\getImagePath(), ilYuiUtil\getLocalPath(), getScope(), ilUtil\getStyleSheetLocation(), increase_attempt(), and save_module_version().
Referenced by executeCommand().
ilSCORM13Player::getRTEjs | ( | ) |
Definition at line 249 of file ilSCORM13Player.php.
References $filename.
Referenced by executeCommand().
ilSCORM13Player::getScope | ( | ) |
Definition at line 439 of file ilSCORM13Player.php.
References $data, $ilDB, $packageId, and $res.
Referenced by getPlayer().
ilSCORM13Player::getSuspendData | ( | ) |
Definition at line 459 of file ilSCORM13Player.php.
References $data, $ilDB, and $res.
Referenced by executeCommand().
ilSCORM13Player::increase_attempt | ( | ) |
Increases attempts by one for this package.
Definition at line 1402 of file ilSCORM13Player.php.
References $ilDB, $res, and $row.
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 809 of file ilSCORM13Player.php.
ilSCORM13Player::persistCMIData | ( | $data = null | ) |
Definition at line 782 of file ilSCORM13Player.php.
Referenced by executeCommand().
ilSCORM13Player::pingSession | ( | ) |
Definition at line 432 of file ilSCORM13Player.php.
ilSCORM13Player::quoteJSONArray | ( | $a_array | ) |
Definition at line 1239 of file ilSCORM13Player.php.
References $ilDB.
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 1297 of file ilSCORM13Player.php.
ilSCORM13Player::readGObjective | ( | ) |
Definition at line 523 of file ilSCORM13Player.php.
References $ilDB, $query, $res, and $row.
Referenced by executeCommand().
|
private |
Definition at line 920 of file ilSCORM13Player.php.
ilSCORM13Player::save_module_version | ( | ) |
save the active module version to scorm_tracking
Definition at line 1456 of file ilSCORM13Player.php.
Referenced by getPlayer().
|
private |
Definition at line 1031 of file ilSCORM13Player.php.
References $data, $ilDB, $ilLog, $key, $map, $result, $ret, and $row.
ilSCORM13Player::setCookie | ( | $cook | ) |
Definition at line 1286 of file ilSCORM13Player.php.
ilSCORM13Player::specialPage | ( | ) |
Definition at line 738 of file ilSCORM13Player.php.
References $lng, and ilUtil\getStyleSheetLocation().
Referenced by executeCommand().
ilSCORM13Player::suspendADLActData | ( | ) |
Definition at line 491 of file ilSCORM13Player.php.
Referenced by executeCommand().
ilSCORM13Player::writeGObjective | ( | ) |
Definition at line 582 of file ilSCORM13Player.php.
References $ilDB, $ilLog, $key, $res, and $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 = 1 |
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.