interface extension_interface

Contract that all MIDDAG extensions must implement.

Extensions act as micro-plugins within the MIDDAG ecosystem.

Methods

string
get_name()

Get the unique machine name of the extension (e.g., 'certificate', 'payment').

string
get_label()

Get the human-readable label.

string
get_version()

Get the current version of the extension.

array
get_dependencies()

Get the list of dependencies (slugs) required by this extension.

extension_group
get_group()

Get the group classification for this extension.

void
register(ContainerInterface $container)

Register services into the DI container during Kernel boot.

void
boot()

Execution logic called after the Kernel has compiled.

bool
is_enabled()

Check if the extension is enabled in the database/config.

bool
is_core()

Check if this is the core system extension.

bool
is_enabled_internally()

Internal check for hardcoded enabling/disabling logic.

bool
is_available()

Returns true if the resource is technically available (dependencies met).

string
get_title()

Return the extension title (localized).

string
get_description()

Return the extension description (localized).

array
get_extension_badges()

Return UI badges.

moodle_url
get_config_page_url()

Return configuration URL.

bool
has_moodle_settings()

Does this extension provide settings pages?

array
get_moodle_events()

Get the list of Moodle events this extension is interested in.

Details

at line 36
string get_name()

Get the unique machine name of the extension (e.g., 'certificate', 'payment').

Return Value

string

at line 41
string get_label()

Get the human-readable label.

Return Value

string

at line 46
string get_version()

Get the current version of the extension.

Return Value

string

at line 53
array get_dependencies()

Get the list of dependencies (slugs) required by this extension.

Return Value

array

at line 58
extension_group get_group()

Get the group classification for this extension.

Return Value

extension_group

at line 64
void register(ContainerInterface $container)

Register services into the DI container during Kernel boot.

This replaces the old 'bootstrap.php' logic partially.

Parameters

ContainerInterface $container

Return Value

void

at line 70
void boot()

Execution logic called after the Kernel has compiled.

Used to register hooks, event listeners, etc.

Return Value

void

at line 75
bool is_enabled()

Check if the extension is enabled in the database/config.

Return Value

bool

at line 80
bool is_core()

Check if this is the core system extension.

Return Value

bool

at line 85
bool is_enabled_internally()

Internal check for hardcoded enabling/disabling logic.

Return Value

bool

at line 90
bool is_available()

Returns true if the resource is technically available (dependencies met).

Return Value

bool

at line 95
string get_title()

Return the extension title (localized).

Return Value

string

at line 100
string get_description()

Return the extension description (localized).

Return Value

string

at line 107
array get_extension_badges()

Return UI badges.

Return Value

array

at line 112
moodle_url get_config_page_url()

Return configuration URL.

Return Value

moodle_url

at line 117
bool has_moodle_settings()

Does this extension provide settings pages?

Return Value

bool

at line 124
array get_moodle_events()

Get the list of Moodle events this extension is interested in.

Return Value

array

list of event class names