Mass Exam Marker Plugin
A Moodle plugin to help mark massive exams.
 All Data Structures Namespaces Files Functions Variables
assign_portfolio_caller Class Reference
Inheritance diagram for assign_portfolio_caller:

Public Member Functions

 __construct ($callbackargs)
 
 load_data ()
 
 prepare_package ()
 
 get_sha1 ()
 
 expected_time ()
 
 check_permissions ()
 

Static Public Member Functions

static expected_callbackargs ()
 
static display_name ()
 
static base_supported_formats ()
 

Protected Member Functions

 get_submission_plugin ()
 

Protected Attributes

 $sid
 
 $component
 
 $area
 
 $fileid
 
 $cmid
 
 $plugin
 
 $editor
 

Constructor & Destructor Documentation

__construct (   $callbackargs)

The constructor.

Parameters
array$callbackargs

Member Function Documentation

static base_supported_formats ( )
static

Return array of formats supported by this portfolio call back.

Returns
array
check_permissions ( )

Checking the permissions.

Returns
bool
static display_name ( )
static

Display a module name.

Returns
string
static expected_callbackargs ( )
static

Callback arg for a single file export.

expected_time ( )

Calculate the time to transfer either a single file or a list of files based on the data set by load_data.

Returns
int
get_sha1 ( )

Calculate a sha1 has of either a single file or a list of files based on the data set by load_data.

Returns
string
get_submission_plugin ( )
protected

Fetch the plugin by its type.

Returns
assign_submission_plugin
load_data ( )

Load data needed for the portfolio export.

If the assignment type implements portfolio_load_data(), the processing is delegated to it. Otherwise, the caller must provide either fileid (to export single file) or submissionid and filearea (to export all data attached to the given submission file area) via callback arguments.

Exceptions
portfolio_caller_exception
prepare_package ( )

Prepares the package up before control is passed to the portfolio plugin.

Exceptions
portfolio_caller_exception
Returns
mixed

Field Documentation

$area
protected
$cmid
protected
$component
protected
$editor
protected
$fileid
protected
$plugin
protected
$sid
protected

The documentation for this class was generated from the following file: