Moodle PHP Documentation 4.1
Moodle 4.1.11 (Build: 20240610) (c8c84b4af18)
mod_assignment

Namespaces

namespace  mod_assignment\plugininfo
  
 
namespace  mod_assignment\privacy
  
 

Classes

class  backup_assignment_activity_structure_step
 Define all the backup steps that will be used by the backup_assignment_activity_task. More...
 
class  backup_assignment_activity_task
 Provides the steps to perform one complete backup of the Assignment instance. More...
 
class  mod_assignment\plugininfo\assignment
 
class  mod_assignment\privacy\provider
 Implementation of the privacy subsystem plugin provider for mod_assignment. More...
 
class  mod_assignment_generator
 Assignment module data generator class. More...
 
class  mod_assignment_mod_form
 Disabled assignment settings form. More...
 
class  moodle1_assignment_subplugin_handler
 Base class for the assignment subplugin handler Extend this for your own subplugin conversion handling purposes. More...
 
class  moodle1_assignment_unsupported_subplugin_handler
 This class handles subplugins that do not exist or that are not supported. More...
 
class  moodle1_mod_assignment_handler
 Assignment conversion handler. More...
 
class  restore_assignment_activity_structure_step
 Define all the restore steps that will be used by the restore_assignment_activity_task. More...
 
class  restore_assignment_activity_task
 assignment restore task that provides all the settings and steps to perform one complete restore of the activity More...
 

Functions

 assignment_add_instance ($assignment, $mform=null)
 Adds an assignment instance.
 
 assignment_delete_instance ($id)
 Deletes an assignment instance.
 
 assignment_supports ($feature)
 
 xmldb_assignment_install ()
 Code run after the mod_assignment module database tables have been created.
 

Variables

 $capabilities
 
global mod_assignment\privacy::$CFG
 
 $handlers = array()
 
 $logs
 
 $messageproviders
 
 $plugin = 2022111800
 
$plugin component = 'mod_assignment'
 
$plugin cron = 60
 
$plugin version = 2022112800
 

Detailed Description

Function Documentation

◆ assignment_add_instance()

assignment_add_instance ( $assignment,
$mform = null )

Adds an assignment instance.

Only used by generators so we can create old assignments to test the upgrade.

Parameters
stdClass$assignment
mod_assignment_mod_form$mform
Return values
intintance id

◆ assignment_delete_instance()

assignment_delete_instance ( $id)

Deletes an assignment instance.

Parameters
$id

◆ assignment_supports()

assignment_supports ( $feature)
Parameters
string$featureFEATURE_xx constant for requested feature
Return values
mixedTrue if module supports feature, false if not, null if doesn't know or string for the module purpose.

◆ xmldb_assignment_install()

xmldb_assignment_install ( )

Code run after the mod_assignment module database tables have been created.

Disables this plugin for new installs

Return values
bool

Variable Documentation

◆ $handlers

$handlers = array()
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

◆ $logs

$logs
Initial value:
array('module'=>'assignment', 'action'=>'view', 'mtable'=>'assignment', 'field'=>'name'),
array('module'=>'assignment', 'action'=>'add', 'mtable'=>'assignment', 'field'=>'name'),
array('module'=>'assignment', 'action'=>'update', 'mtable'=>'assignment', 'field'=>'name'),
array('module'=>'assignment', 'action'=>'view submission', 'mtable'=>'assignment', 'field'=>'name'),
array('module'=>'assignment', 'action'=>'upload', 'mtable'=>'assignment', 'field'=>'name'),
)
('')  

◆ $messageproviders

$messageproviders
Initial value:
= array (
'assignment_updates' => array (
)
)