/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.
Note: this function is not yet used by Sloodle. Will hopefully be used in version 0.3!
Function to be run periodically according to the moodle cron This function searches for things that need to be done, such as sending out mail, toggling flags etc ...
Given an ID of an instance of this module, this function will permanently delete the instance and any data that depends on it.
Note: this function is not yet used by Sloodle. Will hopefully be used in version 0.3!
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.
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.
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.
Note: this function is not yet used by Sloodle. Will hopefully be used in version 0.3!
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 Tue, 04 Mar 2008 15:08:34 +0000 by phpDocumentor 1.4.0