Skip to content

Template

  • Full name: \Qubus\View\Template
  • This class is an Abstract class

Constants

Constant Visibility Type Value
SCAFFOLD_NAME public ''

Properties

loader

protected \Qubus\View\Loader $loader

helpers

protected array $helpers

parent

protected ?\Qubus\View\Template $parent

blocks

public array $blocks

macros

public array $macros

imports

public array $imports

stack

protected array $stack

Methods

__construct

public __construct(\Qubus\View\Loader $loader, array $helpers = []): mixed

Parameters:

Parameter Type Description
$loader \Qubus\View\Loader
$helpers array

getPath

private getPath(mixed $template): mixed

Parameters:

Parameter Type Description
$template mixed

loadExtends

public loadExtends(mixed $template): mixed

Parameters:

Parameter Type Description
$template mixed

loadInclude

public loadInclude(mixed $template): mixed

Parameters:

Parameter Type Description
$template mixed

loadImport

public loadImport(mixed $template): array

Parameters:

Parameter Type Description
$template mixed

displayBlock

public displayBlock(mixed $name, mixed $context, mixed $blocks, mixed $macros, mixed $imports): mixed

Parameters:

Parameter Type Description
$name mixed
$context mixed
$blocks mixed
$macros mixed
$imports mixed

displayParent

public displayParent(mixed $name, mixed $context, mixed $blocks, mixed $macros, mixed $imports): mixed

Parameters:

Parameter Type Description
$name mixed
$context mixed
$blocks mixed
$macros mixed
$imports mixed

expandMacro

public expandMacro(mixed $module, mixed $name, mixed $params, mixed $context, mixed $macros, mixed $imports, mixed $block): mixed

Parameters:

Parameter Type Description
$module mixed
$name mixed
$params mixed
$context mixed
$macros mixed
$imports mixed
$block mixed

pushContext

public pushContext(mixed& $context, mixed $name): static

Parameters:

Parameter Type Description
$context mixed
$name mixed

popContext

public popContext(mixed& $context, mixed $name): static

Parameters:

Parameter Type Description
$context mixed
$name mixed

getLineTrace

public getLineTrace(?\Qubus\Exception\Exception $e = null): mixed

Parameters:

Parameter Type Description
$e ?\Qubus\Exception\Exception

helper

public helper(mixed $name, mixed $args = []): mixed

Parameters:

Parameter Type Description
$name mixed
$args mixed

display

public display(mixed $context = [], mixed $blocks = [], mixed $macros = [], mixed $imports = []): mixed
  • This method is abstract.

Parameters:

Parameter Type Description
$context mixed
$blocks mixed
$macros mixed
$imports mixed

render

public render(mixed $context = [], mixed $blocks = [], mixed $macros = [], mixed $imports = []): bool|string

Parameters:

Parameter Type Description
$context mixed
$blocks mixed
$macros mixed
$imports mixed

iterate

public iterate(mixed $context, mixed $seq): \Qubus\View\Helper\ContextIterator

Parameters:

Parameter Type Description
$context mixed
$seq mixed

getAttr

public getAttr(mixed $obj, mixed $attr, mixed $args = []): mixed

Parameters:

Parameter Type Description
$obj mixed
$attr mixed
$args mixed

setAttr

public setAttr(mixed& $obj, mixed $attrs, mixed $value): void

Parameters:

Parameter Type Description
$obj mixed
$attrs mixed
$value mixed


Automatically generated on 2025-10-13