Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-35687: Remove unused function get_all_submissions in Assignment.

  • Loading branch information...
commit 70e8537870596dc165ac19d79d6fef3910afe9a7 1 parent 695dee4
Damyon Wiese authored
Showing with 0 additions and 26 deletions.
  1. +0 −26 mod/assign/locallib.php
View
26 mod/assign/locallib.php
@@ -1163,32 +1163,6 @@ private function get_userid_for_row($num, $last) {
}
/**
- * Return all assignment submissions by ENROLLED students (even empty)
- *
- * @param string $sort optional field names for the ORDER BY in the sql query
- * @param string $dir optional specifying the sort direction, defaults to DESC
- * @return array The submission objects indexed by id
- */
- private function get_all_submissions( $sort="", $dir="DESC") {
- global $CFG, $DB;
-
- if ($sort == "lastname" or $sort == "firstname") {
- $sort = "u.$sort $dir";
- } else if (empty($sort)) {
- $sort = "a.timemodified DESC";
- } else {
- $sort = "a.$sort $dir";
- }
-
- return $DB->get_records_sql("SELECT a.*
- FROM {assign_submission} a, {user} u
- WHERE u.id = a.userid
- AND a.assignment = ?
- ORDER BY $sort", array($this->get_instance()->id));
-
- }
-
- /**
* Generate zip file from array of given files
*
* @param array $filesforzipping - array of files to pass into archive_to_pathname - this array is indexed by the final file name and each element in the array is an instance of a stored_file object
Please sign in to comment.
Something went wrong with that request. Please try again.