$enabled
$enabled : boolean
Boolean indicating if this plugin is enabled (true) or disabled (false)
Abstract class to extend from when implementing a Pico plugin
$pico : \Pico
Current instance of Pico
__construct(\Pico $pico)
Constructs a new instance of a Pico plugin
\Pico | $pico | current instance of Pico |
setEnabled(boolean $enabled, boolean $recursive = true, boolean $auto = false) : void
Enables or disables this plugin
boolean | $enabled | enable (true) or disable (false) this plugin |
boolean | $recursive | when true, enable or disable recursively In other words, if you enable a plugin, all required plugins are enabled, too. When disabling a plugin, all depending plugins are disabled likewise. Recursive operations are only performed as long as a plugin wasn't enabled/disabled manually. This parameter is optional and defaults to true. |
boolean | $auto | enable or disable to fulfill a dependency This parameter is optional and defaults to false. |
getPico() : \Pico
Returns the plugins instance of Pico
the plugins instance of Pico