|
|
|
|
@ -44,7 +44,8 @@ require_once 'aiccItem.class.php'; |
|
|
|
|
* @param array Interactions array |
|
|
|
|
* @param string Core exit SCORM string |
|
|
|
|
*/ |
|
|
|
|
function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1, $min = -1, $status = '', $time = 0, $suspend = '', $location = '', $interactions = array(), $core_exit = 'none') { |
|
|
|
|
function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1, $min = -1, $status = '', $time = 0, $suspend = '', $location = '', $interactions = array(), $core_exit = 'none') |
|
|
|
|
{ |
|
|
|
|
$return = null; |
|
|
|
|
|
|
|
|
|
if ($debug > 0) { |
|
|
|
|
@ -82,6 +83,8 @@ function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$prereq_check = $mylp->prerequisites_match($item_id); |
|
|
|
|
|
|
|
|
|
/** @var learnpathItem $mylpi */ |
|
|
|
|
$mylpi = $mylp->items[$item_id]; |
|
|
|
|
|
|
|
|
|
if (empty($mylpi)) { |
|
|
|
|
@ -266,6 +269,7 @@ function save_item($lp_id, $user_id, $view_id, $item_id, $score = -1, $max = -1, |
|
|
|
|
|
|
|
|
|
Session::write('lpobject', serialize($mylp)); |
|
|
|
|
if ($debug > 0) { error_log('---------------- lp_ajax_save_item.php : save_item end ----- '); } |
|
|
|
|
|
|
|
|
|
return $return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -294,4 +298,5 @@ echo save_item( |
|
|
|
|
(!empty($_REQUEST['suspend'])?$_REQUEST['suspend']:null), |
|
|
|
|
(!empty($_REQUEST['loc'])?$_REQUEST['loc']:null), |
|
|
|
|
$interactions, |
|
|
|
|
(!empty($_REQUEST['core_exit'])?$_REQUEST['core_exit']:'')); |
|
|
|
|
(!empty($_REQUEST['core_exit'])?$_REQUEST['core_exit']:'') |
|
|
|
|
); |
|
|
|
|
|