class license_manager implements license_manager_interface

License Manager.

Domain Service responsible for handling License state and UI presentation. Delegates low-level API calls to infrastructure\service\license_service.

Methods

__construct(license_service $service)

Constructor.

array
activate()

Activate the license key stored in config.

array
deactivate()

Deactivate the current license.

array
check_status(bool $force = false)

Check status against the API.

array
check_update()

No description

array
get_info()

No description

array
check_theme_update()

No description

bool
get_code_version()

No description

string
render_info()

Render the HTML with license information.

Details

at line 38
__construct(license_service $service)

Constructor.

Parameters

license_service $service

at line 47
array activate()

Activate the license key stored in config.

Return Value

array

Exceptions

JsonException

at line 57
array deactivate()

Deactivate the current license.

Return Value

array

Exceptions

JsonException

at line 67
array check_status(bool $force = false)

Check status against the API.

Parameters

bool $force

Return Value

array

Exceptions

JsonException

at line 75
array check_update()

No description

Return Value

array

Exceptions

JsonException

at line 83
array get_info()

No description

Return Value

array

Exceptions

JsonException

at line 91
array check_theme_update()

No description

Return Value

array

Exceptions

JsonException

at line 99
bool get_code_version()

No description

Return Value

bool

Exceptions

JsonException

at line 110
string render_info()

Render the HTML with license information.

Keeps formatting responsibility within the manager class, reducing the code in lib.php to the minimum required by Moodle.

Return Value

string