Moodle  2.2.1
http://www.collinsharper.com
assignment_offline Class Reference
Inheritance diagram for assignment_offline:
Collaboration diagram for assignment_offline:

Public Member Functions

 assignment_offline ($cmid='staticonly', $assignment=NULL, $cm=NULL, $course=NULL)
 display_lateness ($timesubmitted)
 print_student_answer ($studentid)
 prepare_new_submission ($userid)
 process_feedback ()

Detailed Description

Extend the base assignment class for offline assignments

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


Member Function Documentation

assignment_offline ( cmid = 'staticonly',
assignment = NULL,
cm = NULL,
course = NULL 
)

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

Here is the call graph for this function:

display_lateness ( timesubmitted)

Return a string indicating how late a submission is

Parameters:
$timesubmittedint
Returns:
string

Reimplemented from assignment_base.

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

prepare_new_submission ( userid)

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

print_student_answer ( studentid)

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

For save and next, we need to know the userid to save, and the userid to go We use a new hidden field in the form, and set it to -1. If it's set, we use this as the userid to store

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

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations