/lib.phpSloodle module core library functionality.
This script is required by Moodle to contain certain key functionality for the module.
Given an object containing all the necessary data, (defined by the form in mod.html) this function will create a new instance and return the id number of the new instance.
Function to be run periodically according to the Moodle cron.
Clears out expired pending user entries, session keys, etc.
Given an ID of an instance of this module, this function will permanently delete the instance and any data that depends on it.
Must return an array of user records (all data) who are participants for a given instance of sloodle. Must include every user involved in the instance, independient of his role (student, teacher, admin...) See other modules as example.
Gets the different sub-types of Sloodle module available as a list for the "Add Activity..." menu.
$return array Entries for the "Add Activity..." sub-menu for Sloodle
Must return an array of grades for a given instance of this module, indexed by user. It also returns a maximum allowed grade.
Example: $return->grades = array of grades; $return->maxgrade = maximum allowed grade;
return $return;
Given a course and a time, this module should find recent activity that has occurred in sloodle activities and print it out.
Return true if there was output, or false is there was none.
Processes the module configuration options prior to saving them.
Only used when the "config.html" file is used for module configuration. Moodle 1.9 now prefers the "settings.php" file.
This function returns if a scale is being used by one sloodle it it has support for grading and scales. Commented code should be modified if necessary. See forum, glossary or journal modules as reference.
Given an object containing all the necessary data, (defined by the form in mod.html) this function will update an existing instance with new data.
Print a detailed representation of what a user has done with a given particular instance of this module, for user activity reports.
Return a small object with summary information about what a user has done with a given particular instance of this module Used for user activity reports.
$return->time = the time they did it $return->info = a short text description
Documentation generated on Mon, 07 Jul 2008 12:32:35 +0100 by phpDocumentor 1.4.0