Creates HTML Renderer
static
create
($path, $replaces)
Static search in memory structure
static
recursiveKeyArraySearch
($needle, $haystack)
Constructor method
__construct
($path)
-
$path: HTML resource path
Disable htmlspecialchars on output
disableHtmlConversion
()
Diable section
disableSection
($sectionName)
Enable a HTML section to show
enableSection
($sectionName, [$replacements = NULL], [$repeat = FALSE])
-
$sectionName: Section name
-
$replacements: Array of replacements for this section
-
$repeat: Define if the section is repeatable
Enable translation inside template
enableTranslation
()
Returns the HTML content as a string
getContents
()
Show the HTML and the enabled sections
show
()