\Pop\RouterRoute

Pop route class

Summary

Methods
Properties
Constants
setRouter()
getRouter()
hasRouter()
url()
No public properties found
No constants found
No protected methods found
$router
N/A
No private methods found
No private properties found
N/A

Properties

Methods

setRouter()

setRouter(\Pop\Router\Router  $router) : void

Method to set the router

Parameters

\Pop\Router\Router $router

getRouter()

getRouter() : \Pop\Router\Router

Method to get the router

Returns

\Pop\Router\Router

hasRouter()

hasRouter() : boolean

Method to check if the router has been registered

Returns

boolean

url()

url(string  $routeName, mixed  $params = null, boolean  $fqdn = false) : string

Get URL route string for the named route

Parameters

string $routeName
mixed $params
boolean $fqdn

Throws

\Pop\Router\Exception

Returns

string