THtmlRenderer
in package
Html Renderer
Tags
Table of Contents
Properties
- $buffer : mixed
- $enabledSections : mixed
- $enabledTranslation : mixed
- $HTMLOutputConversion : mixed
- $path : mixed
- $repeatSection : mixed
- $replacements : mixed
- $sections : mixed
- $template : mixed
Methods
- __construct() : mixed
- Constructor method
- create() : mixed
- Creates HTML Renderer
- disableHtmlConversion() : mixed
- Disable htmlspecialchars on output
- disableSection() : mixed
- Diable section
- enableSection() : mixed
- Enable a HTML section to show
- enableTranslation() : mixed
- Enable translation inside template
- getContents() : mixed
- Returns the HTML content as a string
- recursiveKeyArraySearch() : mixed
- Static search in memory structure
- show() : mixed
- Show the HTML and the enabled sections
- replace() : mixed
- Replace the content with array of replacements
Properties
$buffer
private
mixed
$buffer
$enabledSections
private
mixed
$enabledSections
$enabledTranslation
private
mixed
$enabledTranslation
$HTMLOutputConversion
private
mixed
$HTMLOutputConversion
$path
private
mixed
$path
$repeatSection
private
mixed
$repeatSection
$replacements
private
mixed
$replacements
$sections
private
mixed
$sections
$template
private
mixed
$template
Methods
__construct()
Constructor method
public
__construct( $path) : mixed
Parameters
create()
Creates HTML Renderer
public
static create(mixed $path, mixed $replaces) : mixed
Parameters
- $path : mixed
- $replaces : mixed
disableHtmlConversion()
Disable htmlspecialchars on output
public
disableHtmlConversion() : mixed
disableSection()
Diable section
public
disableSection(mixed $sectionName) : mixed
Parameters
- $sectionName : mixed
enableSection()
Enable a HTML section to show
public
enableSection( $sectionName[, $replacements = NULL ][, $repeat = FALSE ]) : mixed
Parameters
enableTranslation()
Enable translation inside template
public
enableTranslation() : mixed
getContents()
Returns the HTML content as a string
public
getContents() : mixed
recursiveKeyArraySearch()
Static search in memory structure
public
static recursiveKeyArraySearch(mixed $needle, mixed $haystack) : mixed
Parameters
- $needle : mixed
- $haystack : mixed
show()
Show the HTML and the enabled sections
public
show() : mixed
replace()
Replace the content with array of replacements
private
replace( &$replacements, $content) : mixed