mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-14617 removed count course students- yay!
This commit is contained in:
parent
1b4923215a
commit
c5e2d27ee3
1 changed files with 0 additions and 19 deletions
|
@ -381,25 +381,6 @@ function get_course_students($courseid, $sort='ul.timeaccess', $dir='', $page=''
|
||||||
return $students;
|
return $students;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Counts the students in a given course (or site), or a subset of them
|
|
||||||
*
|
|
||||||
* @param object $course The course in question as a course object.
|
|
||||||
* @param string $search ?
|
|
||||||
* @param string $firstinitial ?
|
|
||||||
* @param string $lastinitial ?
|
|
||||||
* @param ? $group ?
|
|
||||||
* @param string $exceptions ?
|
|
||||||
* @return int
|
|
||||||
* @todo Finish documenting this function
|
|
||||||
*/
|
|
||||||
function count_course_students($course, $search='', $firstinitial='', $lastinitial='', $group=NULL, $exceptions='') {
|
|
||||||
|
|
||||||
if ($students = get_course_students($course->id, '', '', 0, 999999, $firstinitial, $lastinitial, $group, $search, '', $exceptions)) {
|
|
||||||
return count($students);
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns list of all teachers in this course
|
* Returns list of all teachers in this course
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue