blocks_retained:usestats:technique:mnet

Block Use Stats (User Time tracking) :MNET and Web services

MNET

Use stats provides MNET services to organize a distributed recollection of stats data.

Web services

Web services are provides to extract and retrieve time stats from an external ERP.

Services MNET

Service: Remote access to static usage.

Fonctions RPC

use_stats_rpc_get_stats

Retrieves aggregate login times in different courses, activity modules, or overall time.

Settings
  • callinguser : The identity of the calling user
  • targetuser : The identity of the user object of the request
  • whereroot : The host on which the results are requested. If empty, review the results on the current Moodle.
  • statsscope : The scope of the statistics (aggregation level)
  • timefrom : Starting date compilation
  • json_response : response format
Result

An XML file that responds to the structure:

 <USE_STATS>
    <USER>
       <USERNAME></USERNAME>
       <FIRSTNAME></FIRSTNAME>
       <LASTNAME></LASTNAME>
       <FROM></FROM>
       <ELAPSED></ELAPSED>
    </USER>
    <COURSES>
       <COURSE>
          <NAME></NAME>
          <SHORTNAME></SHORTNAME>
          <IDNUMBER></IDNUMBER>
          <ELAPSED></ELAPSED>
       </COURSE>
    </COURSES>
 </USE_STATS>
 

or

 <USE_STATS>
    <USER>
       <USERNAME></USERNAME>
       <FIRSTNAME></FIRSTNAME>
       <LASTNAME></LASTNAME>
       <FROM></FROM>
       <ELAPSED></ELAPSED>
    </USER>
    <MODULES>
       <MODULE>
          <NAME></NAME>
          <TYPE></TYPE>
          <IDNUMBER></IDNUMBER>
          <ELAPSED></ELAPSED>
       </MODULE>
    </MODULES>
 </USE_STATS>

Dependant of the value of the “statsscope” parameter.

use_stats_rpc_get_scores

This function is an add-on to retrieve scores (notes) from the same service and in a format and method similar to the collection of statistics.

{…to be continued…}

Back to home - Back to plugin list order by type - Back to the component index - back to the technical index

blocks_retained/usestats/technique/mnet.txt · Last modified: 2024/05/14 15:37 (external edit)