Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

report/analytics/api

From MoodleDocs
Revision as of 03:28, 1 August 2012 by Adam Olley (talk | contribs) (Bare bones entry)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Moodle 2.2 This page describes the API used by the Engagement Analytics indicators and reporting mechanisms.

Main info

IMPORTANT This page is a WIP and does not reflect the final state of the engagement analytics API!

The indicator class

Functions

Examples

indicator_random

Return a random risk score for each user.

defined('MOODLE_INTERNAL') || die(); require_once(dirname(__FILE__).'/../indicator.class.php');

class indicator_random extends indicator {

   protected function get_risk_for_users($userids, $courseid, $startdate, $enddate) {
       // TODO: Fill this in.
   }
   public function get_defaults() {
       // TODO: Fill this in.
   }
   // TODO: Complete class definition.

}

Helper Functions

See also