class helper

internal  
 

General helper and utility functions for various common operations.

Methods

static array
custom_array_merge(array $default, array $newarray)

Merges two arrays, giving precedence to non-null values from the new array.

static void
install_or_upgrade_log(string $message, string $type = notification::NOTIFY_SUCCESS)

Logs a message during plugin installation or upgrade process, using Moodle notifications.

Details

at line 39
static array custom_array_merge(array $default, array $newarray)

Merges two arrays, giving precedence to non-null values from the new array.

Parameters

array $default

the base array with default values

array $newarray

the array with new values to be merged

Return Value

array

the resulting merged array

at line 57
static void install_or_upgrade_log(string $message, string $type = notification::NOTIFY_SUCCESS)

Logs a message during plugin installation or upgrade process, using Moodle notifications.

Parameters

string $message

Message to log

string $type

Notification type (defaults to success)

Return Value

void