Your Moodle version

Reports: Training Sessions

Maintained by Picture of Valery Fremaux Valery Fremaux
Aggregates time use stats given by the use_stats block for elaborating high level training reports in Profesional Development environments

Trainingsession is a course report that assemble the use_stat block log compiler to provide high level training reports for professional development assessment.

The trainingsessions report guesses the course structure, and will provide a report following the pedagogic organisation (and not technical).

Training reports can be accessed per user as details report, or per group/course for an overral completion overview.

All detailed results are exported as Excel sheets

Trainingsessions batch system will need the auth_ticket plugin provided at to send notifications about batch productions.


This plugin is part of set Training session report.


Screenshot #0
Screenshot #1
Screenshot #2


Picture of Valery Fremaux
Valery Fremaux (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Womble
    Wed, Apr 3, 2013, 3:54 PM
    I have downloaded / installed the updated Module from the plkugin directory.

    I now have in In My Courses > Reports >Training Sessions,
    4 tabs,
    Per Participant - all participants are showing,
    Course Raw
    All courses

    Only Course Raw actually produces anything, I do get a csv file of the access All other tabs still havet "get record() not available anymore" message.
  • Picture of Valery Fremaux
    Wed, Apr 3, 2013, 6:16 PM
    you may consider also renewing the use_stats block... (i finished review on 2.2)
  • Womble
    Wed, Apr 3, 2013, 6:42 PM
    Thank you, Tat is great. Just one more question (sorry), how do the students see their own reports. Use Stats seems to be only available to the admin (me) and the Reports in Navigation aren't there for students.
  • Picture of Valery Fremaux
    Wed, Apr 3, 2013, 8:37 PM
    All this can be setup by capabilities on the system level role definition, or by derogating some permissions locally.

    Use stats by default is not available to students, as being a user tracking tool that might need some precaution to use in a general way. So it needs to be allowed explicitely in site role setup.

    Training session reports also have a report level capability to enable students using it (as all other reports).... Cheers.
  • Picture of Helen Moraes
    Sun, May 4, 2014, 8:19 AM
    Hi, when I generate XLS reports I get strange values of time opening fine in Excel, something like 0,006944444.
    Maybe it depends on this strings of locallib.php

    // for excel time format we need have a fractional day value
    return $timevalue / DAYSECS ;

    Anyone knows how to make everything look normal, as in html pages of this plugin? Something like hours:minutes format?
    Thank you

    ( I use Moodle 2.6.2 )
  • Picture of Helen Moraes
    Mon, May 5, 2014, 1:47 AM
    I figured out tha issue has nothing to do with what I wrote, it's just a problem of cell formatting in excel.

    When cell is switched from 'general' to 'date', that value is correctly displayd in hh:mm:ss format.

    So, this means that strings of locallib.php can't "force" cells to display in correct way.

    If you scroll file code it seems to use the right way to do that:

    $xls_formats['zt'] =& $workbook->add_format();

    is called from

    $timeformat = $xls_formats['zt'];

    Anyway it doesn't work. Not for me.

  • Picture of Carlos Kiyan Tsunami
    Thu, Jun 26, 2014, 6:16 PM
    HI Valery
    thank you so much for upgrading your pluging to moodle 2.6
    would be possible to make a consolidate report like this?
  • Picture of German Acevedo
    Wed, Jul 23, 2014, 2:39 AM
    I'm using Training Sessions report on Moodle 2.4 and it was working fine until suddenly it started to give an error when exporting to excel the report for some users. The error is "Fatal error: Call to undefined method PEAR_Error::setInputEncoding() in /var/www/cursos/lib/excellib.class.php on line 154
    ", but as I mentioned, it only happens in some student reports. Others are generated without any trouble. Does any body experienced the same trouble? What should I do to debug and solve it?


  • Picture of Leanne Cook
    Sat, Aug 16, 2014, 12:48 AM
    I am looking to download all users rather than just a course. It doesn't look like there is a way to do this now?
  • Picture of Valery Fremaux
    Sun, Aug 17, 2014, 12:22 AM
    Actually not, because this in many cases would lead to severe performance and server overhead issue. The only way to process to really massive stat compilation need either getting data out of Moodle and process it elsewhere, or implement very solid and special batch engines within Moodle that now how to manage those site wide compilations cleverly depending on output amount. This is part of developement i do provide on demand only for professional cutomers...
  • Picture of Federica Marra
    Fri, Feb 6, 2015, 10:03 PM
    Hi Valery,
    is this plugin working in 2.7 and 2.8 Moodle versions?
  • Picture of Valery Fremaux
    Sat, Feb 7, 2015, 1:12 AM
    Hi i fear this plugin will have to be severely rewritten as logging implementation is being drastically changed in Moodle 2.8
  • Picture of C Behan
    Mon, Jun 20, 2016, 11:28 PM
    Hi there,

    I tried to install this on a local install but apparently the plugin has another dependency which is not in the Plugins directory: auth_ticket.

    Any advice would be appreciated.

    Thanks, Catherine
  • Picture of Valery Fremaux
    Tue, Jun 21, 2016, 5:25 AM
    mmm, that's actually is a miss in the distribution logic. You'll find an auth_ticket implementation at http:///
  • Picture of C Behan
    Tue, Jun 21, 2016, 11:58 PM
    Thanks Valery.
1 2 3
Please login to post comments