|
Moodle
2.2.1
http://www.collinsharper.com
|


Extend the base assignment class for assignments where you upload a single file
Definition at line 36 of file assignment.class.php.
| assignment_upload | ( | $ | cmid = 'staticonly', |
| $ | assignment = NULL, |
||
| $ | cm = NULL, |
||
| $ | course = NULL |
||
| ) |
| can_delete_files | ( | $ | submission | ) |
Definition at line 895 of file assignment.class.php.


| can_finalize | ( | $ | submission | ) |
Definition at line 955 of file assignment.class.php.


Definition at line 887 of file assignment.class.php.


| can_unfinalize | ( | $ | submission | ) |
Definition at line 937 of file assignment.class.php.


| can_update_notes | ( | $ | submission | ) |
Definition at line 986 of file assignment.class.php.


| can_upload_file | ( | $ | submission | ) |
Definition at line 874 of file assignment.class.php.


| count_responsefiles | ( | $ | userid | ) |
Definition at line 1004 of file assignment.class.php.


| delete | ( | ) |
Empty method stub for all delete actions.
Reimplemented from assignment_base.
Definition at line 761 of file assignment.class.php.

| delete_file | ( | ) |
Definition at line 813 of file assignment.class.php.


Definition at line 775 of file assignment.class.php.


Return true if var3 == hide description till available day
Reimplemented from assignment_base.
Definition at line 281 of file assignment.class.php.
creates a zip of all assignment submissions and sends a zip to the browser
Definition at line 1116 of file assignment.class.php.

| drafts_tracked | ( | ) |
| extend_settings_navigation | ( | $ | node | ) |
| finalize | ( | $ | forcemode = null | ) |
Definition at line 644 of file assignment.class.php.


| finalizeclose | ( | ) |
Definition at line 702 of file assignment.class.php.


| is_finalized | ( | $ | submission | ) |
Returns submission status
| object | $submission | - may be empty |
Definition at line 922 of file assignment.class.php.


| is_submitted_with_required_data | ( | $ | submission | ) |
Check the given submission is complete. Preliminary rows are often created in the assignment_submissions table before a submission actually takes place. This function checks to see if the given submission has actually been submitted.
| stdClass | $submission | The submission we want to check for completion |
Reimplemented from assignment_base.
Definition at line 1164 of file assignment.class.php.
| notes_allowed | ( | ) |
Reimplemented from assignment_base.
Definition at line 1056 of file assignment.class.php.
| print_responsefiles | ( | $ | userid, |
| $ | return = false |
||
| ) |
Definition at line 399 of file assignment.class.php.


| print_student_answer | ( | $ | userid, |
| $ | return = false |
||
| ) |
| print_user_files | ( | $ | userid = 0, |
| $ | return = false |
||
| ) |
Produces a list of links to the files uploaded by a user
| $userid | int optional id of the user. If 0 then $USER->id is used. |
| $return | boolean optional defaults to false. If true the list is returned rather than printed |
Reimplemented from assignment_base.
Definition at line 321 of file assignment.class.php.


| process_feedback | ( | ) |
| send_file | ( | $ | filearea, |
| $ | args | ||
| ) |
| string | $filearea | |
| array | $args |
Reimplemented from assignment_base.
Definition at line 594 of file assignment.class.php.

| setup_elements | ( | &$ | mform | ) |
Reimplemented from assignment_base.
Definition at line 1014 of file assignment.class.php.

| submissions | ( | $ | mode | ) |
Top-level function for handling of submissions called by submissions.php
This is for handling the teacher interaction with the grading interface This should be suitable for most assignment types.
object
| string | $mode | Specifies the kind of teacher interaction taking place |
The main switch is changed to facilitate 1) Batch fast grading 2) Skip to the next one on the popup 3) Save and Skip to the next one on the popup
do the fast grading stuff - this process should work for all 3 subclasses
We are in pop up. save the current one and go to the next one.
We are currently in pop up, but we want to skip to next one without saving. This turns out to be similar to a single case The URL used is for the next submission.
Reimplemented from assignment_base.
Definition at line 374 of file assignment.class.php.

| unfinalize | ( | $ | forcemode = null | ) |
Definition at line 729 of file assignment.class.php.


| upload | ( | $ | mform = null, |
| $ | filemanager_options = null |
||
| ) |
Upload files upload_file function requires moodle form instance and file manager options
| object | $mform | |
| array | $options |
Definition at line 432 of file assignment.class.php.

| upload_file | ( | $ | mform, |
| $ | options | ||
| ) |
Definition at line 540 of file assignment.class.php.


| upload_notes | ( | ) |
show notes edit form
Definition at line 457 of file assignment.class.php.


| upload_responsefile | ( | $ | mform, |
| $ | options | ||
| ) |
Definition at line 515 of file assignment.class.php.


| view | ( | ) |
Display the assignment, used by view.php
This in turn calls the methods producing individual parts of the page
Reimplemented from assignment_base.
Definition at line 43 of file assignment.class.php.

| view_feedback | ( | $ | submission = NULL | ) |
Display the feedback to the student
This default method prints the teacher picture and name, date when marked, grade and teacher submissioncomment. If advanced grading is used the method render_grade from the advanced grading controller is called to display the grade.
object object object
| object | $submission | The submission object or NULL in which case it will be loaded |
Get submission for this assignment
Nothing to show, so print nothing
We need the teacher info
Print the feedback
Get submission for this assignment
Nothing to show yet
We need the teacher info
Print the feedback
Reimplemented from assignment_base.
Definition at line 104 of file assignment.class.php.


Definition at line 243 of file assignment.class.php.


| view_notes | ( | ) |
Definition at line 226 of file assignment.class.php.


| view_upload_form | ( | ) |
Definition at line 200 of file assignment.class.php.

