lp_comm.common.php 710 B

12345678910111213141516171819
  1. <?php //$id: $
  2. /**
  3. * This script contains the server part of the xajax interaction process. The client part is located
  4. * in lp_api.php or other api's.
  5. * This is a first attempt at using xajax and AJAX in general, so the code might be a bit unsettling.
  6. * @package dokeos.learnpath
  7. * @author Yannick Warnier <ywarnier@beeznest.org>
  8. */
  9. /**
  10. * Script
  11. */
  12. require_once('back_compat.inc.php');
  13. require_once('learnpath.class.php');
  14. require('../inc/lib/xajax/xajax.inc.php');
  15. $xajax = new xajax(api_get_path(WEB_CODE_PATH).'newscorm/lp_comm.server.php');
  16. $xajax->registerFunction("save_item");
  17. $xajax->registerFunction("switch_item_details");
  18. $xajax->registerFunction("backup_item_details");
  19. ?>