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

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'

Detailed Description

Extend the base assignment class for assignments where you upload a single file

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


Member Function Documentation

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

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

Here is the call graph for this function:

creates a zip of all assignment submissions and sends a zip to the browser

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Reimplemented from assignment_base.

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

portfolio_get_sha1 ( caller)

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

Here is the call graph for this function:

portfolio_load_data ( caller)

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

Here is the call graph for this function:

portfolio_prepare_package ( exporter,
user 
)

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

Here is the call graph for this function:

preprocess_submission ( &$  submission)

Preprocess submission before grading

Called by display_submission() The default type does nothing here.

Parameters:
object$submissionThe submission object

Reimplemented from assignment_base.

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

Here is the call graph for this function:

print_student_answer ( userid,
return = false 
)

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

Here is the call graph for this function:

print_user_files ( userid,
return = false 
)

Produces a list of links to the files uploaded by a user

Parameters:
$useridint optional id of the user. If 0 then $USER->id is used.
$returnboolean optional defaults to false. If true the list is returned rather than printed
Returns:
string optional

Decide what to count

Reimplemented from assignment_base.

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

Here is the call graph for this function:

send_file ( filearea,
args 
)
Parameters:
string$filearea
array$args
Returns:
bool

Reimplemented from assignment_base.

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

Here is the call graph for this function:

setup_elements ( &$  mform)
Todo:
Document this function

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.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

$filearea = 'submission'

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


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