\Anax\ViewCViewBasic

A view connected to a template file.

Summary

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

Properties

$di

$di : 

Properties

Type

$template

$template : 

Properties

Type

$templateData

$templateData : 

Type

$sortOrder

$sortOrder : 

Type

$type

$type : 

Type

Methods

setDI()

setDI(\Anax\DI\class  $di) : $this

Set the service container to use

Parameters

\Anax\DI\class $di

a service container

Returns

$this

__get()

__get(string  $service) : \Anax\DI\class

Magic method to get and create services.

When created it is also stored as a parameter of this object.

Parameters

string $service

name of class property not existing.

Returns

\Anax\DI\class —

as the service requested.

__call()

__call(string  $service, array  $arguments = array()) : \Anax\DI\class

Magic method to get and create services as a method call.

When created it is also stored as a parameter of this object.

Parameters

string $service

name of class property not existing.

array $arguments

Additional arguments to sen to the method (NOT IMPLEMENTED).

Returns

\Anax\DI\class —

as the service requested.

set()

set(\Anax\View\string/array  $template, array  $data = array(), integer  $sort, string  $type = 'file') : $this

Set values for the view.

Parameters

\Anax\View\string/array $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

$this

render()

render() : void

Render the view.

sortOrder()

sortOrder() : integer

Give the sort order for this view.

Returns

integer