From: skodak Date: Thu, 1 May 2008 22:36:49 +0000 (+0000) Subject: MDL-14617 removed count course students- yay! X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c5e2d27ee3b38bc408b6a7c605fc3d12b8251bf6;p=moodle.git MDL-14617 removed count course students- yay! --- diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index 8947ba2fd2..a3edb5592f 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -381,25 +381,6 @@ function get_course_students($courseid, $sort='ul.timeaccess', $dir='', $page='' 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