|
|
@ -79,8 +79,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getPlugins() |
|
|
|
* @see Pico::getPlugins() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param object[] $plugins loaded plugin instances |
|
|
|
* @param object[] $plugins loaded plugin instances |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onPluginsLoaded(array $plugins) |
|
|
|
public function onPluginsLoaded(array $plugins) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -95,8 +93,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getPlugins() |
|
|
|
* @see Pico::getPlugins() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param object $plugin loaded plugin instance |
|
|
|
* @param object $plugin loaded plugin instance |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onPluginManuallyLoaded($plugin) |
|
|
|
public function onPluginManuallyLoaded($plugin) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -111,8 +107,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::isUrlRewritingEnabled() |
|
|
|
* @see Pico::isUrlRewritingEnabled() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param array &$config array of config variables |
|
|
|
* @param array &$config array of config variables |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onConfigLoaded(array &$config) |
|
|
|
public function onConfigLoaded(array &$config) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -125,8 +119,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getRequestUrl() |
|
|
|
* @see Pico::getRequestUrl() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string &$url part of the URL describing the requested contents |
|
|
|
* @param string &$url part of the URL describing the requested contents |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onRequestUrl(&$url) |
|
|
|
public function onRequestUrl(&$url) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -140,8 +132,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getRequestFile() |
|
|
|
* @see Pico::getRequestFile() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string &$file absolute path to the content file to serve |
|
|
|
* @param string &$file absolute path to the content file to serve |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onRequestFile(&$file) |
|
|
|
public function onRequestFile(&$file) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -153,8 +143,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* |
|
|
|
* |
|
|
|
* @see Pico::loadFileContent() |
|
|
|
* @see Pico::loadFileContent() |
|
|
|
* @see DummyPlugin::onContentLoaded() |
|
|
|
* @see DummyPlugin::onContentLoaded() |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onContentLoading() |
|
|
|
public function onContentLoading() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -166,8 +154,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* |
|
|
|
* |
|
|
|
* @see Pico::load404Content() |
|
|
|
* @see Pico::load404Content() |
|
|
|
* @see DummyPlugin::on404ContentLoaded() |
|
|
|
* @see DummyPlugin::on404ContentLoaded() |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function on404ContentLoading() |
|
|
|
public function on404ContentLoading() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -182,8 +168,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::is404Content() |
|
|
|
* @see Pico::is404Content() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string &$rawContent raw file contents |
|
|
|
* @param string &$rawContent raw file contents |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function on404ContentLoaded(&$rawContent) |
|
|
|
public function on404ContentLoaded(&$rawContent) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -202,8 +186,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::is404Content() |
|
|
|
* @see Pico::is404Content() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string &$rawContent raw file contents |
|
|
|
* @param string &$rawContent raw file contents |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onContentLoaded(&$rawContent) |
|
|
|
public function onContentLoaded(&$rawContent) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -215,8 +197,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* |
|
|
|
* |
|
|
|
* @see Pico::parseFileMeta() |
|
|
|
* @see Pico::parseFileMeta() |
|
|
|
* @see DummyPlugin::onMetaParsed() |
|
|
|
* @see DummyPlugin::onMetaParsed() |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onMetaParsing() |
|
|
|
public function onMetaParsing() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -230,8 +210,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getFileMeta() |
|
|
|
* @see Pico::getFileMeta() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string[] &$meta parsed meta data |
|
|
|
* @param string[] &$meta parsed meta data |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onMetaParsed(array &$meta) |
|
|
|
public function onMetaParsed(array &$meta) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -245,8 +223,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::substituteFileContent() |
|
|
|
* @see Pico::substituteFileContent() |
|
|
|
* @see DummyPlugin::onContentPrepared() |
|
|
|
* @see DummyPlugin::onContentPrepared() |
|
|
|
* @see DummyPlugin::onContentParsed() |
|
|
|
* @see DummyPlugin::onContentParsed() |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onContentParsing() |
|
|
|
public function onContentParsing() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -261,8 +237,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see DummyPlugin::onContentParsed() |
|
|
|
* @see DummyPlugin::onContentParsed() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string &$markdown Markdown contents of the requested page |
|
|
|
* @param string &$markdown Markdown contents of the requested page |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onContentPrepared(&$markdown) |
|
|
|
public function onContentPrepared(&$markdown) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -277,8 +251,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getFileContent() |
|
|
|
* @see Pico::getFileContent() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string &$content parsed contents (HTML) of the requested page |
|
|
|
* @param string &$content parsed contents (HTML) of the requested page |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onContentParsed(&$content) |
|
|
|
public function onContentParsed(&$content) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -290,8 +262,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* |
|
|
|
* |
|
|
|
* @see DummyPlugin::onPagesDiscovered() |
|
|
|
* @see DummyPlugin::onPagesDiscovered() |
|
|
|
* @see DummyPlugin::onPagesLoaded() |
|
|
|
* @see DummyPlugin::onPagesLoaded() |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onPagesLoading() |
|
|
|
public function onPagesLoading() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -313,8 +283,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @param string $id relative path to the content file |
|
|
|
* @param string $id relative path to the content file |
|
|
|
* @param bool|null $skipPage set this to TRUE to remove this page from the |
|
|
|
* @param bool|null $skipPage set this to TRUE to remove this page from the |
|
|
|
* pages array, otherwise leave it unchanged |
|
|
|
* pages array, otherwise leave it unchanged |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onSinglePageLoading($id, &$skipPage) |
|
|
|
public function onSinglePageLoading($id, &$skipPage) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -333,8 +301,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string $id relative path to the content file |
|
|
|
* @param string $id relative path to the content file |
|
|
|
* @param string &$rawContent raw file contents |
|
|
|
* @param string &$rawContent raw file contents |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onSinglePageContent($id, &$rawContent) |
|
|
|
public function onSinglePageContent($id, &$rawContent) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -351,8 +317,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see DummyPlugin::onSinglePageContent() |
|
|
|
* @see DummyPlugin::onSinglePageContent() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param array &$pageData data of the loaded page |
|
|
|
* @param array &$pageData data of the loaded page |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onSinglePageLoaded(array &$pageData) |
|
|
|
public function onSinglePageLoaded(array &$pageData) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -371,8 +335,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see DummyPlugin::onPagesLoaded() |
|
|
|
* @see DummyPlugin::onPagesLoaded() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param array[] &$pages list of all known pages |
|
|
|
* @param array[] &$pages list of all known pages |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onPagesDiscovered(array &$pages) |
|
|
|
public function onPagesDiscovered(array &$pages) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -391,8 +353,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getPages() |
|
|
|
* @see Pico::getPages() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param array[] &$pages sorted list of all known pages |
|
|
|
* @param array[] &$pages sorted list of all known pages |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onPagesLoaded(array &$pages) |
|
|
|
public function onPagesLoaded(array &$pages) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -414,8 +374,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @param array|null &$currentPage data of the page being served |
|
|
|
* @param array|null &$currentPage data of the page being served |
|
|
|
* @param array|null &$previousPage data of the previous page |
|
|
|
* @param array|null &$previousPage data of the previous page |
|
|
|
* @param array|null &$nextPage data of the next page |
|
|
|
* @param array|null &$nextPage data of the next page |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onCurrentPageDiscovered( |
|
|
|
public function onCurrentPageDiscovered( |
|
|
|
array &$currentPage = null, |
|
|
|
array &$currentPage = null, |
|
|
@ -434,8 +392,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getPageTree() |
|
|
|
* @see Pico::getPageTree() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param array &$pageTree page tree |
|
|
|
* @param array &$pageTree page tree |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onPageTreeBuilt(array &$pageTree) |
|
|
|
public function onPageTreeBuilt(array &$pageTree) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -449,8 +405,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string &$templateName file name of the template |
|
|
|
* @param string &$templateName file name of the template |
|
|
|
* @param array &$twigVariables template variables |
|
|
|
* @param array &$twigVariables template variables |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onPageRendering(&$templateName, array &$twigVariables) |
|
|
|
public function onPageRendering(&$templateName, array &$twigVariables) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -463,8 +417,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see DummyPlugin::onPageRendering() |
|
|
|
* @see DummyPlugin::onPageRendering() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param string &$output contents which will be sent to the user |
|
|
|
* @param string &$output contents which will be sent to the user |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onPageRendered(&$output) |
|
|
|
public function onPageRendered(&$output) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -479,8 +431,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @param string[] &$headers list of known meta header fields; the array |
|
|
|
* @param string[] &$headers list of known meta header fields; the array |
|
|
|
* key specifies the YAML key to search for, the array value is later |
|
|
|
* key specifies the YAML key to search for, the array value is later |
|
|
|
* used to access the found value |
|
|
|
* used to access the found value |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onMetaHeaders(array &$headers) |
|
|
|
public function onMetaHeaders(array &$headers) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -493,8 +443,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getYamlParser() |
|
|
|
* @see Pico::getYamlParser() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param \Symfony\Component\Yaml\Parser &$yamlParser YAML parser instance |
|
|
|
* @param \Symfony\Component\Yaml\Parser &$yamlParser YAML parser instance |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onYamlParserRegistered(\Symfony\Component\Yaml\Parser &$yamlParser) |
|
|
|
public function onYamlParserRegistered(\Symfony\Component\Yaml\Parser &$yamlParser) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -507,8 +455,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getParsedown() |
|
|
|
* @see Pico::getParsedown() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param Parsedown &$parsedown Parsedown instance |
|
|
|
* @param Parsedown &$parsedown Parsedown instance |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onParsedownRegistered(Parsedown &$parsedown) |
|
|
|
public function onParsedownRegistered(Parsedown &$parsedown) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -521,8 +467,6 @@ class DummyPlugin extends AbstractPicoPlugin |
|
|
|
* @see Pico::getTwig() |
|
|
|
* @see Pico::getTwig() |
|
|
|
* |
|
|
|
* |
|
|
|
* @param Twig_Environment &$twig Twig instance |
|
|
|
* @param Twig_Environment &$twig Twig instance |
|
|
|
* |
|
|
|
|
|
|
|
* @return void |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function onTwigRegistered(Twig_Environment &$twig) |
|
|
|
public function onTwigRegistered(Twig_Environment &$twig) |
|
|
|
{ |
|
|
|
{ |
|
|
|