You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
813 B
24 lines
813 B
<?php
|
|
/* For licensing terms, see /license.txt */
|
|
|
|
/**
|
|
* This script contains the server part of the xajax interaction process. The client part is located
|
|
* in lp_api.php or other api's.
|
|
* This is a first attempt at using xajax and AJAX in general, so the code might be a bit unsettling.
|
|
* @package chamilo.learnpath
|
|
* @author Yannick Warnier <ywarnier@beeznest.org>
|
|
*/
|
|
|
|
/**
|
|
* Start a timer and hand it back to the JS by assigning the current time (of start) to
|
|
* var asset_timer
|
|
* @return string JavaScript time intializer
|
|
*/
|
|
function start_timer() {
|
|
//$objResponse = new xajaxResponse();
|
|
$time = time();
|
|
//$objResponse->addScript("asset_timer='$time';asset_timer_total=0;");
|
|
//return $objResponse;
|
|
return "olms.asset_timer='$time';olms.asset_timer_total=0;";
|
|
}
|
|
echo start_timer();
|
|
|