dokeos-learnpath
[ class tree: dokeos-learnpath ] [ index: dokeos-learnpath ] [ all elements ]

Procedural File: lp_message.php

Source Location: /main/newscorm/lp_message.php



Page Details:

Container script for the messages coming from the learnpath object. Initially, this wasn't supposed to be a separate file but rather some text included in lp_view.php, but SCORM involves loading a script that saves the data asynchronously while the SCORM learning path carries on. Having an informational iframe helps not popping up an additional window when saving data.

This script is also used to refresh the TOC as sometimes the SCORM JS messages are taken into account only after the TOC is drawn. As such, you might complete an item, browse to the next page, have the TOC drawn with your 'incomplete' status, while the SCORM messages generally arrives just after the TOC is drawn. By updating it here and in lp_save.php, we avoid funny visual effect like having a complete item showing as incomplete.




Tags:

author:  Yannick Warnier <ywarnier@beeznest.org>


Includes:

include_once('../inc/reduced_header.inc.php') [line 52]
require_once('back_compat.inc.php') [line 23]
Script

require_once('scorm.class.php') [line 25]
require_once('learnpath.class.php') [line 24]






Documentation generated on Wed, 05 Sep 2007 06:14:56 +0200 by phpDocumentor 1.4.0