Documentation

XmlRenderer
in package
implements DocumentRendererInterface

FinalYes

Table of Contents

Interfaces

DocumentRendererInterface
Renders a parsed Document AST

Constants

INDENTATION  = ' '

Properties

$environment  : EnvironmentInterface
$fallbackRenderer  : XmlNodeRendererInterface
$rendererCache  : array<class-string, XmlNodeRendererInterface>

Methods

__construct()  : mixed
renderDocument()  : RenderedContentInterface
Render the given Document node (and all of its children)
convertAndEscape()  : string
findXmlRenderer()  : XmlNodeRendererInterface
tag()  : string

Constants

Properties

Methods

convertAndEscape()

private static convertAndEscape(string|int|float|bool $value) : string
Parameters
$value : string|int|float|bool
Return values
string

tag()

private static tag(string $name[, array<string, string|int|float|bool> $attrs = [] ][, bool $selfClosing = false ]) : string
Parameters
$name : string
$attrs : array<string, string|int|float|bool> = []
$selfClosing : bool = false
Return values
string

        
On this page

Search results