Permalink
Browse files

MDL-31270: mod_assign fix whitespace issues

  • Loading branch information...
danpoltawski committed May 3, 2012
1 parent bbd0e54 commit 9682626eec09a6b19a5fa89c5b2d8b27a4bcb9d4
@@ -235,7 +235,7 @@ public function get_form_elements($submissionorgrade, MoodleQuickForm $mform, st
/**
* 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
*/
@@ -339,7 +339,7 @@ public function view(stdClass $submissionorgrade) {
/**
* 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
@@ -363,7 +363,7 @@ public function get_editor_text($name, $submissionid) {
/**
* 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
*/
@@ -425,7 +425,7 @@ public function upgrade(context $oldcontext, stdClass $oldassignment, stdClass $
/**
* Formatting for log info
*
*
* @param stdClass $submissionorgrade assign_submission or assign_grade The new submission or grade
* @return string
*/
@@ -131,7 +131,7 @@ public function view(stdClass $grade) {
}
return '';
}
/**
* Return true if this plugin can upgrade an old Moodle 2.2 assignment of this type
* and version.
@@ -147,7 +147,7 @@ public function can_upgrade($type, $version) {
}
return false;
}
/**
* Upgrade the settings from the old assignment to the new plugin based one
*
@@ -76,7 +76,7 @@ private function get_file_options() {
/**
* 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
@@ -196,7 +196,7 @@ public function is_empty(stdClass $grade) {
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.
@@ -212,7 +212,7 @@ public function can_upgrade($type, $version) {
}
return false;
}
/**
* Upgrade the settings from the old assignment to the new plugin based one
*
@@ -87,15 +87,15 @@ function __construct(assign $assignment, $perpage, $filter, $rowoffset=0) {
$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();
foreach ($users as $userid) {
$userparams[] = '?';
$params[] = $userid;
}
$where = 'u.id IN (' . implode(',', $userparams) . ')';
if ($filter == ASSIGN_FILTER_SUBMITTED) {
$where .= ' AND s.timecreated > 0 ';
View
@@ -325,7 +325,7 @@ function assign_print_overview($courses, &$htmlarray) {
* 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;
@@ -612,7 +612,7 @@ function assign_print_recent_mod_activity($activity, $courseid, $detail, $modnam
* 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
*/
@@ -633,7 +633,7 @@ function assign_scale_used($assignmentid, $scaleid) {
* 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) {
@@ -901,7 +901,7 @@ function assign_user_complete($course, $user, $coursemodule, $assign) {
/**
* Print the grade information for the assignment for this user
*
*
* @param stdClass $course
* @param stdClass $user
* @param stdClass $coursemodule
View
@@ -866,7 +866,7 @@ public function get_course() {
/**
* 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) {
@@ -2619,7 +2619,7 @@ public function add_submission_form_elements(MoodleQuickForm $mform, stdClass $d
/**
* revert to draft
* Uses url parameter userid
*
*
* @param int $userid
* @return void
*/
@@ -39,7 +39,7 @@ class assign_submit_for_grading_page implements renderable {
/**
* Constructor
* @param string $notifications - Any mesages to display
* @param int $coursemoduleid
* @param int $coursemoduleid
*/
public function __construct($notifications, $coursemoduleid) {
$this->notifications = $notifications;

0 comments on commit 9682626

Please sign in to comment.