AbstractControllerManager

The abstract AbstractControllerManager class is the blueprint for the MVC's ControllerManager.

The AbstractControllerManager class is the one that needs to be extended in order to create a LightMVC ControllerManager.

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
abstract

Arguments

$controllerName

string

$vars

array

Method that calls the MVC's appropriate request handler.

execute() : void
abstract

Properties

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

app : \Ascmvc\AbstractApp|null
var

Type(s)

\Ascmvc\AbstractApp|null

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

currentRequestURI : array|null
var

Type(s)

array|null

Contains the name of the AbstractController instance.

controllerName : string
var

Type(s)

string

Contains the name of the AbstractController's method.

controllerMethodName : string
var

Type(s)

string

Contains a reflection of the AbstractController instance.

controllerReflection : \ReflectionClass
var

Type(s)

\ReflectionClass

Contains the controller's filename.

controllerFileName : string
var

Type(s)

string

Contains a reference to a AbstractController instance.

controller : \Ascmvc\AbstractController|null
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
var

Type(s)

string|null

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

vars : array|null
var

Type(s)

array|null