Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
core_question\local\bank\helper Class Reference

Class helper. More...

Static Public Member Functions

static require_plugin_enabled (string $pluginname)
 Check the status of a plugin and throw exception if not enabled and called manually.
 

Detailed Description

Class helper.

Author
Safat Shahin safat.nosp@m.shah.nosp@m.in@ca.nosp@m.taly.nosp@m.st-au.nosp@m..net
License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ require_plugin_enabled()

static core_question\local\bank\helper::require_plugin_enabled ( string $pluginname)
static

Check the status of a plugin and throw exception if not enabled and called manually.

Any action plugin having a php script, should call this function for a safer enable/disable implementation.

Parameters
string$pluginname
Return values
void

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