Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
tiny_premium\manager Class Reference

Tiny Premium manager. More...

Static Public Member Functions

static get_enabled_plugins ()
 Get enabled Tiny Premium plugins.
 
static get_plugins ()
 Get all Tiny Premium plugins currently supported.
 
static is_plugin_enabled (string $plugin)
 Check if a Tiny Premium plugin is enabled in config.
 
static set_plugin_config (array $data, string $plugin)
 Set a new value for a Tiny Premium plugin config.
 

Detailed Description

Tiny Premium manager.

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

Member Function Documentation

◆ get_enabled_plugins()

static tiny_premium\manager::get_enabled_plugins ( )
static

Get enabled Tiny Premium plugins.

Return values
arrayThe array of enabled plugins.

◆ get_plugins()

static tiny_premium\manager::get_plugins ( )
static

Get all Tiny Premium plugins currently supported.

The plugin identifiers are taken from Tiny Cloud (https://www.tiny.cloud/docs/tinymce/6/plugins/#premium-plugins).

Return values
arrayThe array of plugins.

◆ is_plugin_enabled()

static tiny_premium\manager::is_plugin_enabled ( string $plugin)
static

Check if a Tiny Premium plugin is enabled in config.

Parameters
string$pluginThe plugin to check.
Return values
boolReturn true if enabled.

◆ set_plugin_config()

static tiny_premium\manager::set_plugin_config ( array $data,
string $plugin )
static

Set a new value for a Tiny Premium plugin config.

Parameters
array$dataThe data to set.
string$pluginThe plugin to use.

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