Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
tiny_premium\manager Class Reference

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.
 

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: