ControllerManager

Extends \Ascmvc\AbstractControllerManager

Class ControllerManager

The ControllerManager class extends the AbstractControllerManager and acts as the MVC's dispatcher object.

package

LightMVC/ASCMVC

Methods

Initializes this class by assigning the objects contained in the referenced application object to the corresponding properties.

__construct(\Ascmvc\AbstractApp &$app, string $controllerName, array $vars = array()) : void
inherited abstract

Arguments

$controllerName

string

$vars

array

Method that calls the MVC's appropriate request handler.

execute() : void
inherited abstract

Properties

Contains a reference to the Singleton instance of the AbstractApp class.

app : \Ascmvc\AbstractApp|null
inherited
var

Type(s)

\Ascmvc\AbstractApp|null

Contains an associative array of all of the URI's elements.

currentRequestURI : array|null
inherited
var

Type(s)

array|null

Contains the name of the AbstractController instance.

controllerName : string
inherited
var

Type(s)

string

Contains the name of the AbstractController's method.

controllerMethodName : string
inherited
var

Type(s)

string

Contains a reflection of the AbstractController instance.

controllerReflection : \ReflectionClass
inherited
var

Type(s)

\ReflectionClass

Contains the controller's filename.

controllerFileName : string
inherited
var

Type(s)

string

Contains a reference to a AbstractController instance.

controller : \Ascmvc\AbstractController|null
inherited
var

Type(s)

\Ascmvc\AbstractController|null

Contains a string that is the name of the controller's method that can handle the dispatch.

method : string|null
inherited
var

Type(s)

string|null

Array containing the values of the request (SERVER, REQUEST, GET, POST, PUT, PATCH, DELETE).

vars : array|null
inherited
var

Type(s)

array|null