ModuleService
in package
Tags
Table of Contents
Properties
Methods
- __construct() : mixed
- activate() : bool
- enable() : bool
- getById() : Module|null
- getOnlineModuleManager() : OnlineModuleManager
- init() : mixed
- install() : bool
- isInstalled() : bool
- update() : array<string|int, mixed>
Properties
$module
public
Module|null
$module
= null
$moduleId
public
string|null
$moduleId
= null
Originally provided module ID for case when module is not installed yet
Methods
__construct()
public
__construct([string|Module|null $module = null ]) : mixed
Parameters
- $module : string|Module|null = null
-
Module or Module ID
activate()
public
activate() : bool
Tags
Return values
boolenable()
public
enable() : bool
Return values
boolgetById()
public
getById(string $id) : Module|null
Parameters
- $id : string
Return values
Module|nullgetOnlineModuleManager()
public
getOnlineModuleManager() : OnlineModuleManager
Return values
OnlineModuleManagerinit()
public
init([string|Module|null $module = null ]) : mixed
Parameters
- $module : string|Module|null = null
-
Module or Module ID
install()
public
install() : bool
Return values
boolisInstalled()
public
isInstalled() : bool
Return values
boolupdate()
public
update() : array<string|int, mixed>