mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
hub MDL-19309 new site registration form + course publication + community block
This commit is contained in:
parent
7b4c6d34b8
commit
07ab0c80ec
36 changed files with 3208 additions and 21 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue