Use Stats

Blocks ::: block_use_stats
Maintained by Picture of Valery FremauxValery Fremaux
Provides time base use stats indicators. The compilation library is used by the "training session" report plugin.

Use Stats 2.8.0 (build 2016111100)

Moodle 2.8
Released: Sunday, March 19, 2017, 6:26 AM

moodle-block_use_stats

Time based use stats block

Version 2016051700

Adds per instance visibility control to students. Adds a "onesessionpercourse" global option. forcing working sessions to be splitted when course context changes in log track. Unifies time formatting with central block_usestats_format_time function @see mod_learningtimecheck and report_trainingsessions

Version 2015121900

Adding keepalive event handling

Calling the use_stats notification handler :

the notification handler allows all pages of Moodle in user agent to trigger a 10 min (adjustable) request to punch a log event in th user log track.

invoking the notification hook needs to be present on every page of Moodle, so the good way to implement it is to customize the core site renderer. Another alternative way could be to add the use_stats plug into a generic footer include in theme layouts.

class theme_customtheme_core_renderer extends theme_core_renderer {

function standard_end_of_body_html() {
    global $CFG;

    $str = '';

    // use_stats notification plug / VF Consulting 2015-12-19
    if (file_exists($CFG->dirroot.'/blocks/use_stats/lib.php')) {
        include_once $CFG->dirroot.'/blocks/use_stats/lib.php';
        $str .= block_use_stats_setup_theme_notification();
    }
    $str .= parent::standard_end_of_body_html();
    return $str;
}

}

Version information

Version build number
2016111100
Version release name
2.8.0 (build 2016111100)
Maturity
Stable version
MD5 Sum
80bc1872b7606a27e0e76ea0d0e39d12
Supported software
Moodle 2.8
  • Latest release for Moodle 2.8

Version control information

Version control system (VCS)
GIT
VCS repository URL
VCS branch
MOODLE_28_STABLE

Default installation instructions for plugins of the type Blocks

  1. Make sure you have all the required versions.
  2. Download and unpack the block folder.
  3. Place the folder (eg "myblock") in the "blocks" subdirectory.
  4. Visit http://yoursite.com/admin to complete the installation
  5. Turn editing on in any home or course page.
  6. Add the block to the page
  7. Visit the config link in the block for more options.