mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-26969 assignment : clarified phpdoc and fixed whitespace.
This commit is contained in:
parent
c5e518d521
commit
90310b1b4f
1 changed files with 2 additions and 2 deletions
|
@ -1823,7 +1823,7 @@ class assignment_base {
|
||||||
* @param int $userid int The id of the user whose submission we want or 0 in which case USER->id is used
|
* @param int $userid int The id of the user whose submission we want or 0 in which case USER->id is used
|
||||||
* @param bool $createnew boolean optional Defaults to false. If set to true a new submission object will be created in the database
|
* @param bool $createnew boolean optional Defaults to false. If set to true a new submission object will be created in the database
|
||||||
* @param bool $teachermodified student submission set if false
|
* @param bool $teachermodified student submission set if false
|
||||||
* @return object|bool The submission or false if $createnew is false.
|
* @return object|bool The submission or false (if $createnew is false and there is no existing submission).
|
||||||
*/
|
*/
|
||||||
function get_submission($userid=0, $createnew=false, $teachermodified=false) {
|
function get_submission($userid=0, $createnew=false, $teachermodified=false) {
|
||||||
global $USER, $DB;
|
global $USER, $DB;
|
||||||
|
@ -1836,7 +1836,7 @@ class assignment_base {
|
||||||
|
|
||||||
if ($submission) {
|
if ($submission) {
|
||||||
return $submission;
|
return $submission;
|
||||||
} else if(!$createnew) {
|
} else if (!$createnew) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$newsubmission = $this->prepare_new_submission($userid, $teachermodified);
|
$newsubmission = $this->prepare_new_submission($userid, $teachermodified);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue