HumHub Documentation (unofficial)

ModuleService
in package

Tags
since
1.15

Table of Contents

Properties

$module  : Module|null
$moduleId  : string|null

Methods

__construct()  : mixed
activate()  : bool
enable()  : bool
getById()  : Module|null
getOnlineModuleManager()  : OnlineModuleManager
init()  : mixed
install()  : bool
isInstalled()  : bool
update()  : array<string|int, mixed>

Properties

$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
deprecated

since v1.16; use static::enable()

see
static::enable()
Return values
bool

init()

public init([string|Module|null $module = null ]) : mixed
Parameters
$module : string|Module|null = null

Module or Module ID

isInstalled()

public isInstalled() : bool
Return values
bool

update()

public update() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results