pm_Extension
in package
Extension wrapper
Tags
Table of Contents
- callHook() : mixed
- Call specified hook for the extension
- disable() : void
- Disable the extension
- enable() : void
- Enable the extension
- getById() : pm_Extension
- Get extension by identifier
- getExtensions() : array<string|int, pm_Extension>
- Retrieve all installed extensions
- getId() : int
- Retrieve extension id
- getName() : string
- Retrieve extension name
- getRelease() : string
- Retrieve extension release
- getVersion() : string
- Retrieve extension version
- installByFile() : pm_Extension
- Install extension by file
- installById() : pm_Extension
- Install extension by identifier
- installByUrl() : pm_Extension
- Install extension by URL
- isActive() : bool
- Retrieve extension activity state
- uninstall() : void
- Uninstall the extension
Methods
callHook()
Call specified hook for the extension
public
callHook(string $hook, callable $callback) : mixed
Parameters
- $hook : string
- $callback : callable
Tags
Return values
mixed —disable()
Disable the extension
public
disable() : void
Tags
Return values
void —enable()
Enable the extension
public
enable() : void
Tags
Return values
void —getById()
Get extension by identifier
public
static getById(string $id) : pm_Extension
Parameters
- $id : string
Return values
pm_Extension —getExtensions()
Retrieve all installed extensions
public
static getExtensions() : array<string|int, pm_Extension>
Return values
array<string|int, pm_Extension> —getId()
Retrieve extension id
public
getId() : int
Return values
int —getName()
Retrieve extension name
public
getName() : string
Return values
string —getRelease()
Retrieve extension release
public
getRelease() : string
Return values
string —getVersion()
Retrieve extension version
public
getVersion() : string
Return values
string —installByFile()
Install extension by file
public
static installByFile(string $file) : pm_Extension
Parameters
- $file : string
Tags
Return values
pm_Extension —installById()
Install extension by identifier
public
static installById(string $id) : pm_Extension
Parameters
- $id : string
Tags
Return values
pm_Extension —installByUrl()
Install extension by URL
public
static installByUrl(string $url) : pm_Extension
Parameters
- $url : string
Tags
Return values
pm_Extension —isActive()
Retrieve extension activity state
public
isActive() : bool
Return values
bool —uninstall()
Uninstall the extension
public
uninstall() : void