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


Public Member Functions | |
| assignment_online ($cmid='staticonly', $assignment=NULL, $cm=NULL, $course=NULL) | |
| view () | |
| view_dates () | |
| update_submission ($data) | |
| print_student_answer ($userid, $return=false) | |
| print_user_files ($userid, $return=false) | |
| preprocess_submission (&$submission) | |
| setup_elements (&$mform) | |
| portfolio_exportable () | |
| portfolio_load_data ($caller) | |
| portfolio_get_sha1 ($caller) | |
| portfolio_prepare_package ($exporter, $user) | |
| extend_settings_navigation ($node) | |
| send_file ($filearea, $args) | |
| download_submissions () | |
Data Fields | |
| $filearea = 'submission' | |
Extend the base assignment class for assignments where you upload a single file
Definition at line 11 of file assignment.class.php.
| assignment_online | ( | $ | cmid = 'staticonly', |
| $ | assignment = NULL, |
||
| $ | cm = NULL, |
||
| $ | course = NULL |
||
| ) |
creates a zip of all assignment submissions and sends a zip to the browser
Definition at line 393 of file assignment.class.php.

| extend_settings_navigation | ( | $ | node | ) |
Reimplemented from assignment_base.
Definition at line 281 of file assignment.class.php.
| portfolio_get_sha1 | ( | $ | caller | ) |
| portfolio_load_data | ( | $ | caller | ) |
| portfolio_prepare_package | ( | $ | exporter, |
| $ | user | ||
| ) |
| preprocess_submission | ( | &$ | submission | ) |
Preprocess submission before grading
Called by display_submission() The default type does nothing here.
| object | $submission | The submission object |
Reimplemented from assignment_base.
Definition at line 248 of file assignment.class.php.

| print_student_answer | ( | $ | userid, |
| $ | return = false |
||
| ) |
| print_user_files | ( | $ | userid, |
| $ | 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 |
Decide what to count
Reimplemented from assignment_base.
Definition at line 217 of file assignment.class.php.

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

| setup_elements | ( | &$ | mform | ) |
Reimplemented from assignment_base.
Definition at line 262 of file assignment.class.php.
| update_submission | ( | $ | data | ) |
Definition at line 181 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
print header, etc. and display form if needed
Reimplemented from assignment_base.
Definition at line 20 of file assignment.class.php.

| view_dates | ( | ) |
Display the assignment dates
Prints the assignment start and end dates in a box. This will be suitable for most assignment types
Decide what to count
Reimplemented from assignment_base.
Definition at line 149 of file assignment.class.php.


| $filearea = 'submission' |
Definition at line 13 of file assignment.class.php.