Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | Public Attributes | List of all members
core_completion\api Class Reference

Class containing completion API. More...

Static Public Member Functions

static update_completion_date_event ($cmid, $modulename, $instanceorid, $completionexpectedtime)
 Creates, updates or deletes an event for the expected completion date. More...
 

Public Attributes

string const COMPLETION_EVENT_TYPE_DATE_COMPLETION_EXPECTED = 'expectcompletionon'
 The completion expected on event.
 

Detailed Description

Class containing completion API.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ update_completion_date_event()

static core_completion\api::update_completion_date_event (   $cmid,
  $modulename,
  $instanceorid,
  $completionexpectedtime 
)
static

Creates, updates or deletes an event for the expected completion date.

Parameters
int$cmidThe course module id
string$modulenameThe name of the module (eg. assign, quiz)
stdClass | int$instanceoridThe instance object or ID.
int | null$completionexpectedtimeThe time completion is expected, null if not set
Return values
bool

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