\Anax\MVCCApplicationBasic

Anax base class for wrapping sessions.

Summary

Methods
Properties
Constants
setDI()
__get()
__call()
redirectTo()
__construct()
No public properties found
No constants found
No protected methods found
$di
N/A
No private methods found
No private properties found
N/A

Properties

$di

$di : 

Properties

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.

redirectTo()

redirectTo(string  $route = null) : void

Redirect to current or another route.

Parameters

string $route

the route to redirect to, null to redirect to current route, "" to redirect to baseurl.

__construct()

__construct(array  $di) 

Construct.

Parameters

array $di

dependency injection of service container.