Documentation

pm_Extension
in package

Extension wrapper

Tags
since
17.8

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
since
18.0.44
Return values
mixed

disable()

Disable the extension

public disable() : void
Tags
throws
pm_Exception
Return values
void

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

isActive()

Retrieve extension activity state

public isActive() : bool
Return values
bool

uninstall()

Uninstall the extension

public uninstall() : void
Tags
throws
pm_Exception
Return values
void

Search results