PluginManagerShutdownFunction
in package
Used as shutdown function during plugin loading, to turn off plugins that causes troubles.
Tags
Table of Contents
Properties
- $currentPluginName : string
- $enabled : bool
Methods
- __invoke() : void
- Magic method to let object be called as function.
- disable() : void
- Disable object.
- enable() : void
- Enable object.
- isEnabled() : bool
- setPluginName() : mixed
- showError() : void
- Echo error message.
Properties
$currentPluginName
protected
string
$currentPluginName
$enabled
protected
bool
$enabled
= false
Methods
__invoke()
Magic method to let object be called as function.
public
__invoke() : void
disable()
Disable object.
public
disable() : void
enable()
Enable object.
public
enable() : void
The object should ONLY be enabled during the plugin load phase.
isEnabled()
public
isEnabled() : bool
Return values
boolsetPluginName()
public
setPluginName(mixed $name) : mixed
Parameters
- $name : mixed
showError()
Echo error message.
protected
showError(array<string|int, mixed> $data) : void
Parameters
- $data : array<string|int, mixed>