예제 #1
0
         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);