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 39
__construct(license_service $service)

Constructor.

Parameters

license_service $service

at line 48
array activate()

Activate the license key stored in config.

Return Value

array

Exceptions

JsonException

at line 58
array deactivate()

Deactivate the current license.

Return Value

array

Exceptions

JsonException

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

Check status against the API.

Parameters

bool $force

Return Value

array

Exceptions

JsonException

at line 76
array check_update()

No description

Return Value

array

Exceptions

JsonException

at line 84
array get_info()

No description

Return Value

array

Exceptions

JsonException

at line 92
array check_theme_update()

No description

Return Value

array

Exceptions

JsonException

at line 100
bool get_code_version()

No description

Return Value

bool

Exceptions

JsonException

at line 111
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