main/lp/lp_ajax_switch_item_toc.php 1 location
|
@@ 83-91 (lines=9) @@
|
| 80 |
|
if ($myLP->force_commit) { |
| 81 |
|
$myLP->save_current(); |
| 82 |
|
} |
| 83 |
|
if (is_object($myLP->items[$newItemId])) { |
| 84 |
|
$myLPI = $myLP->items[$newItemId]; |
| 85 |
|
} else { |
| 86 |
|
if ($debug > 1) { |
| 87 |
|
error_log('In switch_item_details - generating new item object', 0); |
| 88 |
|
} |
| 89 |
|
$myLPI = new learnpathItem($newItemId, $userId); |
| 90 |
|
$myLPI->set_lp_view($viewId); |
| 91 |
|
} |
| 92 |
|
/* |
| 93 |
|
* now get what's needed by the SCORM API: |
| 94 |
|
* -score |
main/lp/lp_ajax_switch_item.php 1 location
|
@@ 92-100 (lines=9) @@
|
| 89 |
|
$mylp->save_current(); |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
if (is_object($mylp->items[$new_item_id])) { |
| 93 |
|
$mylpi = $mylp->items[$new_item_id]; |
| 94 |
|
} else { |
| 95 |
|
if ($debug > 1) { |
| 96 |
|
error_log('In switch_item_details - generating new item object', 0); |
| 97 |
|
} |
| 98 |
|
$mylpi = new learnpathItem($new_item_id, $user_id); |
| 99 |
|
$mylpi->set_lp_view($view_id); |
| 100 |
|
} |
| 101 |
|
/* |
| 102 |
|
* now get what's needed by the SCORM API: |
| 103 |
|
* -score |