Method |
Description |
|
__call ( string $strKey, array $arrParams ) : mixed |
Execute a callable and return the result |
|
__construct ( string $strTemplate = '', string $strContentType = 'text/html' ) |
Create a new template object |
|
__get ( string $strKey ) : mixed |
Return an object property |
|
__isset ( string $strKey ) : boolean |
Check whether a property is set |
|
__set ( string $strKey, mixed $varValue ) |
Set an object property |
|
dumpTemplateVars ( ) |
Print all template variables to the screen using var_dump |
|
flushAllData ( ) |
Flush the output buffers |
|
generateFeedTag ( string $href, string $format, string $title ) : string |
Generate the markup for an RSS feed tag |
|
generateInlineScript ( string $script ) : string |
Generate the markup for an inline JavaScript |
|
generateInlineStyle ( string $script ) : string |
Generate the markup for inline CSS code |
|
generateScriptTag ( string $src, boolean $async = false ) : string |
Generate the markup for a JavaScript tag |
|
generateStyleTag ( string $href, string $media = null ) : string |
Generate the markup for a style sheet tag |
|
getData ( ) : array |
Return the template data as array |
|
getFormat ( ) : string |
Return the output format |
|
getName ( ) : string |
Return the template name |
|
getResponse ( ) : Response |
Return a response object |
|
minifyHtml ( string $strHtml ) : string |
Minify the HTML markup preserving pre, script, style and textarea tags |
|
output ( ) |
Parse the template file and print it to the screen |
|
parse ( ) : string |
Parse the template file and return it as string |
|
route ( string $strName, array $arrParams = [] ) : string |
Return a route relative to the base URL |
|
setData ( array $arrData ) |
Set the template data from an array |
|
setFormat ( string $strFormat ) |
Set the output format |
|
setName ( string $strTemplate ) |
Set the template name |
|
showTemplateVars ( ) |
Print all template variables to the screen using print_r |
|