\Omega\View\Engine PhpEngine

Php engine class.

Summary

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

Properties

$viewManager

$viewManager : \Omega\View\ViewManager

ViewManager object.

Type

ViewManager — Holds an instance of ViewManager.

$layouts

$layouts : array

Layout array.

Type

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

Methods

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 —

__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 —

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 —