PHP 클래스 DummyPlugin

상속: implements Plugin
파일 보기 프로젝트 열기: gilbitron/pico 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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