BladeRenderer
Extends AbstractRenderer Implements AddTemplateFolderInterfaceBlade class for rendering output.
since |
2.0.0 |
---|---|
package |
Joomla Framework |
Methods
__construct
Constructor.
__construct(\Illuminate\View\Factory renderer = null) : mixed
since |
2.0.0 |
---|
Arguments
- renderer
\Illuminate\View\Factory
Rendering engine
Response
mixed
addFolder
Add a folder with alias to the renderer
addFolder(string directory, string alias = '') : $this
since |
2.0.0 |
---|
Arguments
- directory
string
The folder path- alias
string
The folder alias (unused)
Response
$this
getRenderer
Get the rendering engine
getRenderer() : \Illuminate\View\Factory
since |
2.0.0 |
---|
Response
\Illuminate\View\Factory
pathExists
Checks if folder, folder alias, template or template path exists
pathExists(string path) : bool
since |
2.0.0 |
---|
Arguments
- path
string
Full path or part of a path
Response
bool
True if the path exists
render
Render and return compiled data.
render(string template, array data = []) : string
since |
2.0.0 |
---|
Arguments
- template
string
The template file name- data
array
The data to pass to the template
Response
string
Compiled data
set
Sets a piece of data
set(string key, string value) : $this
since |
2.0.0 |
---|
Arguments
- key
string
Name of variable- value
string
Value of variable
Response
$this
setData
Loads data from array into the renderer
setData(array data) : $this
since |
2.0.0 |
---|
Arguments
- data
array
Array of variables
Response
$this
unsetData
Unloads data from renderer
unsetData() : $this
since |
2.0.0 |
---|
Response
$this
Properties
renderer
Rendering engine
since |
2.0.0 |
---|
Type(s)
\Illuminate\View\Factory
data
Data for output by the renderer
since |
2.0.0 |
---|
Type(s)
array