Documentation

PluginReceiver

This trait is used via Base trait and allows to consume the prefix filled but the UtilsProvider in your plugin. That allows you to dynamically get plugin data within your composer package.

Table of Contents

Methods

getCore()  : mixed
Get the functions instance.
getPluginClassInstance()  : mixed
Get a new instance of a plugin class from string (supports namespaces, too).
getPluginConstant()  : null|mixed|string
Get a value from a defined constant with no prefix.
getPluginConstantPrefix()  : string
Get the plugins' constant prefix. Will be overwritten by the UtilsProvider class.

Methods

getPluginClassInstance()

Get a new instance of a plugin class from string (supports namespaces, too).

public getPluginClassInstance(string $name) : mixed
Parameters
$name : string

getPluginConstant()

Get a value from a defined constant with no prefix.

public getPluginConstant([string $name = null ]) : null|mixed|string

The prefix is plugin relevant.

Parameters
$name : string = null
Return values
null|mixed|string

getPluginConstantPrefix()

Get the plugins' constant prefix. Will be overwritten by the UtilsProvider class.

public getPluginConstantPrefix() : string
Return values
string

        
On this page

Search results