license_manager
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
Activate the license key stored in config.
Deactivate the current license.
Check status against the API.
No description
No description
No description
No description
Render the HTML with license information.
Details
at line 39
__construct(license_service $service)
Constructor.
at line 48
array
activate()
Activate the license key stored in config.
at line 58
array
deactivate()
Deactivate the current license.
at line 68
array
check_status(bool $force = false)
Check status against the API.
at line 76
array
check_update()
No description
at line 84
array
get_info()
No description
at line 92
array
check_theme_update()
No description
at line 100
bool
get_code_version()
No description
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.