\Pop\Router\MatchMatchInterface

Pop router match interface

Summary

Methods
Constants
hasRoute()
getRoute()
getController()
getAction()
getControllerParams()
hasControllerParams()
getDispatchParams()
hasDispatchParams()
getDefaultController()
match()
noRouteFound()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

hasRoute()

hasRoute() : boolean

Determine if the route has been matched

Returns

boolean

getRoute()

getRoute() : string

Get the matched route

Returns

string

getController()

getController() : string

Get the matched controller class name

Returns

string

getAction()

getAction() : string

Get the matched action name

Returns

string

getControllerParams()

getControllerParams() : array

Get the matched controller params

Returns

array

hasControllerParams()

hasControllerParams() : boolean

Determine if there are matched controller params

Returns

boolean

getDispatchParams()

getDispatchParams() : array

Get the matched dispatch params

Returns

array

hasDispatchParams()

hasDispatchParams() : boolean

Determine if there are matched dispatch params

Returns

boolean

getDefaultController()

getDefaultController() : mixed

Get the default controller class name

Returns

mixed

match()

match(array  $routes) : boolean

Match the route to the controller class

Parameters

array $routes

Returns

boolean

noRouteFound()

noRouteFound() : void

Method to process if a route was not found