Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
core_completion\form Namespace Reference

  More...

Functions

 add_completion_elements (string $modname=null, bool $supportviews=false, bool $supportgrades=false, bool $rating=false, ?int $courseid=null)
 Add completion elements to the form.
 
 add_completion_rules ()
 Add completion elements to the form and return the list of element ids.
 
 add_completiongrade_elements (string $modname, bool $rating=false)
 Add completion grade elements to the form.
 
 add_completiongrade_rules ()
 Add completion grading elements to the form and return the list of element ids.
 
 completion_rule_enabled ($data)
 Called during validation.
 
 definition_after_data_completion (?cm_info $cm=null)
 It should be called from the definition_after_data() to setup the completion settings in the form.
 
 get_form ()
 Get the form associated to this class, where the completion elements will be added.
 
 get_suffix ()
 Get the suffix to be added to the completion elements when creating them (for example, 'completion_assign').
 
 set_suffix (string $suffix)
 Set the suffix to be added to the completion elements when creating them (for example, 'completion_assign').
 
 validate_completion (array $data)
 Perform some extra validation for completion settings.
 

Variables

trait form_trait
 

Detailed Description