\Anax\ViewView

A view connected to a template file.

Summary

Methods
Properties
Constants
set()
render()
sortOrder()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$template
$templateData
$sortOrder
$type
N/A

Properties

$template

$template : 

Type

— Template file or array

$templateData

$templateData : 

Type

$sortOrder

$sortOrder : 

Type

$type

$type : 

Type

Methods

set()

set(array|string  $template, array  $data = array(), integer  $sort, string  $type = "file") : self

Set values for the view.

Parameters

array|string $template

the template file, or array

array $data

variables to make available to the view, default is empty

integer $sort

which order to display the views, if suitable

string $type

which type of view

Returns

self

render()

render(object  $app = null) : void

Render the view.

Parameters

object $app

optional with access to the framework resources.

sortOrder()

sortOrder() : integer

Give the sort order for this view.

Returns

integer