本文整理匯總了PHP中learnpath::update_default_scorm_commit方法的典型用法代碼示例。如果您正苦於以下問題:PHP learnpath::update_default_scorm_commit方法的具體用法?PHP learnpath::update_default_scorm_commit怎麽用?PHP learnpath::update_default_scorm_commit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類learnpath
的用法示例。
在下文中一共展示了learnpath::update_default_scorm_commit方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
Session::write('refresh', 1);
$learnPath->update_default_view_mode();
$learnPath->updateCurrentLpFromSession();
}
require 'lp_list.php';
break;
case 'switch_force_commit':
if ($debug > 0) {
error_log('New LP - switch_force_commit action triggered', 0);
}
if (!$lp_found) {
error_log('New LP - No learnpath given for switch', 0);
require 'lp_list.php';
}
Session::write('refresh', 1);
$learnPath->update_default_scorm_commit();
$learnPath->updateCurrentLpFromSession();
require 'lp_list.php';
break;
/* Those 2 switches have been replaced by switc_attempt_mode switch
case 'switch_reinit':
if ($debug > 0) error_log('New LP - switch_reinit action triggered', 0);
if (!$lp_found) { error_log('New LP - No learnpath given for switch', 0); require 'lp_list.php'; }
Session::write('refresh', 1);
$learnPath->update_reinit();
require 'lp_list.php';
break;
case 'switch_seriousgame_mode':
if($debug>0) error_log('New LP - switch_seriousgame_mode action triggered',0);
if(!$lp_found){ error_log('New LP - No learnpath given for switch',0); require 'lp_list.php'; }
Session::write('refresh', 1);