\Fuman_Action_Router

Fuman_Router routes {@link Fuman_Action_Abstract}.

Summary

Methods
Properties
Constants
getCurrentAction()
setCurrentAction()
hasCurrentAction()
route()
dispatch()
getHeaderStatusMessage()
No public properties found
SESSION_CONTAINER_NAME
STATUS_200
STATUS_301
STATUS_400
STATUS_401
STATUS_404
STATUS_1000
STATUS_1001
_handlePageNotFound()
$_statusCodes
$_currentAction
N/A
No private methods found
No private properties found
N/A

Constants

SESSION_CONTAINER_NAME

SESSION_CONTAINER_NAME

Session container name for router

STATUS_200

STATUS_200

Status is OK

STATUS_301

STATUS_301

Request uri Moved Permanently

STATUS_400

STATUS_400

Wrong Parameter count or format

STATUS_401

STATUS_401

User not authorized for requested action

STATUS_404

STATUS_404

Requested Action not found;

STATUS_1000

STATUS_1000

Requires installed application

STATUS_1001

STATUS_1001

Requires database

Properties

$_statusCodes

$_statusCodes : array

List of HTTP Status Codes

Type

array

Methods

getCurrentAction()

getCurrentAction() : \Fuman_Action_Abstract

Returns current action.

Returns

\Fuman_Action_Abstract

setCurrentAction()

setCurrentAction(\Fuman_Action_Abstract  $currentAction) 

Sets current action

Parameters

\Fuman_Action_Abstract $currentAction

hasCurrentAction()

hasCurrentAction() : boolean

Returns true if current action is set.

Returns

boolean

route()

route(string|null  $appName = null, string|null  $actionName = null) : void

Routes the request

Parameters

string|null $appName
string|null $actionName

dispatch()

dispatch(string  $appName, string  $actionName) : void

Dispatches the Request

Parameters

string $appName

Name of the Application Namespace

string $actionName

Name of the Action

Throws

\Fuman_Exception

getHeaderStatusMessage()

getHeaderStatusMessage(integer  $statusCode) : string

Gets header status message

Parameters

integer $statusCode

Returns

string

_handlePageNotFound()

_handlePageNotFound() : boolean

Returns

boolean