JOIN {course_modules} cm ON (cm.module = m.id AND cm.instance = a.id)
ORDER BY a.course, s.assignment";
- $count = $DB->count_records_sql("SELECT COUNT('x') $sqlfrom");
+ $count = $DB->count_records_sql("SELECT COUNT('x') $sqlfrom");
if ($rs = $DB->get_recordset_sql("SELECT s.id, s.userid, s.teacher, s.assignment, a.course, cm.id AS cmid $sqlfrom")) {
$fs = get_file_storage();
$browser = get_file_browser();
-
+
if ($files = $fs->get_area_files($this->context->id, 'assignment_submission', $user->id, "timemodified", false)) {
$countfiles = count($files)." ".get_string("uploadedfiles", "assignment");
foreach ($files as $file) {
/// OTHER STANDARD FUNCTIONS ////////////////////////////////////////////////////////
-/**
+/**
* Code to be executed when a module is installed
- */
+ */
function assignment_install() {
- return true;
+ return true;
}
/**