\champlatesHtmlTemplateCollection

Class HtmlTemplateCollection Wrapper around multiple HtmlElements that renders them in succession

Summary

Methods
Properties
Constants
__construct()
render()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(\champlates\string  $name, array  $elements) 

HtmlTemplateCollection constructor.

Parameters

\champlates\string $name
array $elements

: The elements to collect

render()

render(\champlates\string  $language) : \champlates\string:

Renders the individual elements and appends them to each other

Parameters

\champlates\string $language

Returns

\champlates\string: —

The rendered string