Data manipulation API

Revision as of 03:27, 1 August 2012 by Adam Olley (talk | contribs) (Bare bones entry)

Jump to: navigation, search

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