$enabled
$enabled : boolean
This plugin is enabled by default?
Pico dummy plugin - a template for plugins
You're a plugin developer? This template may be helpful :-) Simply remove the events you don't need and add your own logic.
$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
onSinglePageLoaded(array  $pageData) : void
                Triggered when Pico reads a single page from the list of all known pages
The $pageData parameter consists of the following values:
| Array key | Type | Description | 
|---|---|---|
| id | string | relative path to the content file | 
| url | string | URL to the page | 
| title | string | title of the page (YAML header) | 
| description | string | description of the page (YAML header) | 
| author | string | author of the page (YAML header) | 
| time | string | timestamp derived from the Date header | 
| date | string | date of the page (YAML header) | 
| date_formatted | string | formatted date of the page | 
| raw_content | string | raw, not yet parsed contents of the page | 
| meta | string | parsed meta data of the page | 
| array | $pageData | 
onPagesLoaded(array $pages, array $currentPage = null, array $previousPage = null, array $nextPage = null) : void
Triggered after Pico has read all known pages
See DummyPlugin::onSinglePageLoaded() for details about the structure of the page data.
| array | $pages | |
| array | $currentPage | |
| array | $previousPage | |
| array | $nextPage |