hub MDL-19309 new site registration form + course publication + community block

This commit is contained in:
jerome mouneyrac 2010-05-01 05:05:55 +00:00
parent 7b4c6d34b8
commit 07ab0c80ec
36 changed files with 3208 additions and 21 deletions

View file

@ -3412,6 +3412,26 @@ function get_course_by_idnumber ($idnumber) {
return $DB->get_record('course', array('idnumber' => $idnumber));
}
/**
* TODO: Average number of participants (in non-empty courses)
* @return integer
*/
function average_number_of_participants() {
global $DB;
return 0;
return $avg;
}
/**
* TODO: Average number of course modules (in non-empty courses)
* @return integer
*/
function average_number_of_courses_modules() {
global $DB;
return 0;
return $avg;
}
/**
* This class pertains to course requests and contains methods associated with
* create, approving, and removing course requests.