Project

General

Profile

Bug #2471 » scorm.patch

Goulwen Reboux, 02/02/2011 12:24

View differences:

application/weblcms/tool/learning_path/php/ajax/scorm/get_value.php Wed Feb 02 10:41:15 2011 +0100 → application/weblcms/tool/learning_path/php/ajax/scorm/get_value.php Wed Feb 02 11:07:42 2011 +0100
14 14
 * $Id: get_value.php 216 2009-11-13 14:08:06Z kariboe $
15 15
 * @package application.lib.weblcms.tool.learning_path.javascript.scorm.ajax
16 16
 */
17
require_once dirname(__FILE__) . '/../../../../../../../../common/global.inc.php';
18
require_once Path :: get_application_path() . 'lib/weblcms/trackers/weblcms_lpi_attempt_tracker.class.php';
17
require_once dirname(__FILE__) . '/../../../../../../../common/global.inc.php';
18
require_once Path :: get_application_path() . 'weblcms/php/trackers/weblcms_lpi_attempt_tracker.class.php';
19 19

  
20 20
$tracker_id = Request :: post('tracker_id');
21 21
$variable = Request :: post('variable');
application/weblcms/tool/learning_path/php/ajax/scorm/set_value.php Wed Feb 02 10:41:15 2011 +0100 → application/weblcms/tool/learning_path/php/ajax/scorm/set_value.php Wed Feb 02 11:07:42 2011 +0100
17 17
 * $Id: set_value.php 216 2009-11-13 14:08:06Z kariboe $
18 18
 * @package application.lib.weblcms.tool.learning_path.javascript.scorm.ajax
19 19
 */
20
require_once dirname(__FILE__) . '/../../../../../../../../common/global.inc.php';
21
require_once Path :: get_application_path() . 'lib/weblcms/trackers/weblcms_lpi_attempt_tracker.class.php';
20
require_once dirname(__FILE__) . '/../../../../../../../common/global.inc.php';
21
require_once Path :: get_application_path() . 'weblcms/php/trackers/weblcms_lpi_attempt_tracker.class.php';
22 22

  
23 23
$tracker_id = Request :: post('tracker_id');
24 24
$variable = Request :: post('variable');
application/weblcms/tool/learning_path/php/component/complex_display.class.php Wed Feb 02 10:41:15 2011 +0100 → application/weblcms/tool/learning_path/php/component/complex_display.class.php Wed Feb 02 11:07:42 2011 +0100
342 342
        return $default_configuration;
343 343
    }
344 344

  
345
    function get_assessment_parameters()
346
    {
347
        return array(LearningPathDisplay :: PARAM_LEARNING_PATH_ITEM_ID, ComplexDisplay :: PARAM_COMPLEX_CONTENT_OBJECT_ITEM_ID);
348
    }
349

  
345 350
    function get_assessment_question_attempts()
346 351
    {
347 352
        $assessment_question_attempt_data = array();
application/weblcms/tool/learning_path/resources/javascript/scorm/chamilo_api.js Wed Feb 02 10:41:15 2011 +0100 → application/weblcms/tool/learning_path/resources/javascript/scorm/chamilo_api.js Wed Feb 02 11:07:42 2011 +0100
65 65
	
66 66
	var response = jQuery.ajax({
67 67
		type: "POST",
68
		url: "./application/weblcms/php/tool/learning_path/javascript/scorm/ajax/terminate.php",
68
		url: "./application/weblcms/tool/learning_path/php/ajax/scorm/terminate.php",
69 69
		data: { tracker_id: tracker_id },
70 70
		async: false
71 71
	}).responseText; //alert(response);
......
200 200
	
201 201
	var response = jQuery.ajax({
202 202
		type: "POST",
203
		url: "./application/weblcms/php/tool/learning_path/javascript/scorm/ajax/set_value.php",
203
		url: "./application/weblcms/tool/learning_path/php/ajax/scorm/set_value.php",
204 204
		data: { tracker_id: tracker_id, variable: variable, value: value },
205 205
		async: false
206 206
	}).responseText; //alert(response);
......
246 246
{
247 247
	var value = jQuery.ajax({
248 248
		type: "POST",
249
		url: "./application/weblcms/php/tool/learning_path/javascript/scorm/ajax/get_value.php",
249
		url: "./application/weblcms/tool/learning_path/php/ajax/scorm/get_value.php",
250 250
		data: { tracker_id: tracker_id, variable: variable},
251 251
		async: false
252 252
	}).responseText; 
(4-4/5)