Documentation

ConfigurableEnvironmentInterface extends EnvironmentInterface

Interface for an Environment which can be configured with config settings, parsers, processors, and renderers

Table of Contents

HTML_INPUT_ALLOW  = 'allow'
HTML_INPUT_ESCAPE  = 'escape'
HTML_INPUT_STRIP  = 'strip'
addBlockParser()  : self
Registers the given block parser with the Environment
addBlockRenderer()  : self
addDelimiterProcessor()  : ConfigurableEnvironmentInterface
Registers the given delimiter processor with the Environment
addEventListener()  : self
Registers the given event listener
addExtension()  : ConfigurableEnvironmentInterface
Registers the given extension with the Environment
addInlineParser()  : self
Registers the given inline parser with the Environment
addInlineRenderer()  : self
Registers the given inline renderer with the Environment
dispatch()  : void
Dispatches the given event to listeners
getBlockParsers()  : iteratable<string|int, BlockParserInterface>
getBlockRenderersForClass()  : iteratable<string|int, BlockRendererInterface>
getConfig()  : mixed
getDelimiterProcessors()  : DelimiterProcessorCollection
getInlineParserCharacterRegex()  : string
Regex which matches any character which doesn't indicate an inline element
getInlineParsersForCharacter()  : iteratable<string|int, InlineParserInterface>
getInlineRenderersForClass()  : iteratable<string|int, InlineRendererInterface>
mergeConfig()  : void
setConfig()  : void

Constants

Methods

addBlockRenderer()

public addBlockRenderer(string $blockClass, BlockRendererInterface $blockRenderer, int $priority) : self
Parameters
$blockClass : string

The fully-qualified block element class name the renderer below should handle

$blockRenderer : BlockRendererInterface

The renderer responsible for rendering the type of element given above

$priority : int

Priority (a higher number will be executed earlier)

Return values
self

addEventListener()

Registers the given event listener

public addEventListener(string $eventClass, callable $listener, int $priority) : self
Parameters
$eventClass : string

Fully-qualified class name of the event this listener should respond to

$listener : callable

Listener to be executed

$priority : int

Priority (a higher number will be executed earlier)

Return values
self

addInlineRenderer()

Registers the given inline renderer with the Environment

public addInlineRenderer(string $inlineClass, InlineRendererInterface $renderer, int $priority) : self
Parameters
$inlineClass : string

The fully-qualified inline element class name the renderer below should handle

$renderer : InlineRendererInterface

The renderer responsible for rendering the type of element given above

$priority : int

Priority (a higher number will be executed earlier)

Return values
self

getConfig()

public getConfig([string|null $key = null ][, mixed $default = null ]) : mixed
Parameters
$key : string|null = null
$default : mixed = null
Return values
mixed

getInlineParserCharacterRegex()

Regex which matches any character which doesn't indicate an inline element

public getInlineParserCharacterRegex() : string

This allows us to parse multiple non-special characters at once

Return values
string

mergeConfig()

public mergeConfig([array<string, mixed> $config = [] ]) : void
Parameters
$config : array<string, mixed> = []
Return values
void

setConfig()

public setConfig([array<string, mixed> $config = [] ]) : void
Parameters
$config : array<string, mixed> = []
Tags
deprecated

in 1.6 and will be removed in 2.0; use mergeConfig() instead

Return values
void

Search results