/**
* Should not output anything - return the result as a string so it can be consumed by webservices.
*
- * @param stdClass $submissionorgrade assign_submission or assign_grade
+ * @param stdClass $submissionorgrade assign_submission or assign_grade
* For submission plugins this is the submission data, for feedback plugins it is the grade data
* @return string - return a string representation of the submission in full
*/
/**
* Should not output anything - return the result as a string so it can be consumed by webservices.
*
- * @param stdClass $submissionorgrade assign_submission or assign_grade
+ * @param stdClass $submissionorgrade assign_submission or assign_grade
* For submission plugins this is the submission data, for feedback plugins it is the grade data
* @param bool $showviewlink Modifed to return whether or not to show a link to the full submission/feedback
* @return string - return a string representation of the submission in full
/**
* Produce a list of files suitable for export that represent this feedback or submission
*
- * @param stdClass $submissionorgrade assign_submission or assign_grade
+ * @param stdClass $submissionorgrade assign_submission or assign_grade
* For submission plugins this is the submission data, for feedback plugins it is the grade data
* @return array - return an array of files indexed by filename
*/
/**
* Formatting for log info
- *
+ *
* @param stdClass $submissionorgrade assign_submission or assign_grade The new submission or grade
* @return string
*/
}
return '';
}
-
+
/**
* Return true if this plugin can upgrade an old Moodle 2.2 assignment of this type
* and version.
}
return false;
}
-
+
/**
* Upgrade the settings from the old assignment to the new plugin based one
*
/**
* Get form elements for grading form
*
- * @param stdClass $grade
+ * @param stdClass $grade
* @param MoodleQuickForm $mform
* @param stdClass $data
* @return bool true if elements were added to the form
public function get_file_areas() {
return array(ASSIGN_FILEAREA_FEEDBACK_FILES=>$this->get_name());
}
-
+
/**
* Return true if this plugin can upgrade an old Moodle 2.2 assignment of this type
* and version.
}
return false;
}
-
+
/**
* Upgrade the settings from the old assignment to the new plugin based one
*
$fields = user_picture::fields('u') . ', u.id as userid, u.firstname as firstname, u.lastname as lastname, ';
$fields .= 's.status as status, s.id as submissionid, s.timecreated as firstsubmission, s.timemodified as timesubmitted, ';
$fields .= 'g.id as gradeid, g.grade as grade, g.timemodified as timemarked, g.timecreated as firstmarked, g.mailed as mailed, g.locked as locked';
- $from = '{user} u LEFT JOIN {assign_submission} s ON u.id = s.userid AND s.assignment = ?' .
+ $from = '{user} u LEFT JOIN {assign_submission} s ON u.id = s.userid AND s.assignment = ?' .
' LEFT JOIN {assign_grades} g ON u.id = g.userid AND g.assignment = ?';
$userparams = array();
$userparams[] = '?';
$params[] = $userid;
}
-
+
$where = 'u.id IN (' . implode(',', $userparams) . ')';
if ($filter == ASSIGN_FILTER_SUBMITTED) {
$where .= ' AND s.timecreated > 0 ';
* This is used by the recent activity block
* @param mixed $course the course to print activity for
* @param bool $viewfullnames boolean to determine whether to show full names or not
- * @param int $timestart the time the rendering started
+ * @param int $timestart the time the rendering started
*/
function assign_print_recent_activity($course, $viewfullnames, $timestart) {
global $CFG, $USER, $DB, $OUTPUT;
* Checks if a scale is being used by an assignment
*
* This is used by the backup code to decide whether to back up a scale
- * @param int $assignmentid
+ * @param int $assignmentid
* @param int $scaleid
* @return boolean True if the scale is used by the assignment
*/
* Checks if scale is being used by any instance of assignment
*
* This is used to find out if scale used anywhere
- * @param int $scaleid
+ * @param int $scaleid
* @return boolean True if the scale is used by any assignment
*/
function assign_scale_used_anywhere($scaleid) {
/**
* Print the grade information for the assignment for this user
- *
+ *
* @param stdClass $course
* @param stdClass $user
* @param stdClass $coursemodule
/**
* Return a grade in user-friendly form, whether it's a scale or not
*
- * @param mixed $grade int|null
+ * @param mixed $grade int|null
* @return string User-friendly representation of grade
*/
public function display_grade($grade) {
/**
* revert to draft
* Uses url parameter userid
- *
+ *
* @param int $userid
* @return void
*/
/**
* Constructor
* @param string $notifications - Any mesages to display
- * @param int $coursemoduleid
+ * @param int $coursemoduleid
*/
public function __construct($notifications, $coursemoduleid) {
$this->notifications = $notifications;