Loader
- Full name:
\Qubus\View\Loader
- This class is marked as final and can't be subclassed
- This class implements:
\Qubus\View\Renderer
- This class is a Final class
Constants
Constant | Visibility | Type | Value |
---|---|---|---|
VERSION | public | '3.0.0' | |
CLASS_PREFIX | public | '__ScaffoldTemplate_' | |
RECOMPILE_NEVER | public | -1 | |
RECOMPILE_NORMAL | public | 0 | |
RECOMPILE_ALWAYS | public | 1 |
Properties
exceptionHandler
target
options
paths
cache
extension
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$options | array |
handleSyntaxError
Parameters:
Parameter | Type | Description |
---|---|---|
$exception | mixed |
Throws:
getTemplateExtension
Get the expected extension of the template file.
removeExtension
Remove Extension from file.
Parameters:
Parameter | Type | Description |
---|---|---|
$fileName | string |
getClassName
Parameters:
Parameter | Type | Description |
---|---|---|
$path | string |
normalizePath
Parameters:
Parameter | Type | Description |
---|---|---|
$path | string |
resolvePath
Parameters:
Parameter | Type | Description |
---|---|---|
$template | string | |
$from | string |
getAdapter
compile
Parameters:
Parameter | Type | Description |
---|---|---|
$template | string | |
$mode | mixed |
load
Parameters:
Parameter | Type | Description |
---|---|---|
$template | string|\Qubus\View\Template | |
$from | string |
Throws:
compileOrFail
private compileOrFail(\Qubus\View\Adapter\Adapter $adapter, string $path, string $class, string $classFile): void
Parameters:
Parameter | Type | Description |
---|---|---|
$adapter | \Qubus\View\Adapter\Adapter | |
$path | string | |
$class | string | |
$classFile | string |
loadFromString
Parameters:
Parameter | Type | Description |
---|---|---|
$template | mixed |
Throws:
render
Parameters:
Parameter | Type | Description |
---|---|---|
$template | \Qubus\View\Template|string | |
$data | array |
Throws:
renderString
Parameters:
Parameter | Type | Description |
---|---|---|
$source | mixed | |
$data | array |
Throws:
getVersion
setExceptionHandler
Parameters:
Parameter | Type | Description |
---|---|---|
$bool | bool |
Automatically generated on 2025-10-13