PHP Класс DummyPlugin

Наследование: implements Plugin
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$dependsOn string[] ..
$enabled boolean This plugin is enabled by default?

Открытые методы

Метод Описание
on404ContentLoaded ( &$rawContent ) : void Triggered after Pico has read the contents of the 404 file
on404ContentLoading ( &$file ) : void Triggered before Pico reads the contents of a 404 file
onConfigLoaded ( array &$config ) : void Triggered after Pico has read its configuration
onContentLoaded ( &$rawContent ) : void Triggered after Pico has read the contents of the file to serve
onContentLoading ( &$file ) : void Triggered before Pico reads the contents of the file to serve
onContentParsed ( &$content ) : void Triggered after Pico has parsed the contents of the file to serve
onContentParsing ( &$rawContent ) : void Triggered before Pico parses the pages content
onContentPrepared ( &$content ) : void Triggered after Pico has prepared the raw file contents for parsing
onMetaHeaders ( array &$headers ) : void Triggered when Pico reads its known meta header fields
onMetaParsed ( array &$meta ) : void Triggered after Pico has parsed the meta header
onMetaParsing ( &$rawContent, array &$headers ) : void Triggered before Pico parses the meta header
onPageRendered ( &$output ) : void Triggered after Pico has rendered the page
onPageRendering ( Twig_Environment &$twig, array &$twigVariables, &$templateName ) : void Triggered before Pico renders the page
onPagesLoaded ( array &$pages, array &$currentPage = null, array &$previousPage = null, array &$nextPage = null ) : void Triggered after Pico has read all known pages
onPagesLoading ( ) : void Triggered before Pico reads all known pages
onPluginsLoaded ( array &$plugins ) : void Triggered after Pico has loaded all available plugins
onRequestFile ( &$file ) : void Triggered after Pico has discovered the content file to serve
onRequestUrl ( &$url ) : void Triggered after Pico has evaluated the request URL
onSinglePageLoaded ( array &$pageData ) : void Triggered when Pico reads a single page from the list of all known pages
onTwigRegistration ( ) : void Triggered before Pico registers the twig template engine

Описание методов

on404ContentLoaded() публичный Метод

Triggered after Pico has read the contents of the 404 file
См. также: Pico::getRawContent()
public on404ContentLoaded ( &$rawContent ) : void
Результат void

on404ContentLoading() публичный Метод

Triggered before Pico reads the contents of a 404 file
См. также: Pico::load404Content()
См. также: DummyPlugin::on404ContentLoaded()
public on404ContentLoading ( &$file ) : void
Результат void

onConfigLoaded() публичный Метод

Triggered after Pico has read its configuration
См. также: Pico::getConfig()
public onConfigLoaded ( array &$config ) : void
$config array
Результат void

onContentLoaded() публичный Метод

Triggered after Pico has read the contents of the file to serve
См. также: Pico::getRawContent()
public onContentLoaded ( &$rawContent ) : void
Результат void

onContentLoading() публичный Метод

Triggered before Pico reads the contents of the file to serve
См. также: Pico::loadFileContent()
См. также: DummyPlugin::onContentLoaded()
public onContentLoading ( &$file ) : void
Результат void

onContentParsed() публичный Метод

Triggered after Pico has parsed the contents of the file to serve
См. также: Pico::getFileContent()
public onContentParsed ( &$content ) : void
Результат void

onContentParsing() публичный Метод

Triggered before Pico parses the pages content
См. также: Pico::prepareFileContent()
См. также: DummyPlugin::prepareFileContent()
См. также: DummyPlugin::onContentParsed()
public onContentParsing ( &$rawContent ) : void
Результат void

onContentPrepared() публичный Метод

Triggered after Pico has prepared the raw file contents for parsing
См. также: Pico::parseFileContent()
См. также: DummyPlugin::onContentParsed()
public onContentPrepared ( &$content ) : void
Результат void

onMetaHeaders() публичный Метод

Triggered when Pico reads its known meta header fields
См. также: Pico::getMetaHeaders()
public onMetaHeaders ( array &$headers ) : void
$headers array
Результат void

onMetaParsed() публичный Метод

Triggered after Pico has parsed the meta header
См. также: Pico::getFileMeta()
public onMetaParsed ( array &$meta ) : void
$meta array
Результат void

onMetaParsing() публичный Метод

Triggered before Pico parses the meta header
См. также: Pico::parseFileMeta()
См. также: DummyPlugin::onMetaParsed()
public onMetaParsing ( &$rawContent, array &$headers ) : void
$headers array
Результат void

onPageRendered() публичный Метод

Triggered after Pico has rendered the page
public onPageRendered ( &$output ) : void
Результат void

onPageRendering() публичный Метод

Triggered before Pico renders the page
См. также: Pico::getTwig()
См. также: DummyPlugin::onPageRendered()
public onPageRendering ( Twig_Environment &$twig, array &$twigVariables, &$templateName ) : void
$twig Twig_Environment
$twigVariables array
Результат void

onPagesLoaded() публичный Метод

See {@link DummyPlugin::onSinglePageLoaded()} for details about the structure of the page data.
См. также: Pico::getPages()
См. также: Pico::getCurrentPage()
См. также: Pico::getPreviousPage()
См. также: Pico::getNextPage()
public onPagesLoaded ( array &$pages, array &$currentPage = null, array &$previousPage = null, array &$nextPage = null ) : void
$pages array
$currentPage array
$previousPage array
$nextPage array
Результат void

onPagesLoading() публичный Метод

Triggered before Pico reads all known pages
См. также: Pico::readPages()
См. также: DummyPlugin::onSinglePageLoaded()
См. также: DummyPlugin::onPagesLoaded()
public onPagesLoading ( ) : void
Результат void

onPluginsLoaded() публичный Метод

This event is triggered nevertheless the plugin is enabled or not. It is NOT guaranteed that plugin dependencies are fulfilled!
См. также: Pico::getPlugin()
См. также: Pico::getPlugins()
public onPluginsLoaded ( array &$plugins ) : void
$plugins array
Результат void

onRequestFile() публичный Метод

Triggered after Pico has discovered the content file to serve
См. также: Pico::getBaseUrl()
См. также: Pico::getRequestFile()
public onRequestFile ( &$file ) : void
Результат void

onRequestUrl() публичный Метод

Triggered after Pico has evaluated the request URL
См. также: Pico::getRequestUrl()
public onRequestUrl ( &$url ) : void
Результат void

onSinglePageLoaded() публичный Метод

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 |
См. также: DummyPlugin::onPagesLoaded()
public onSinglePageLoaded ( array &$pageData ) : void
$pageData array
Результат void

onTwigRegistration() публичный Метод

Triggered before Pico registers the twig template engine
public onTwigRegistration ( ) : void
Результат void

Описание свойств

$dependsOn защищенное свойство

..
См. также: AbstractPicoPlugin::$dependsOn
protected string[] $dependsOn
Результат string[]

$enabled защищенное свойство

This plugin is enabled by default?
См. также: AbstractPicoPlugin::$enabled
protected bool $enabled
Результат boolean