Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Namespaces | |
namespace | core_completion\form |
| |
Functions | |
core_completion\form::add_completion_elements (string $modname=null, bool $supportviews=false, bool $supportgrades=false, bool $rating=false, ?int $courseid=null) | |
Add completion elements to the form. | |
core_completion\form::add_completion_rules () | |
Add completion elements to the form and return the list of element ids. | |
core_completion\form::add_completiongrade_elements (string $modname, bool $rating=false) | |
Add completion grade elements to the form. | |
core_completion\form::add_completiongrade_rules () | |
Add completion grading elements to the form and return the list of element ids. | |
core_completion\form::completion_rule_enabled ($data) | |
Called during validation. | |
core_completion\form::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. | |
core_completion\form::get_form () | |
Get the form associated to this class, where the completion elements will be added. | |
core_completion\form::get_suffix () | |
Get the suffix to be added to the completion elements when creating them (for example, 'completion_assign'). | |
core_completion\form::set_suffix (string $suffix) | |
Set the suffix to be added to the completion elements when creating them (for example, 'completion_assign'). | |
core_completion\form::validate_completion (array $data) | |
Perform some extra validation for completion settings. | |
Variables | |
trait | core_completion\form::form_trait |
Completion trait helper, with methods to add completion elements and validate them. | |