\Omega\View\Engine AbstractEngine

Abstract engine class.

Summary

Methods
Properties
Constants
__call
render
setManager
No public properties found
No public constants found
extends
layouts
viewManager
No protected constants found
No private methods found
No private properties found
No private constants found

Properties

$layouts

$layouts : array

Layout array.

Type

array<string|int, mixed> — Holds an array of layouts.

$viewManager

$viewManager : \Omega\View\ViewManager

ViewManager object.

Type

ViewManager — Holds an instance of ViewManager.

Methods

__call()

__call(string  $name, mixed  $values) : mixed

Magic call.

This method handles dynamic method calls, typically for macros.

Parameters

string $name

Holds the method name.

mixed $values

Holds the method params/values.

Throws

\Exception

Returns

mixed —

render()

render(\Omega\View\View  $view) : string

Render a view.

This method is responsible for rendering a View object and processing its contents.

Parameters

\Omega\View\View $view

Holds an instance of View.

Returns

string —

Return the view.

setManager()

setManager(\Omega\View\ViewManager  $viewManager) : $this

Set the view manager object.

Parameters

\Omega\View\ViewManager $viewManager

Holds an instance of ViewManager.

Returns

$this —

extends()

extends(string  $template) : $this

Extends the template.

This method extends the current template with another layout template.

Parameters

string $template

Holds the template name.

Returns

$this —