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

Public Member Functions

 assignment_upload ($cmid='staticonly', $assignment=NULL, $cm=NULL, $course=NULL)
 view ()
 view_feedback ($submission=NULL)
 view_upload_form ()
 view_notes ()
 view_final_submission ()
 description_is_hidden ()
 print_student_answer ($userid, $return=false)
 print_user_files ($userid=0, $return=false)
 submissions ($mode)
 process_feedback ()
 print_responsefiles ($userid, $return=false)
 upload ($mform=null, $filemanager_options=null)
 upload_notes ()
 upload_responsefile ($mform, $options)
 upload_file ($mform, $options)
 send_file ($filearea, $args)
 finalize ($forcemode=null)
 finalizeclose ()
 unfinalize ($forcemode=null)
 delete ()
 delete_responsefile ()
 delete_file ()
 can_upload_file ($submission)
 can_manage_responsefiles ()
 can_delete_files ($submission)
 drafts_tracked ()
 is_finalized ($submission)
 can_unfinalize ($submission)
 can_finalize ($submission)
 can_update_notes ($submission)
 notes_allowed ()
 count_responsefiles ($userid)
 setup_elements (&$mform)
 portfolio_exportable ()
 extend_settings_navigation ($node)
 download_submissions ()
 is_submitted_with_required_data ($submission)

Detailed Description

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

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


Member Function Documentation

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

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

Here is the call graph for this function:

can_delete_files ( submission)

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

Here is the call graph for this function:

Here is the caller graph for this function:

can_finalize ( submission)

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

can_unfinalize ( submission)

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

Here is the call graph for this function:

Here is the caller graph for this function:

can_update_notes ( submission)

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

Here is the call graph for this function:

Here is the caller graph for this function:

can_upload_file ( submission)

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

Here is the call graph for this function:

Here is the caller graph for this function:

count_responsefiles ( userid)

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

Here is the call graph for this function:

Here is the caller graph for this function:

delete ( )

Empty method stub for all delete actions.

Reimplemented from assignment_base.

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

Here is the call graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

Return true if var3 == hide description till available day

Returns:
boolean

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.

Here is the call graph for this function:

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

Here is the caller graph for this function:

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

Here is the call graph for this function:

finalize ( forcemode = null)

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

is_finalized ( submission)

Returns submission status

Parameters:
object$submission- may be empty
Returns:
string submission state - empty, ASSIGNMENT_STATUS_SUBMITTED or ASSIGNMENT_STATUS_CLOSED

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

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
stdClass$submissionThe submission we want to check for completion
Returns:
bool Indicates if the submission was found to be complete

Reimplemented from assignment_base.

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

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

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Here is the caller graph for this function:

print_student_answer ( userid,
return = false 
)

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

Here is the call graph for this function:

print_user_files ( userid = 0,
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

Reimplemented from assignment_base.

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

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 389 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 594 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 1014 of file assignment.class.php.

Here is the call graph for this function:

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

Parameters:
string$modeSpecifies 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.

Here is the call graph for this function:

unfinalize ( forcemode = null)

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

Here is the call graph for this function:

Here is the caller graph for this function:

upload ( mform = null,
filemanager_options = null 
)

Upload files upload_file function requires moodle form instance and file manager options

Parameters:
object$mform
array$options

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

Here is the call graph for this function:

upload_file ( mform,
options 
)

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

Here is the call graph for this function:

Here is the caller graph for this function:

show notes edit form

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

Here is the call graph for this function:

Here is the caller graph for this function:

upload_responsefile ( mform,
options 
)

Definition at line 515 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

Reimplemented from assignment_base.

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

Here is the call graph for this function:

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

Parameters:
object$submissionThe 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.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:


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