Logo

Plugin

the plugin class is an abstract to all plugins to be made.

Class Namespace

use Bethropolis\PluginSystem\Plugin;

Class Methods

$this->name protected

plugin name

$this->version protected

plugin version

$this->description protected

plugin description

$this->author protected

plugin author

$this->getInfo

returns plugin info such as plugin name, version, description and author.

$this->initialize

initializes the plugin, should be defined on every plugin.

$this->linkHook($name, $callback)

links a plugin function to a hook.

$this->linkEvent($name, $callback)

links a plugin function to an event.

$this->error($errorMessage, $errorLevel)

logs an error.

$this->exception

logs an exception.